{"$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":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"]}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"]}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"]}},{"id":"D31","name":"IaC \u0026 Container Security","shortDescription":{"text":"IaC \u0026 Container Security"},"helpUri":"https://codehealth.canine.dev/dimensions/D31","relationships":[{"target":{"id":"CWE-1032","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-732","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-16","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1032","CWE-732","CWE-16"]}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"]}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"]}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P4","name":"Deployment \u0026 Rollback","shortDescription":{"text":"Deployment \u0026 Rollback"},"helpUri":"https://codehealth.canine.dev/dimensions/P4"},{"id":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"S1","name":"Web-Security Posture","shortDescription":{"text":"Web-Security Posture"},"helpUri":"https://codehealth.canine.dev/dimensions/S1"},{"id":"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":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"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":"tree.select.layui.define() (cyclomatic 1045): tree.select.layui.define() has cyclomatic complexity 1045 (threshold 15). Most of this is not in the body itself: 4 of the 1045 points are its own statements and the rest belongs to 190 function literals inside it that branch (lines 2921, 3551, 2278, \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":"assets/common/js/component/tree.select.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"28179de26f0907f577c9a8bfc89573451073aefce11d00e61d1e62c03f61f455"}},{"ruleId":"D1","level":"warning","message":{"text":"hex.layui.define() (cyclomatic 268): hex.layui.define() has cyclomatic complexity 268 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 234 belong to 32 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":"assets/static/modules/hex.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75057948e23dbdab42b8d6cda28500f4b259fc1c44a7d1e10b5c50b11197ece"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.render (cyclomatic 177): fallback.render has cyclomatic complexity 177 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 125 belong to 11 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2784}}}],"partialFingerprints":{"codehealthFindingId/v1":"96c9fb48b9271b60734aa88220d25badd1a8468e516d3eec6b536cd8c2003863"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.addEditorMethods (cyclomatic 139): codemirror.addEditorMethods has cyclomatic complexity 139 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 104 belong to 32 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8268}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b25e69afc2564c9480897dcf4657dded8ada3f786ebfcb63b60be3974a99ba5"}},{"ruleId":"D1","level":"warning","message":{"text":"authtree.layui.define() (cyclomatic 133): authtree.layui.define() has cyclomatic complexity 133 (threshold 15). Most of this is not in the body itself: 1 of the 133 points is its own statement and the rest belongs to 30 function literals inside it that branch (lines 45, 277, 381, \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":"assets/common/js/component/authtree.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"1447605c97d43359500f2b271e17d997157fb8e0260fbf56e9f805c1492cdde0"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::onMousedownNode::_docMouseMove (cyclomatic 132): (anonymous)::(anonymous)::onMousedownNode::_docMouseMove has cyclomatic complexity 132 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2968}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9bfcac97314f1905dc373335a0a1de1d4d3492a1f8a97bd3296c6d1dc5d0b9"}},{"ruleId":"D1","level":"warning","message":{"text":"python.CodeMirror.defineMode(\u0022python\u0022) (cyclomatic 127): python.CodeMirror.defineMode(\u0022python\u0022) has cyclomatic complexity 127 (threshold 15). Of this number, 104 points are the body\u0027s own statements and 23 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/python/python.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"0791d64946997bac6a7d6e480b44fdf4b4c0a49690999d37517a0d4bca9e2fe0"}},{"ruleId":"D1","level":"warning","message":{"text":"Order.trade (cyclomatic 125): Order.trade has cyclomatic complexity 125 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82a456b35826b104f9402bbef1daa0695bf878c3a3071bc448cc1e71e93eee9"}},{"ruleId":"D1","level":"warning","message":{"text":"authtree.layui.define() (cyclomatic 124): authtree.layui.define() has cyclomatic complexity 124 (threshold 15). Most of this is not in the body itself: 1 of the 124 points is its own statement and the rest belongs to 26 function literals inside it that branch (lines 45, 275, 379, \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":"assets/static/modules/authtree.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffde6702d5ca70911658977408c0ecf285de48c343a4054da663205f2fdf5c00"}},{"ruleId":"D1","level":"warning","message":{"text":"css.CodeMirror.defineMode(\u0022css\u0022) (cyclomatic 114): css.CodeMirror.defineMode(\u0022css\u0022) has cyclomatic complexity 114 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 79 belong to 16 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"93fcf6810d5b3cfd39a2cbde7b575b1f27b63fdc2563bb010ebfc8c59710a1e3"}},{"ruleId":"D1","level":"warning","message":{"text":"KTMenu (cyclomatic 109): KTMenu has cyclomatic complexity 109 (threshold 15). Most of this is not in the body itself: 3 of the 109 points are its own statements and the rest belongs to 67 function items inside it that branch (_showDropdown, _hideAccordions, _dismiss, \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":"assets/admin/js/menu.js"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4340ce0416a4ed595af17ff4cf22f92d388b495d0719e60ad4879c1fcef3c3"}},{"ruleId":"D1","level":"warning","message":{"text":"commodity (cyclomatic 101): commodity has cyclomatic complexity 101 (threshold 15). Most of this is not in the body itself: 1 of the 101 points is its own statement and the rest belongs to 14 function items inside it that branch (a function literal at line 505, a function literal at line 763, (anonymous)::fnEnd, \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":"assets/static/acg.js"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"be09c006dcfd6d5e1be16bf1747738060456d5910ed541dd682c9b2a924a6ed8"}},{"ruleId":"D1","level":"warning","message":{"text":"popup (cyclomatic 99): popup has cyclomatic complexity 99 (threshold 15). Of this number, 44 points are the body\u0027s own statements and 55 belong to 19 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfcbd3753e04455ba48747bcd63ca6c0708b90b2776687f5262ac8ff3092fd2"}},{"ruleId":"D1","level":"warning","message":{"text":"_ThemeSetting (cyclomatic 76): _ThemeSetting has cyclomatic complexity 76 (threshold 15). Most of this is not in the body itself: 3 of the 76 points are its own statements and the rest belongs to 34 function items inside it that branch (modal, a function literal at line 266, runThemeAct, \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":"assets/admin/controller/config/index.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01d1b9a6f3417595ed33a37120985fe143f01c612e1cc5a314e113bbddb7918"}},{"ruleId":"D1","level":"warning","message":{"text":"register (cyclomatic 74): register has cyclomatic complexity 74 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 46 belong to 41 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8249c9dac55872280e2e06fb3e9c4cbe0add27dc8324057c21613e7602cea6"}},{"ruleId":"D1","level":"warning","message":{"text":"Commodity.save (cyclomatic 73): Commodity.save has cyclomatic complexity 73 (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":"app/Controller/User/Api/Commodity.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a822aa495c2fb69fa3a07d97858c3952c61f42780ce0393fa739ec2f8d4d687"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 73): (anonymous) has cyclomatic complexity 73 (threshold 15). Most of this is not in the body itself: 1 of the 73 points is its own statement and the rest belongs to 3 function items inside it that branch (a function literal at line 393, charType, BidiSpan). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"98090d40812f3f8e44173de77782adc9c607d89ceaf8fc1b252eaa813dae4d9e"}},{"ruleId":"D1","level":"warning","message":{"text":"store.mountRemoteProductPicker (cyclomatic 71): store.mountRemoteProductPicker has cyclomatic complexity 71 (threshold 15). Most of this is not in the body itself: 3 of the 71 points are its own statements and the rest belongs to 23 function literals inside it that branch (lines 662, 540, 619, \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":"assets/admin/controller/shared/store.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ad0108be53d2a0add6cc2a2829018552c5223aed32dda6c78fbaffbec451db"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.renderToolbar (cyclomatic 71): fallback.renderToolbar has cyclomatic complexity 71 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 38 belong to 3 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2193}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61fd572c1fde83b752d6017b874ca15b48f3659e9eac7bdc7c7695fe6a7a1a7"}},{"ruleId":"D1","level":"warning","message":{"text":"#getPreprocessColumn (cyclomatic 71): #getPreprocessColumn has cyclomatic complexity 71 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 55 belong to 17 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d24c7c7f23a8480c6421aba7f6b824f88d11b146438d850adc45aff56fe489b"}},{"ruleId":"D1","level":"warning","message":{"text":"done (cyclomatic 67): done has cyclomatic complexity 67 (threshold 15). Most of this is not in the body itself: 8 of the 67 points are its own statements and the rest belongs to 51 function items inside it that branch (show, done, formatter, \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":"assets/admin/controller/store/home.js"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3fb7ed5d5ce8eb1e3f612705c58eb4d8b55d8a0870de511fc9ba108a78cf525"}},{"ruleId":"D1","level":"warning","message":{"text":"Order.valuation (cyclomatic 64): Order.valuation has cyclomatic complexity 64 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4df114eb0d9cb9e9eefb6ba49fc46012abbd877ff31e394cb697cfc0e201008"}},{"ruleId":"D1","level":"warning","message":{"text":"Manage.save (cyclomatic 62): Manage.save has cyclomatic complexity 62 (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":"app/Controller/Admin/Api/Manage.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"42501acdb57180d79ef39a56181da96f9ad718cd6c8824ab5a8caed99a556024"}},{"ruleId":"D1","level":"warning","message":{"text":"Commodity.save (cyclomatic 60): Commodity.save has cyclomatic complexity 60 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6050661076c9382c9af795fa2b872e4e1fe1d709beeae016ccb542582bd382"}},{"ruleId":"D1","level":"warning","message":{"text":"CommodityGroupModal (cyclomatic 60): CommodityGroupModal has cyclomatic complexity 60 (threshold 15). Most of this is not in the body itself: 1 of the 60 points is its own statement and the rest belongs to 22 function items inside it that branch (a function literal at line 264, complete::applyMobileSearch, a function literal at line 334, \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":"assets/admin/controller/user/group.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"68794798e1ffb3dd9ff7f8aeb1c74e1377795f96f2d8a760582f56b02e2a9d75"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::moveNode (cyclomatic 57): (anonymous)::(anonymous)::moveNode has cyclomatic complexity 57 (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":"assets/common/js/component/tree.select.js"},"region":{"startLine":3551}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3410bab69b2f838faff93f9fdaee2988a61000024fe91b6913ab96e6b9b5f1f"}},{"ruleId":"D1","level":"warning","message":{"text":"presentPopup (cyclomatic 57): presentPopup has cyclomatic complexity 57 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 26 belong to 11 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d47957780617c4006197bc067f98dbd65026131326f960d227117b944e5c548"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.insertLineContent (cyclomatic 56): codemirror.insertLineContent has cyclomatic complexity 56 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aefb43d264c0275dc69e7309fa9e25edd5a6599014c5f452dfe48edb6605c1e"}},{"ruleId":"D1","level":"warning","message":{"text":"overlay.setupSheetDrag (cyclomatic 53): overlay.setupSheetDrag has cyclomatic complexity 53 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 4 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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0fe74ecd024e535ca12dadf0348000e3cc8552f3b92a580e33dcad40da3b8c7"}},{"ruleId":"D1","level":"warning","message":{"text":"Pay.paymentSaveMap (cyclomatic 53): Pay.paymentSaveMap has cyclomatic complexity 53 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Pay.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"03857694d4a4d8f6fd5ac3ca9c05af2ff9670a10f0b45ad9b9e9dd79b66e380b"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.drawSelectionRange (cyclomatic 52): codemirror.drawSelectionRange has cyclomatic complexity 52 (threshold 15). Most of this is not in the body itself: 14 of the 52 points are its own statements and the rest belongs to one function literal inside it that branches (line 3232). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3202}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ec9030247e0c083d37789946c71bc79049e2aa6e8c2041abe2552bf844f773"}},{"ruleId":"D1","level":"warning","message":{"text":"createCoupon (cyclomatic 50): createCoupon has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 5 of the 50 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 209, a function literal at line 314, a function literal at line 250, \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":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"472737559e2051aa2249d126b79edc2e843e1fbaca8125aefa7343e87329a6ce"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.openFilters (cyclomatic 49): fallback.openFilters has cyclomatic complexity 49 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 24 belong to 6 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2055}}}],"partialFingerprints":{"codehealthFindingId/v1":"8914638396b0f30107baa983fe95b3d02e82acfb1fb3a9d7debb12c93ae033a3"}},{"ruleId":"D1","level":"warning","message":{"text":"BusinessLevel.validatedSaveMap (cyclomatic 49): BusinessLevel.validatedSaveMap has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba5424d45c2389efae701f7b016b8606e998f7be3c0504f1f72040c89c82a882"}},{"ruleId":"D1","level":"warning","message":{"text":"Order.getTradeAmount (cyclomatic 49): Order.getTradeAmount has cyclomatic complexity 49 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"02af83457fe9ad0e457030710dc5ddea6372567f174f362930823d9a6435c2d9"}},{"ruleId":"D1","level":"warning","message":{"text":"User.save (cyclomatic 48): User.save has cyclomatic complexity 48 (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":"app/Controller/Admin/Api/User.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4825ad4e244db5353dc4055dd199b714541797c526553e716c2ca31692228483"}},{"ruleId":"D1","level":"warning","message":{"text":"_Auth (cyclomatic 47): _Auth has cyclomatic complexity 47 (threshold 15). Most of this is not in the body itself: 4 of the 47 points are its own statements and the rest belongs to 25 function items inside it that branch (complete::_register_captcha::done, complete, a function literal at line 676, \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":"assets/admin/controller/store/home.js"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed776578b1afdba9ea874404c418d97d1ac5ae9052120717fe0f2f801ea641d"}},{"ruleId":"D1","level":"warning","message":{"text":"menu.KTScroll (cyclomatic 45): menu.KTScroll has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 2 of the 45 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 2896, 2978, 2840, \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":"assets/admin/js/menu.js"},"region":{"startLine":2782}}}],"partialFingerprints":{"codehealthFindingId/v1":"5155963a79632d4c262146cdd84438628015ce8bc2eb7158e132400334153130"}},{"ruleId":"D1","level":"warning","message":{"text":"click (cyclomatic 45): click has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 2 of the 45 points are its own statements and the rest belongs to 17 function items inside it that branch (a function literal at line 1445, a function literal at line 1478, a function literal at line 1507, \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":"assets/admin/controller/shared/store.js"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc89a8e624f2f231f264e966afdc22f61165b7f516aec940472ca802e9d7aae8"}},{"ruleId":"D1","level":"warning","message":{"text":"api.confirmPayDelete (cyclomatic 44): api.confirmPayDelete has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 3 of the 44 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 105, 116, 164, \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":"assets/admin/controller/pay/api.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"6df11976123d9897976a570a6b6130129764e3bc8af1128f0f6635bb9e9f27bf"}},{"ruleId":"D1","level":"warning","message":{"text":"Util.redactDebugValue (cyclomatic 44): Util.redactDebugValue has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 2 of the 44 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 158, 123, 210, \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":"assets/common/js/util.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"2adff877141df35ecf4c6821d45507cc9e2aeb21c51dc91b8a4278766a569f19"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.markText (cyclomatic 44): codemirror.markText has cyclomatic complexity 44 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 10 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5968}}}],"partialFingerprints":{"codehealthFindingId/v1":"03a068ce2f6c70cee1b6f427e5c33338d6dd3d50da5633863cfabcc957684072"}},{"ruleId":"D1","level":"warning","message":{"text":"Store.addItem (cyclomatic 44): Store.addItem has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"b14f3ba1ac02b07f33aa0a7c97abde2c2b7526488db94ac937c8442146e0fe48"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach.openMenu (cyclomatic 44): (anonymous).attach.openMenu has cyclomatic complexity 44 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 17 belong to 12 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"c08f0888f2896ed07963fe4a70bc9971772b9073cfdf4eb45825b577cc83aba7"}},{"ruleId":"D1","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).tokenBase (cyclomatic 43): javascript.CodeMirror.defineMode(\u0022javascript\u0022).tokenBase has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f93938159cee9ef61cde161ddf47f09acc4179700058560e1929c73bd68d5c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).tokenBase (cyclomatic 43): (anonymous).tokenBase has cyclomatic complexity 43 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ebcd75f2a78d336c19993f54d65d5c3fa232e7ebbb19b812ad2c57dd49844d"}},{"ruleId":"D1","level":"warning","message":{"text":"Group.validatedSaveMap (cyclomatic 42): Group.validatedSaveMap has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Group.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"a89856b76e967a7f092d0b91d2a42aa96a410b0f7750f66a1171b701c0879841"}},{"ruleId":"D1","level":"warning","message":{"text":"modal (cyclomatic 42): modal has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 9 of the 42 points are its own statements and the rest belongs to 22 function items inside it that branch (a function literal at line 523, complete::(anonymous)::change, a function literal at line 131, \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":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"3593984a7d38b04fde7c0b9055b0057d0abe40c2d536cebc0c1e90078cc08aa8"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.findPosH (cyclomatic 41): codemirror.findPosH has cyclomatic complexity 41 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8708}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7be4c7afc608db86885eec1ac3fc0db2057ab81ef14226921233c16637cd633"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 41): (anonymous) has cyclomatic complexity 41 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1feda992a5746bafef64add62d49c1794615ee178420380c7b72741f6060ae88"}},{"ruleId":"D1","level":"warning","message":{"text":"#createOptions (cyclomatic 41): #createOptions has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 2 of the 41 points are its own statements and the rest belongs to 20 function items inside it that branch (a function literal at line 1724, queryParams, a function literal at line 1689, \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":"assets/common/js/component/table.js"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0ee7db5fcf591169fa787f52ed8b05d98619ea5836788701a664f9705deeda9"}},{"ruleId":"D1","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).statement (cyclomatic 40): javascript.CodeMirror.defineMode(\u0022javascript\u0022).statement has cyclomatic complexity 40 (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":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f6a89cf20deaf7d941ab56f6996bbaa907f0f6f690b324ea3d35a7d4e7557a8"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).statement (cyclomatic 40): (anonymous).statement has cyclomatic complexity 40 (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":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc53d71bbfb85b3f4a377499a914947066036f84688e926f2e0ef7c4553630a"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.renderPageActions (cyclomatic 39): workflows.renderPageActions has cyclomatic complexity 39 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 17 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"42c6603c75d4befbf0e1f74163155364ac2b11297317e8b6b76db5344b93834b"}},{"ruleId":"D1","level":"warning","message":{"text":"Category.save (cyclomatic 39): Category.save has cyclomatic complexity 39 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"a54f10fdaaf77147abc41113da0ebe2865487f2b0a61a4fa4d018a08b422f82f"}},{"ruleId":"D1","level":"warning","message":{"text":"jquery.pjax.pjax (cyclomatic 38): jquery.pjax.pjax has cyclomatic complexity 38 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 21 belong to 5 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/jquery.pjax.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"16265b4838a4580b0ab7336d3011513740b6a347d2503b25b1c16b94eb699899"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.syncSettingsNavigation (cyclomatic 37): workflows.syncSettingsNavigation has cyclomatic complexity 37 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 17 belong to 9 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"374cc72cfaf504730991cbfbc0b5f51605664c7f5885142155074fe9d339cfee"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.moveVisually (cyclomatic 37): codemirror.moveVisually has cyclomatic complexity 37 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 12 belong to 4 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":6912}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63d9cb824ccb3f3f766d306ce68584bf04f9bb92f0a176ab335c30ae67a50c8"}},{"ruleId":"D1","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).indent (cyclomatic 36): javascript.CodeMirror.defineMode(\u0022javascript\u0022).indent has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ba3226bec4d58931529863bbe2535b8b79f87ca26ae2d2bb05ce998bbb8538"}},{"ruleId":"D1","level":"warning","message":{"text":"ticket.detail.renderRelated (cyclomatic 36): ticket.detail.renderRelated has cyclomatic complexity 36 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/ticket.detail.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"22d812fe84519e9d4c45e6993a1d07961f831e7d2961fab67205047022df63c2"}},{"ruleId":"D1","level":"warning","message":{"text":"glass.refreshMessageCenter (cyclomatic 36): glass.refreshMessageCenter has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 3 of the 36 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 243, 284). 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":"assets/user/js/glass.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"986dc22bab85d4d433e67283951818d92670cc4cf6cf753cf84627e90984729f"}},{"ruleId":"D1","level":"warning","message":{"text":"confirmPayDelete::done (cyclomatic 36): confirmPayDelete::done has cyclomatic complexity 36 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/pay/api.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8081640a1f8121d00fbd4ab6d00603f069d8b015a36e82df2b4cb3b681ccd9"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).indent (cyclomatic 36): (anonymous).indent has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae97ca949eb47b7f42e914a3da69d422b044c4ed7afd815a8e54496002d8f45e"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.renderTreeContext (cyclomatic 35): fallback.renderTreeContext has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"0467184516146e065abd3babdec1a61368455cd73aea376592ada904936bea6a"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.measureCharInner (cyclomatic 35): codemirror.measureCharInner has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"b38410c9c6edc3288c6229e98659841b3579d6b0b74537aa1baa879e14fa5137"}},{"ruleId":"D1","level":"warning","message":{"text":"Image.createThumbnail (cyclomatic 35): Image.createThumbnail has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Image.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6caee82cf253578a2238fba33b6020b80ce05a7ae05ea01eaa634cafbe70de5"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.renderSelectionDock (cyclomatic 34): fallback.renderSelectionDock has cyclomatic complexity 34 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 18 belong to 5 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a806bd68c4336de5b9bee096f2c3120dd87da47511cfb4adab5750137371eea"}},{"ruleId":"D1","level":"warning","message":{"text":"overlay.focusInvalid (cyclomatic 34): overlay.focusInvalid has cyclomatic complexity 34 (threshold 15). Of this number, 28 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac4cee87ae02852e19ac799d3858b5fe3f06fb448fd316c4f8d9f4bd0317d14"}},{"ruleId":"D1","level":"warning","message":{"text":"Form.constructor (cyclomatic 34): Form.constructor has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 1 of the 34 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 28, 22). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: Form.createForm (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a5def263479a1e0d70dfed3b7cbaf05e61459329ffa8061f44853f118e6893"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.onScrollWheel (cyclomatic 34): codemirror.onScrollWheel has cyclomatic complexity 34 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4509}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ecaf5e6c110d2c768f3fac2b8aed251327ecc51c55e758eabcc6be67af8775e"}},{"ruleId":"D1","level":"warning","message":{"text":"CommodityGroup.mobileCommodityTree (cyclomatic 34): CommodityGroup.mobileCommodityTree has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/CommodityGroup.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f65178cf49ad281bf717066f8510a1ae03a08d65b29c277a206eeed16c896ea"}},{"ruleId":"D1","level":"warning","message":{"text":"Coupon.couponExportQuery (cyclomatic 34): Coupon.couponExportQuery has cyclomatic complexity 34 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfc2a2db730cd9e55cb46812d0ba061243156d6f271a829d3542e6d411031784"}},{"ruleId":"D1","level":"warning","message":{"text":"message.openComposer (cyclomatic 33): message.openComposer has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 11 of the 33 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 491, 479, 505, \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":"assets/admin/controller/user/message.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"156a667e26a784ce94f674ba760c55211586a152a049481269cbffc834cb2dc0"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.leftButtonSelect (cyclomatic 33): codemirror.leftButtonSelect has cyclomatic complexity 33 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 4 belong to 3 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7475}}}],"partialFingerprints":{"codehealthFindingId/v1":"857ca42fc4de95621c5ea433b54fefd190c83216fa5aba6fcfbb2a73733876dc"}},{"ruleId":"D1","level":"warning","message":{"text":"Authentication.register (cyclomatic 33): Authentication.register has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"74bd266aa8d254a402749bd0e3b76db450af94c5926f3f527fd7e54a668bcb2f"}},{"ruleId":"D1","level":"warning","message":{"text":"refreshMessageCenter::success (cyclomatic 33): refreshMessageCenter::success has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/js/glass.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdd76b90074696e6fc743f3a5aebfba7c58cd3ff37b20d48c6f714b7a3358a48"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::render (cyclomatic 33): (anonymous)::render has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/modules/authtree.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"6caf017f670c2fdb7a0d059d962813971b760024f8b844808dba72b2e1c1e41c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::render (cyclomatic 33): (anonymous)::render has cyclomatic complexity 33 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/authtree.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"f113ed1b02d1625cdfc2211755bfa652df151e00bd100270ca11039b68a3c398"}},{"ruleId":"D1","level":"warning","message":{"text":"order.$(\u0022.btn-app-export\u0022).off().on() (cyclomatic 32): order.$(\u0022.btn-app-export\u0022).off().on() has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 1 of the 32 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 520, 563). 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":"assets/admin/controller/trade/order.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"c01a7c37b0327015759151efd997fe76baf3a876a3f803b2aa728e255094f662"}},{"ruleId":"D1","level":"warning","message":{"text":"Form.getData (cyclomatic 32): Form.getData has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 4 of the 32 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 992, 980, 982, \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. This is NOT this file\u0027s highest cyclomatic complexity: Form.createForm (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"4494436403c804e85823e002bf44a69996475ddb4b1a49b0c58200c24ab7d0c6"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.stretchSpansOverChange (cyclomatic 32): codemirror.stretchSpansOverChange has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0468f98c0cea1a39ea76884d0b93d45bad436a535479f94070e89e28fe513a"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.buildToken (cyclomatic 32): codemirror.buildToken has cyclomatic complexity 32 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb0b94e578177474a12b2d35125de49cb3af885dda25d957a6254c75513cc5c"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.registerEventHandlers (cyclomatic 32): codemirror.registerEventHandlers has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 7 of the 32 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 8018, 8002, 7965, \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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7960}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c34b64bf9ce131f6091c536c3844478087569c92b26428fd1285bd2d1d6722f"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.ContentEditableInput.pollContent (cyclomatic 32): codemirror.ContentEditableInput.pollContent has cyclomatic complexity 32 (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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9058}}}],"partialFingerprints":{"codehealthFindingId/v1":"83820bbcd950e502296c9135957f6d4ab5fad001c3afb715422ae351135ce4b2"}},{"ruleId":"D1","level":"warning","message":{"text":"Coupon.save (cyclomatic 32): Coupon.save has cyclomatic complexity 32 (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":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"404c8caea66ddbba8f14a8298ad3d4e6ab8008802f3ff19ce0fbeb502d9ff346"}},{"ruleId":"D1","level":"warning","message":{"text":"Manage.set (cyclomatic 32): Manage.set has cyclomatic complexity 32 (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":"app/Controller/Admin/Api/Manage.php"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f0179da4dfa9fcec506194c5e9dbf0aff761c2649fc132b3874174982b7e9b"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::submit (cyclomatic 32): (anonymous)::submit has cyclomatic complexity 32 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/order.js"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"73279bcedc7747cc3d2fa09fc4c4d4a95f8a6ce9eb102827a02851488909d322"}},{"ruleId":"D1","level":"warning","message":{"text":"recharge.order.$(\u0022.btn-app-export\u0022).off().on() (cyclomatic 31): recharge.order.$(\u0022.btn-app-export\u0022).off().on() has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 271, 314). 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":"assets/admin/controller/user/recharge.order.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e62e911d6a75631453f4f68e8ba77eaa41d970a311a460a287a52ea81abdbc"}},{"ruleId":"D1","level":"warning","message":{"text":"Component.previewMessage (cyclomatic 31): Component.previewMessage has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 13 of the 31 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 238, 262, 222, \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":"assets/common/js/component.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f40b64be8ab849c2905c96193997cd56347ac5f4084cd0a8a8ce41e18b18ca7"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.skipAtomicInner (cyclomatic 31): codemirror.skipAtomicInner has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b84a68033f3537b42e8a9b3cdefca3ae174254571de4851818a8fc02c9db5a37"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.save (cyclomatic 31): Message.save has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"250c83a4fffa486e9049b7f66b837062a331349c00c9dbcc732cb02e7729e80f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::submit (cyclomatic 31): (anonymous)::submit has cyclomatic complexity 31 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/recharge.order.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd2eec49e3c2f2a194d97d0fb29d1e35e36245a4b6b190f4cf8d122ae26d659"}},{"ruleId":"D1","level":"warning","message":{"text":"mobileAccountSubmit (cyclomatic 31): mobileAccountSubmit has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 1 of the 31 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 47, a function literal at line 95, (anonymous)::(anonymous)::done, \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":"assets/admin/controller/user/index.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"acc19196baf90fb2517fc83ccac21cc1117b3c3b341459fb28aa8f3ca6738cdb"}},{"ruleId":"D1","level":"warning","message":{"text":"click (cyclomatic 31): click has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 10 of the 31 points are its own statements and the rest belongs to 10 function items inside it that branch (yes, success, a function literal at line 141, \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":"assets/admin/controller/user/cash.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"deae177bf4c5b10114f922c79d111cac6c3a33e89c5bbf5893410ef6d62e3834"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach.onKey (cyclomatic 31): (anonymous).attach.onKey has cyclomatic complexity 31 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"396286f43d89fb0e478c4d80a526d1b2d6c1cc68c678794c2ec791bd40fd1caa"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.renderReferenceCard (cyclomatic 30): fallback.renderReferenceCard has cyclomatic complexity 30 (threshold 15). Of this number, 29 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bd2fe42b0dcf34f2281c72df3c9d73edee14cd709598edfaae06952def9a6a4"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.TextMarker.clear (cyclomatic 30): codemirror.TextMarker.clear has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5858}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae454299d862a4773666c474b397705754f0692c1730ea396bc1a9ae97755d36"}},{"ruleId":"D1","level":"warning","message":{"text":"Order.orderExportQuery (cyclomatic 30): Order.orderExportQuery has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e303e98dbfc4900c97a98c8d174ff6d44fe3852ed7c64a7799df8371abda0c"}},{"ruleId":"D1","level":"warning","message":{"text":"Index.commodity (cyclomatic 30): Index.commodity has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Index.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e1bdbe983fd7e30213310bbada729ff26468b30502e6ffbb51b49ce9d120f68"}},{"ruleId":"D1","level":"warning","message":{"text":"PriceTemplate.applyToConfig (cyclomatic 30): PriceTemplate.applyToConfig has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/PriceTemplate.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ca25e2d85dd738ad1b40f81846c267cb3a0f89271fd35cad078b61ddba3340"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::tokenBaseInner (cyclomatic 30): (anonymous)::tokenBaseInner has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/python/python.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef227eaeb34d864764e7b9b30babbc077b386059ea422005c14f5ae517f0201"}},{"ruleId":"D1","level":"warning","message":{"text":"ready.flushReadyQueue (cyclomatic 29): ready.flushReadyQueue has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 3 of the 29 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 139, 95, 86, \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":"assets/common/js/ready.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c42cf4d9cdd2c512081881019e4f575d085d38ff914e24724c08c5e19eadfa"}},{"ruleId":"D1","level":"warning","message":{"text":"Query.get (cyclomatic 29): Query.get has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Query.php"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"c584f8c6dd1b8b9b5878d3f488f7d80307078872b7a7ce29c0519061058571e0"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::makeChkFlag (cyclomatic 29): (anonymous)::(anonymous)::makeChkFlag has cyclomatic complexity 29 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f210b460f2fbb6aeaae1fb21fa16e96b3c2d7a8f78f2e199c72a686ec8c12cc"}},{"ruleId":"D1","level":"warning","message":{"text":"addWidget (cyclomatic 29): addWidget has cyclomatic complexity 29 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 13 belong to 11 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: createForm (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bcf21ddbf12659002983fb521a11af60b5f1c15d664386dfed22ccd6e46e60a"}},{"ruleId":"D1","level":"warning","message":{"text":"mobileDeliverySubmit (cyclomatic 29): mobileDeliverySubmit has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 66, a function literal at line 104, (anonymous)::(anonymous)::done, \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":"assets/admin/controller/trade/order.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ca633920c7e9e85826f1da1e5602cede93b229c33d1518eafd915873fb80d4"}},{"ruleId":"D1","level":"warning","message":{"text":"done (cyclomatic 29): done has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 4 of the 29 points are its own statements and the rest belongs to 26 function items inside it that branch (formatter, formatter, click, \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":"assets/admin/controller/store/developer.js"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"196731fd5766517f57f111c7bcc6a85bc4991b1f8c46127fc8b0ae950b60ce25"}},{"ruleId":"D1","level":"warning","message":{"text":"applyModal (cyclomatic 29): applyModal has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 7 function items inside it that branch (a function literal at line 240, a function literal at line 260, a function literal at line 312, \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":"assets/admin/controller/shared/priceTemplate.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fd3f07a86790dbcd36c9b3978a4c750d6114e1e2236a1664e9be1a10f88a7d"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.invalidFormField (cyclomatic 28): workflows.invalidFormField has cyclomatic complexity 28 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 8 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"9179f34ad4975a19e7f22b0135686c8d0151c7fe9b4f600149f45d9ce18e227f"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.makeChangeFromHistory (cyclomatic 28): codemirror.makeChangeFromHistory has cyclomatic complexity 28 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 7 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5341}}}],"partialFingerprints":{"codehealthFindingId/v1":"647ba0eceffa8bb35346fdaf1d316c5f17075ea14c47236b33ab5c8ef5900af5"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.applyTextInput (cyclomatic 28): codemirror.applyTextInput has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec48a0265aa743bfb26b3edf6ae01ec4df89da195bc051788ce17d6d5a24bf1"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.locateNodeInLineView (cyclomatic 28): codemirror.locateNodeInLineView has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9280}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2e40838d3343b366b53e87e7b602d07f7f07f014f3027ddf866252cc0ba630"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.TextareaInput.onContextMenu (cyclomatic 28): codemirror.TextareaInput.onContextMenu has cyclomatic complexity 28 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 5 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9608}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0c483c113f14659b7c40e5ea645dcf8d76132c236213520e2954e5d03e2a32"}},{"ruleId":"D1","level":"warning","message":{"text":"xml.CodeMirror.defineMode(\u0022xml\u0022).indent (cyclomatic 28): xml.CodeMirror.defineMode(\u0022xml\u0022).indent has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/xml/xml.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d91a455a4d7cf361556c4d1e1e0025ef311ee84cdd4aff0348a125ef0b7016e"}},{"ruleId":"D1","level":"warning","message":{"text":"Category.save (cyclomatic 28): Category.save has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Category.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0200fe5f6aa45d90a029879bce06e95872ea2d956ab3bc7bf0375e4600bebbd0"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::onMousedownNode::_docMouseUp (cyclomatic 28): (anonymous)::(anonymous)::onMousedownNode::_docMouseUp has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":3266}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b9075d8bdc145fcfe85745262a9e29dbc4009605d72bc4fb0fcc4341df277b"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).indent (cyclomatic 28): (anonymous).indent has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/xml/xml.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"1909b0776d56760aa2503ec5c49dd907d98e68d56cbda5a5ccfc1a591d3d92bc"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.updateDisplayIfNeeded (cyclomatic 27): codemirror.updateDisplayIfNeeded has cyclomatic complexity 27 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4104}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb99892787c62aeaddffed5d478c76ea5cb5e6b1e937b42e8e03da0a688f1ee"}},{"ruleId":"D1","level":"warning","message":{"text":"css.CodeMirror.defineMode(\u0022css\u0022).tokenBase (cyclomatic 27): css.CodeMirror.defineMode(\u0022css\u0022).tokenBase has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c2bef3e8edb7321e589ac47db1b07ac1ed85fbef88b235e57e235ec10342aea"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::checkNodeRelation (cyclomatic 27): (anonymous)::(anonymous)::checkNodeRelation has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d0dad9723d127ba74de22a35e73c826cf0b45579974a4d4f3dc71bbade9957b"}},{"ruleId":"D1","level":"warning","message":{"text":"runImportTask (cyclomatic 27): runImportTask has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 6 of the 27 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1046, 1115, 1127, \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":"assets/admin/controller/shared/store.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"2759d8dfef516002332dee1cd56924a3430ddae76412ee376daafc58fd9fab1f"}},{"ruleId":"D1","level":"warning","message":{"text":"click (cyclomatic 27): click has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 2 of the 27 points are its own statements and the rest belongs to 16 function items inside it that branch ((anonymous)::submit, a function literal at line 1637, (anonymous)::renderComplete, \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":"assets/admin/controller/shared/store.js"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"2aaf4d5d6f8e84e11a9e7415be4f9859da99012ec1a4113d08de70b417b30637"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).tokenBase (cyclomatic 27): (anonymous).tokenBase has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4ed64f99c6635d838af518a220dcf2a1d81dc5b7a8131abfc2bcaac3fcadfb3"}},{"ruleId":"D1","level":"warning","message":{"text":"index.renderChart (cyclomatic 26): index.renderChart has cyclomatic complexity 26 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 9 belong to 5 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/dashboard/index.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc5d0cebc1af445cc63e583984d6c38bb9938d4a7efb2bc02a3119d79338c7c"}},{"ruleId":"D1","level":"warning","message":{"text":"card.$(\u0022.btn-app-export\u0022).off().on() (cyclomatic 26): card.$(\u0022.btn-app-export\u0022).off().on() has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 636, 663). 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":"assets/admin/controller/trade/card.js"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"928636894ffe5fc723ef6ba0493a91abfabeb75393f200bb6c086cc2526375f0"}},{"ruleId":"D1","level":"warning","message":{"text":"menu.KTDrawer (cyclomatic 26): menu.KTDrawer has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 3451, 3322, 3400, \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":"assets/admin/js/menu.js"},"region":{"startLine":3267}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e80abd47c1567dc1d9f36e1b7c7fa53a01115b0607473df32e354ad9618a839"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.treeMetadata (cyclomatic 26): fallback.treeMetadata has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 6 of the 26 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 2556, 2587, 2582, \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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2547}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe20b2e12689f503f18af69cf4f984dd0cc071666e6aa0604b974f577ae69a27"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.ContentEditableInput.showPrimarySelection (cyclomatic 26): codemirror.ContentEditableInput.showPrimarySelection has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8917}}}],"partialFingerprints":{"codehealthFindingId/v1":"87d3778d95987edaa9009fd05fece67abad0f3b3aed2a55646a30159010f8894"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.TextareaInput.poll (cyclomatic 26): codemirror.TextareaInput.poll has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9548}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ccbbf89fdb8f0254f616bee0932670253fa026c8b8871fe19950e95e8e03f84"}},{"ruleId":"D1","level":"warning","message":{"text":"message.normalizeMessage (cyclomatic 26): message.normalizeMessage has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/message.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"862646aac2a022139ed5a5e1bf0f0164ecd3c10405ffae102be1d59bd15f4a1c"}},{"ruleId":"D1","level":"warning","message":{"text":"glass.normalizeMessage (cyclomatic 26): glass.normalizeMessage has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/js/glass.js"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eb2c33dd0ffa039c398d2a771ad599d52961e31ac18f97397c2bb4b66435876"}},{"ruleId":"D1","level":"warning","message":{"text":"RechargeOrder.exportQuery (cyclomatic 26): RechargeOrder.exportQuery has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/RechargeOrder.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bb9ba8811985eb777b65b9a1bf447f13682a4e8803eb3f53789d088b3c65f3"}},{"ruleId":"D1","level":"warning","message":{"text":"Store.remoteWidget (cyclomatic 26): Store.remoteWidget has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4ab92157527d3acaf88034cc8fd01998f081706770c57ff8afeca26fa07d63"}},{"ruleId":"D1","level":"warning","message":{"text":"Email.sendRecipients (cyclomatic 26): Email.sendRecipients has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Email.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d80e63ad457c6672875e0bab07cd4c916b407d7f580cf155e9f1e937b592b92"}},{"ruleId":"D1","level":"warning","message":{"text":"Order.calcAmount (cyclomatic 26): Order.calcAmount has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea3c6344c516e1775de9eaf2cca174c50dd4e5da9b50c5bdc3d8656ee86d9cfb"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::tokenLexer (cyclomatic 26): (anonymous)::tokenLexer has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/python/python.js"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a1da0b960b7ac40f1272b5f13397d34017f63c9b362b672c1805878fa98073"}},{"ruleId":"D1","level":"warning","message":{"text":"set.saveSettings (cyclomatic 25): set.saveSettings has cyclomatic complexity 25 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 10 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/manage/set.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ee4b116f5e47d8f31bc097d4f0fb37c990595751cc643172e72d4ad43a53ccf"}},{"ruleId":"D1","level":"warning","message":{"text":"message.validateCompose (cyclomatic 25): message.validateCompose has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/message.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"21a9fb86b74b039ed6c07843c4afa01b1b9f07e47286dae318ba941e4b5432c2"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.detailContent (cyclomatic 25): fallback.detailContent has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 11 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1417, 1414, 1424). 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"105790d4fbc039db634a4abaf3c190e38a4fb33ecf4d601f0a04753165722021"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.regChange (cyclomatic 25): codemirror.regChange has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3002}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e243ad9aafb4e409a2873098a8cce237143a354adf28791531e746c7fa29ec"}},{"ruleId":"D1","level":"warning","message":{"text":"passkey.add (cyclomatic 25): passkey.add has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/security/passkey.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b621623c1bc41e52ffc6bc0d24373c33fbc8a69ab2e074b545e1bf3c00cfae74"}},{"ruleId":"D1","level":"warning","message":{"text":"message.renderCartoonMobile (cyclomatic 25): message.renderCartoonMobile has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/message.js"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"001d9fa62d4eefedcdd569c7c99bf48a3d3e04371a87621e710b07aa2dc20222"}},{"ruleId":"D1","level":"warning","message":{"text":"Store.sharedDomain (cyclomatic 25): Store.sharedDomain has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e5e6c30cdcaaabd2d03e34b5f3c4fac296a3ccf02e7ab75dc3151f9775d6c7"}},{"ruleId":"D1","level":"warning","message":{"text":"Shared.syncRemoteItem (cyclomatic 25): Shared.syncRemoteItem has cyclomatic complexity 25 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"8673f68583c3c83a343e9c398be7144b95ca87adedcf7460b92854ac7572c826"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach (cyclomatic 25): (anonymous).attach has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 7 of the 25 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 1290, 1287, 1313, \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":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c7a358a57e5f213a5890a75089b79111479b60e799219fc68f51da689eb2810"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::submit (cyclomatic 25): (anonymous)::submit has cyclomatic complexity 25 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/card.js"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"a67ded9aa694bf583bac5389fdd6f2b1cae1cada532e0626175cd89cad5886be"}},{"ruleId":"D1","level":"warning","message":{"text":"_Save (cyclomatic 25): _Save has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 7 function items inside it that branch (submitSettings::done, submitSettings, guardDesktopPjaxLeave, \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":"assets/admin/controller/config/index.js"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26ba24d3bfed6ae7e743c3d53a814b61f01d11d5b0518be2a734126d81fbc1f"}},{"ruleId":"D1","level":"warning","message":{"text":"Install.html.renderDbResult (cyclomatic 24): Install.html.renderDbResult has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Install.html"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"667391de9e4da32f2a6b2533447efdddb9a79e80a5836c76a3a500d3b3ce4ae1"}},{"ruleId":"D1","level":"warning","message":{"text":"store.fitImportPopupHeight (cyclomatic 24): store.fitImportPopupHeight has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/shared/store.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7f7f120fcc169ae3688cc478f5c5c3cc3dcd33c341d73bec31df4ad5d3f765"}},{"ruleId":"D1","level":"warning","message":{"text":"home._Bill (cyclomatic 24): home._Bill has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 862, 882, 910, \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":"assets/admin/controller/store/home.js"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"69e74323d7a3f9693b9f78c64d59600ddeb91975c3052ff67ffb8672c8c4bab6"}},{"ruleId":"D1","level":"warning","message":{"text":"navigation.menuContent (cyclomatic 24): navigation.menuContent has cyclomatic complexity 24 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/navigation.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8a98a4a8b1b8c2f5b725f03cd678083c844e31670b36e224a3bed614f2592b7"}},{"ruleId":"D1","level":"warning","message":{"text":"Form.destroy (cyclomatic 24): Form.destroy has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 2076, 2041, 2051, \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. This is NOT this file\u0027s highest cyclomatic complexity: Form.createForm (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":2035}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee791e52427643971a1a4210c6a9243122a12550b0e66512d836a52b21c8ddcc"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.onKeyDown (cyclomatic 24): codemirror.onKeyDown has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7242}}}],"partialFingerprints":{"codehealthFindingId/v1":"df04927e48b929efbaa5be2cafe71debdf1c256104ae5224720a5aba42552ee2"}},{"ruleId":"D1","level":"warning","message":{"text":"comment-fold.CodeMirror.registerGlobalHelper(\u0022fold\u0022,\u0022comment\u0022) (cyclomatic 24): comment-fold.CodeMirror.registerGlobalHelper(\u0022fold\u0022,\u0022comment\u0022) has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/comment-fold.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"51718b18d7205b54726d0c5f1b65b8184a90ed0d6220fbcf679cf1b5a5e8d274"}},{"ruleId":"D1","level":"warning","message":{"text":"User.theme (cyclomatic 24): User.theme has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Base/View/User.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f53d547fc0a9fbe53e276cc947d14714a260d401e1c2c6cd8d56a76922d4aa2"}},{"ruleId":"D1","level":"warning","message":{"text":"Shared.AdjustmentPrice (cyclomatic 24): Shared.AdjustmentPrice has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"b13a5ee25807624ee6ee68be36b8de4dd50d3e34e1625405eaa5ed44286d2812"}},{"ruleId":"D1","level":"warning","message":{"text":"UploadPurge.stageForDeletion (cyclomatic 24): UploadPurge.stageForDeletion has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/UploadPurge.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a839e9ea1491432823e1625399f9ad5fd37dda86cd145bcffa476f24bfaef2a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::_eventProxy (cyclomatic 24): (anonymous)::(anonymous)::_eventProxy has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0554ef75a77b5f79ad7081b7652bfe33a42b4849838b500b9d7c523b1636bc"}},{"ruleId":"D1","level":"warning","message":{"text":"#getSelectionRowState (cyclomatic 24): #getSelectionRowState has cyclomatic complexity 24 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2627bc50fe86008c943da70dbcf6fe062248fba8341e8cc0f7c2515eecab848"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 24): (anonymous) has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/comment-fold.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"496bf5556cc26eac6183f54da264d7ac0402d82624c5e66d0cb98f7b3e780375"}},{"ruleId":"D1","level":"warning","message":{"text":"index.confirmFileDelete (cyclomatic 23): index.confirmFileDelete has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 4 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 114, 148, 152). 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":"assets/admin/controller/file/index.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"583d1420f12e7c1fb704e4241a5b5ba453a845385cd5ca3a9590d9c7b8192d63"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.renderCardSubtitle (cyclomatic 23): fallback.renderCardSubtitle 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d381e6df5490f549f3d9428f24cc2a0d77143e2c98092959115f697c514db3"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.cardActionIcon (cyclomatic 23): fallback.cardActionIcon 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca50f71053ceb2328e1f5dc77b03cb862201fbd81c7d3d270867c7330d2cfc5"}},{"ruleId":"D1","level":"warning","message":{"text":"overlay.handleNavigationClick (cyclomatic 23): overlay.handleNavigationClick has cyclomatic complexity 23 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c208dc855a0076882eccf39b9b58da549d8bf99b2e1a02c733955b59a7d1bc1"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.buildLineContent (cyclomatic 23): codemirror.buildLineContent has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97d78e3b48c2c4ca244c8922a8c76091f8f5388be5719d58ec80ce0757b2554"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.onDrop (cyclomatic 23): codemirror.onDrop has cyclomatic complexity 23 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 4 belong to 3 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":6532}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b2ceadab659ed3100ebb1fd2e807f45bbe3c7da59379f7eb0115717093c4a5"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.indentLine (cyclomatic 23): codemirror.indentLine has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8078}}}],"partialFingerprints":{"codehealthFindingId/v1":"7373ed7e24a557902a776847573a334c7ba41ba24f22d40ed51b934817eff7cd"}},{"ruleId":"D1","level":"warning","message":{"text":"brace-fold.CodeMirror.registerHelper(\u0022fold\u0022,\u0022brace\u0022) (cyclomatic 23): brace-fold.CodeMirror.registerHelper(\u0022fold\u0022,\u0022brace\u0022) has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/brace-fold.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9f0f83d52407a5b2184c935af15b64a167332638402045f27c87b042357675"}},{"ruleId":"D1","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).findFatArrow (cyclomatic 23): javascript.CodeMirror.defineMode(\u0022javascript\u0022).findFatArrow has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ca8ec687393f4cb38a914049be6e94b18214f9c1f26931ea2035b0185c731f"}},{"ruleId":"D1","level":"warning","message":{"text":"Store.save (cyclomatic 23): Store.save 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":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4791cfb1d61f8713f82dfe11c33f08a446999080b94341bad028eb951127e66"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.putManyLocked (cyclomatic 23): Config.putManyLocked has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/Config.php"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"edf207f25c1401dad10b25b8082161330fbb09a63ebd00edc15558f3a6530424"}},{"ruleId":"D1","level":"warning","message":{"text":"armAutofill (cyclomatic 23): armAutofill has cyclomatic complexity 23 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 1 belongs to 2 function items inside it that branch. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/auth/login.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"255098b386d57e612a1b2a625210591d3c5309289bf4baa1065b13b4b00d5438"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 23): (anonymous) has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"25542247da0325c8b545531808a909b7e054ebf30a8880cc1962b245a92e1281"}},{"ruleId":"D1","level":"warning","message":{"text":"modal (cyclomatic 23): modal has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 9 function items inside it that branch (a function literal at line 116, complete::(anonymous)::change, a function literal at line 127, \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":"assets/admin/controller/shared/priceTemplate.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf34b96f0c390209385732ab1ce07f866cd80f137471b7e7d99061e1f3acd71a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).findFatArrow (cyclomatic 23): (anonymous).findFatArrow has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"85bbfef2133b17ce52f711a5efc97426f8f89192bf53175028636be34e57e75d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 23): (anonymous) has cyclomatic complexity 23 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 7 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/brace-fold.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9665bd73f2dda2731e1901fa2a46078664d0ebf44ff6e2e47fbf490f976cec8c"}},{"ruleId":"D1","level":"warning","message":{"text":"Install.html.renderDb (cyclomatic 22): Install.html.renderDb has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 6 of the 22 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1132, 1101, 1104, \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":"app/View/Install.html"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bec707af2afdc85b4719eaeee4586cfbdfc17aa8a514eec05cdb1d2fee3f112"}},{"ruleId":"D1","level":"warning","message":{"text":"index.renderChannels (cyclomatic 22): index.renderChannels has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 8 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 573, 618). 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":"assets/admin/controller/dashboard/index.js"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edd27250d2a7a269d894a231615f6b59608656252c7196d9955eb11c0a8fe2d"}},{"ruleId":"D1","level":"warning","message":{"text":"coupon.$(\u0022.btn-app-export\u0022).off().on() (cyclomatic 22): coupon.$(\u0022.btn-app-export\u0022).off().on() has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"77bdb53694475be4db651193f25221d1580135b7435a12d928c9dc54d5999023"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.controlAvailable (cyclomatic 22): fallback.controlAvailable has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd225a2d7c0149aee7fcaf32a6a9dbc7b9dcc4fe7010c434473fd31459244a18"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.markSemanticPage (cyclomatic 22): workflows.markSemanticPage has cyclomatic complexity 22 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"216c250e6465303cb00df4701672f23fdf7147b613a04c045086a02d9396b28f"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.syncContextNavigation (cyclomatic 22): workflows.syncContextNavigation has cyclomatic complexity 22 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 11 belong to 3 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":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e7b7a31dcab4d93df20c1a4317e12d5187ded05bd0f883a2feed41accac2324"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.discoverActions (cyclomatic 22): workflows.discoverActions has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 985, 1003, 975, \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":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc8dbe12f804e3cfb1fef4a730f6561d17d967e76e66d3ef0063cb8ec42368d"}},{"ruleId":"D1","level":"warning","message":{"text":"Util.post (cyclomatic 22): Util.post has cyclomatic complexity 22 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 11 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/util.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"43d4aad960b09c8596211846bbeca52ebe2e71d06270354665c08282f680704c"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.nodeAndOffsetInLineMap (cyclomatic 22): codemirror.nodeAndOffsetInLineMap has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"eedad763545b1d8dfc813e1a0a3edb4688e43cd6b1f4546ca8a9a040656fba41"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.defineOptions (cyclomatic 22): codemirror.defineOptions has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 11 function literals inside it that branch (lines 7774, 7739, 7743, \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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7708}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff80d25dccd7bc147313fc25385a4c035721ac697b219f1cfec7d14e61e697b"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.CodeMirror (cyclomatic 22): codemirror.CodeMirror has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7883}}}],"partialFingerprints":{"codehealthFindingId/v1":"581c9a14ea82b9a09d5a606912a49556b5d577fcb2eda59c4d941734e23c1aa6"}},{"ruleId":"D1","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).expressionInner (cyclomatic 22): javascript.CodeMirror.defineMode(\u0022javascript\u0022).expressionInner has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"266f2c99f74457562a126baa1442c09f519804770ea88982a1d2786f2b4bd5fb"}},{"ruleId":"D1","level":"warning","message":{"text":"ticket.detail.sanitizeHtml (cyclomatic 22): ticket.detail.sanitizeHtml has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 56, 71, 47). 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":"assets/user/controller/user/ticket.detail.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"52680760ce45bfc78f7d5510e6d664a3d26da2abc84d854c90416b2fe51d7513"}},{"ruleId":"D1","level":"warning","message":{"text":"Category.safeCategoryDeleteImpact (cyclomatic 22): Category.safeCategoryDeleteImpact has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b1a135e62531b80fa90a31f178f863ee639553361797afa1525b641e8f8b3bc"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.emailFailureMessage (cyclomatic 22): Config.emailFailureMessage has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"10676ee720f65542316bc676f360b8822207485181d6dc591c333e305728017d"}},{"ruleId":"D1","level":"warning","message":{"text":"App.updatePlugin (cyclomatic 22): App.updatePlugin has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/App.php"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4c9ab18f950d3d9acaea98d1d3d1c55efacdc6612f8630f218972944884b4b"}},{"ruleId":"D1","level":"warning","message":{"text":"Currency.convertAll (cyclomatic 22): Currency.convertAll has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Currency.php"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"0774c564062826f6cf55870be3c3e4400e968c5fc0d7aeb6952d8320c46ad0ec"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 22): (anonymous) has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/message.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8adb7cf8e90fb9b96919cb322f9190fc2a5b4855040c8cee7a190ba7cfb259ef"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::expandCollapseNode (cyclomatic 22): (anonymous)::(anonymous)::expandCollapseNode has cyclomatic complexity 22 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc90887a4e97b533352b65c6fcdcc24c06f8b0a7c58030ec88884c8318014318"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeImportRequest (cyclomatic 22): normalizeImportRequest has cyclomatic complexity 22 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/shared/store.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea4bfea61d2c713e91060ed259a9e6771f6d6c1e87b9723104296f4e34b56af"}},{"ruleId":"D1","level":"warning","message":{"text":"configureShell (cyclomatic 22): configureShell has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 10 of the 22 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 210, shellClickHandler, a function literal at line 214, \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":"assets/admin/controller/config/wiki.mobile.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f094e7de20aa338e44d04a58dcb056deb001fd0a2f76bdca1f1aad41a24c37e1"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).expressionInner (cyclomatic 22): (anonymous).expressionInner has cyclomatic complexity 22 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f38c93fda24a075509f3fe526d5faa2994d2e72e7d188f9a0e84d8ba1c88b2c"}},{"ruleId":"D1","level":"warning","message":{"text":"api.showTestResult (cyclomatic 21): api.showTestResult has cyclomatic complexity 21 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/pay/api.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0e3b189dfbf06ed58c7977ed5dfd53d5146614103991bdd90539b73ce8ef08"}},{"ruleId":"D1","level":"warning","message":{"text":"store.modal (cyclomatic 21): store.modal has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1293, 1287, 1299, \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":"assets/admin/controller/shared/store.js"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"c627770ef078c4b6338f892c8981fdd0474493f2742fbef162cadd6f73e96539"}},{"ruleId":"D1","level":"warning","message":{"text":"commodity.confirmCommodityDelete (cyclomatic 21): commodity.confirmCommodityDelete has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 78, 119, 120). 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":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9d2596d582b67cde4488fcaae43f83cf8e0f891e1b96310bba7ecc3bdff510d"}},{"ruleId":"D1","level":"warning","message":{"text":"menu.KTMenu.initGlobalHandlers (cyclomatic 21): menu.KTMenu.initGlobalHandlers has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 2400, 2480, 2458, \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":"assets/admin/js/menu.js"},"region":{"startLine":2398}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddadaaa1d1932d74ef9a68f1abcda6901853cc2210c27c2dd219801f9e125bc"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.renderLedgerCard (cyclomatic 21): fallback.renderLedgerCard has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d5de58da2ea478717b8eaf736117ea381e288b4a0924bbd28c4461676d2013"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.definitionValue (cyclomatic 21): fallback.definitionValue has cyclomatic complexity 21 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"10c6c242d6a531208b2a512a353b8bbb039c1f5611967143d8e4b16802313bb2"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.visible (cyclomatic 21): workflows.visible has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41d997fee6c1ebaf0f94187857c5cb13649a9970f6883966d50eea80d0c27b2"}},{"ruleId":"D1","level":"warning","message":{"text":"ready.bind (cyclomatic 21): ready.bind has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 353, 382). 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":"assets/common/js/ready.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c696d68706a2da8072c859a72d10d20938dc58597c10e2b91755dbf21f757746"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.coordsCharInner (cyclomatic 21): codemirror.coordsCharInner has cyclomatic complexity 21 (threshold 15). Of this number, 18 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":2753}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4a0bc3acef9efce19dbc251aa1d5a3fce45978bf5280255544ebb00debe1a5"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.highlightWorker (cyclomatic 21): codemirror.highlightWorker has cyclomatic complexity 21 (threshold 15). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 3998, 4027). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3991}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2e54dec8a99dce6a1ee7dab914af398a3196317a52179b21ff9aed202114c3"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.ContentEditableInput.init (cyclomatic 21): codemirror.ContentEditableInput.init has cyclomatic complexity 21 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 9 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8808}}}],"partialFingerprints":{"codehealthFindingId/v1":"90822792d95384697be6982e6b07bce5269b08ef2b7cfabf6d807191d0e41871"}},{"ruleId":"D1","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).maybeoperatorNoComma (cyclomatic 21): javascript.CodeMirror.defineMode(\u0022javascript\u0022).maybeoperatorNoComma has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"62b517257d066df8862312615c00504b350286d8dd13a054abf2b6b1c63fa6b0"}},{"ruleId":"D1","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).classBody (cyclomatic 21): javascript.CodeMirror.defineMode(\u0022javascript\u0022).classBody has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4438b899d3f51a08d312398bb1ff48e6d08fe4f3e04c762114da75117432ec"}},{"ruleId":"D1","level":"warning","message":{"text":"User.changeAccountBalance (cyclomatic 21): User.changeAccountBalance has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/User.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"98edbeecfecaf9ffbe471a1e4823b5b7eacdf4f6dbad4e87f2197751633811af"}},{"ruleId":"D1","level":"warning","message":{"text":"Cash.submit (cyclomatic 21): Cash.submit has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Cash.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"287d205742347bdf23486f5285c93b95dad7b00b06c2ab4cc3f155dfc864d903"}},{"ruleId":"D1","level":"warning","message":{"text":"Shop.getItem (cyclomatic 21): Shop.getItem has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shop.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde76f6bf27c7a8f71b057d98880e1fae62993d6894acf14724ff13d819b6bcd"}},{"ruleId":"D1","level":"warning","message":{"text":"SharedCurrency.config (cyclomatic 21): SharedCurrency.config has cyclomatic complexity 21 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/SharedCurrency.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd2ec6d2671b7b0f950173b7ebbe3f67545e3adacaf33a73b2fe4fd48e4e993"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::popup::success::(anonymous)::render (cyclomatic 21): (anonymous)::popup::success::(anonymous)::render has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/modules/hex.js"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b36beb103a3b1d5547b2a4ae269ce5c59e35d516d0f390499f4f2b21e4596e9"}},{"ruleId":"D1","level":"warning","message":{"text":"KTUtil.slide (cyclomatic 21): KTUtil.slide has cyclomatic complexity 21 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 2 belong to 10 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":"assets/admin/js/menu.js"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b5937fc515723fa113a3c6178503962bf32dc8851f55cce49abeeec29bb6e0"}},{"ruleId":"D1","level":"warning","message":{"text":"#openColumnDetail (cyclomatic 21): #openColumnDetail has cyclomatic complexity 21 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 10 belong to 6 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad212ee386b7ee6db03a55d295908be9f20000ceff95f4a498f90628bde9802"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).maybeoperatorNoComma (cyclomatic 21): (anonymous).maybeoperatorNoComma has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"1471c7415546c1daa6bab4acb2607e96c9f2a193ac109280976f6aa023de2524"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).classBody (cyclomatic 21): (anonymous).classBody has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"18dedc4b6f267d84741f420d6880898241f94ce017eb1d037e557a9fa9edaeeb"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).atBlock (cyclomatic 21): (anonymous).atBlock has cyclomatic complexity 21 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"392b390fc55fd4bf50619e0e799b8b99991e096d52dcde0e50b2f1c2540f02da"}},{"ruleId":"D1","level":"warning","message":{"text":"coupon.confirmCouponDelete (cyclomatic 20): coupon.confirmCouponDelete has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 113, 127, 140, \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":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a12e0a305a57a4806f497dfd92d28e93e458fc84f4d5dcb843dca98d1f566c3"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.relativeTimeTimestamp (cyclomatic 20): fallback.relativeTimeTimestamp has cyclomatic complexity 20 (threshold 15). Of this number, 19 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1585a4fff2e7b4518026ab320a847f316052a5d18c97675159b004198036a0c"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.configureShellSearch (cyclomatic 20): fallback.configureShellSearch has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"744d8155ad7b0fd67dbe1bc0b74109630bd94881b7f808cefdaed8bc8b82b6ab"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.cardOfferContent (cyclomatic 20): fallback.cardOfferContent has cyclomatic complexity 20 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 7 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"a260f920e9bc0c2d14686176f1ce8b0c133a3caf722968ba0d56e7361e5c2358"}},{"ruleId":"D1","level":"warning","message":{"text":"overlay.closeTransientInput (cyclomatic 20): overlay.closeTransientInput has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"934be24b76bb194ff97ad201d77868c22e2890fc29558852c1e0910f1ef049a1"}},{"ruleId":"D1","level":"warning","message":{"text":"viewport.updateViewportVars (cyclomatic 20): viewport.updateViewportVars has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/viewport.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"36c66caf3b63347f5fd36a0a7c1c04e39b1da4074d236184c8bdba8924a8972d"}},{"ruleId":"D1","level":"warning","message":{"text":"viewport.keepPageFieldVisible (cyclomatic 20): viewport.keepPageFieldVisible has cyclomatic complexity 20 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 7 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":"assets/admin/js/mobile/viewport.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b56c991d3d854892b3089d972a7a9feb4b0ac420a2d76bcbc55be032c8b76a5"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.bidiSimplify (cyclomatic 20): codemirror.bidiSimplify has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7613}}}],"partialFingerprints":{"codehealthFindingId/v1":"df53b732c9f4f7bc10bba9b58e3c615ef50c11485d6484d58f224a34c47add73"}},{"ruleId":"D1","level":"warning","message":{"text":"Panel.save (cyclomatic 20): Panel.save has cyclomatic complexity 20 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/security/ipwhitelist.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7a211dbbb616db31322c0940e8f71cfb4eaed49809b188552b3fe4214b3ca6"}},{"ruleId":"D1","level":"warning","message":{"text":"Card.save (cyclomatic 20): Card.save 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":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"875cc363952c7a4785b7ec8539b6ccb2aab5d92de308eba03f475025ca00db32"}},{"ruleId":"D1","level":"warning","message":{"text":"Card.edit (cyclomatic 20): Card.edit 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":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"839a76249a6a96e4dc99600809cf3d1bf5929fd644da6b807d6d7118814e65cd"}},{"ruleId":"D1","level":"warning","message":{"text":"Commodity.commodityDeleteImpact (cyclomatic 20): Commodity.commodityDeleteImpact 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":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ef831f77ce5d9d64ca780c5e83423e680a19c8d0624bfdcfc1be4b04cab183"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.consumeTestSendQuota (cyclomatic 20): Config.consumeTestSendQuota 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":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"c351a7d2bf57367673f66cf9fbccb097d8ee3351b3d6b84754ebf62cef09fc25"}},{"ruleId":"D1","level":"warning","message":{"text":"RechargeOrder.verifyExportToken (cyclomatic 20): RechargeOrder.verifyExportToken has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/RechargeOrder.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"668ed9217a4942662038d18e85335b544fb7367b3b2784ed640d4637701cf7bc"}},{"ruleId":"D1","level":"warning","message":{"text":"Card.save (cyclomatic 20): Card.save 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":"app/Controller/User/Api/Card.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"df95e95dd47a33fab4a1df96e30b05d2acf80c46eb66863237936b0c4bbc4460"}},{"ruleId":"D1","level":"warning","message":{"text":"Coupon.save (cyclomatic 20): Coupon.save has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Coupon.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe078a718f176e16cc9a2d6b5fb24860896468f0967176b6db38b0247e0d8479"}},{"ruleId":"D1","level":"warning","message":{"text":"Index.card (cyclomatic 20): Index.card 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":"app/Controller/User/Api/Index.php"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf60afa2b1a10f06437e6a4227c62ab94ab6c300defacbd93da2de00615bf807"}},{"ruleId":"D1","level":"warning","message":{"text":"Order.callbackTest (cyclomatic 20): Order.callbackTest has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Order.php"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"754b066ef85f0534a7901b51bd52af6881eb3d002183c7dfaacfddb7aed7f3ab"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.cleanContent (cyclomatic 20): Message.cleanContent has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c91dec24887e3670a398e974d46b3d71acec70834c80bf5f59d84a408a72217"}},{"ruleId":"D1","level":"warning","message":{"text":"Order.getCost (cyclomatic 20): Order.getCost 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":"app/Service/Bind/Order.php"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b49341d40baa349a766b31515419ad1a0cfc6500cf326af13f507da7850068a"}},{"ruleId":"D1","level":"warning","message":{"text":"Query.save (cyclomatic 20): Query.save 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":"app/Service/Bind/Query.php"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb96516431d36f777339415803e1bb71a6e24583d5aaa18e201fede78f5923d"}},{"ruleId":"D1","level":"warning","message":{"text":"redactDebugValue::clone (cyclomatic 20): redactDebugValue::clone has cyclomatic complexity 20 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/util.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d3366ed2dd1ed7b146ff61917b623bcf33286a18964a4902e4ae12c65e5b0e"}},{"ruleId":"D1","level":"warning","message":{"text":"sanitizeInlineHtml (cyclomatic 20): sanitizeInlineHtml has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 132, normalizeLink, normalizeColor, \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":"assets/common/js/component.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2fa202e6e69da152ea81babd796b2ad2e05a1daeb990ab12ab22afa444dee8"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::setSonNodeCheckBox (cyclomatic 20): (anonymous)::(anonymous)::setSonNodeCheckBox 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":"assets/common/js/component/tree.select.js"},"region":{"startLine":2542}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9ea010b6a76a51fb1d2a275eace4aeaffb7384a583daf59dec1d9c900f73d6"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach (cyclomatic 20): (anonymous).attach has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 9 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/drag-sort.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebeb857629606ec78acfd4ef11e982268a532882e924a2906f11d3c43ceabda1"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach.openActions (cyclomatic 20): (anonymous).attach.openActions has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 belong to 11 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa4af0e7699c5c219c076ca54ecbdc989dbfc0d7867f1861d31a5c90e908bbd"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).confirmDelete (cyclomatic 20): (anonymous).confirmDelete has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 4 of the 20 points are its own statements and the rest belongs to 9 function items inside it that branch (done, a function literal at line 63, a function literal at line 23, \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":"assets/admin/controller/trade/category-actions.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"98c09b2fd078d530b8e899a8a9d5c583b03d1c3d483a410ed0a5260e503c3057"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeRemoteProductGroups (cyclomatic 20): normalizeRemoteProductGroups has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 317, 311). 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":"assets/admin/controller/shared/store.js"},"region":{"startLine":304}}}],"partialFingerprints":{"codehealthFindingId/v1":"6613dcadba7f2d9b6fe48d103cee6144920e7bc4dfe88370d89ae831454ec9cb"}},{"ruleId":"D1","level":"warning","message":{"text":"click (cyclomatic 20): click has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 11 function items inside it that branch (a function literal at line 427, (anonymous)::success::(anonymous)::(anonymous)::done, a function literal at line 447, \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":"assets/admin/controller/pay/plugin.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e48047624c49ebe959bd693edd5339721ccd095001703cebf3b88caadb4d32"}},{"ruleId":"D1","level":"warning","message":{"text":"modal (cyclomatic 20): modal has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 9 belong to 8 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/pay/api.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"db481d5a95979321e6a66bdea7707d92add57e542e70a3da4cb32f1402d65e93"}},{"ruleId":"D1","level":"warning","message":{"text":"sanitizePluginDisplayHtml (cyclomatic 20): sanitizePluginDisplayHtml has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 59, normalizeColor, walk, \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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b443cf889361d0aeaf4954aa8e4025cc7404936a89bfa590209d739ae6ca44b7"}},{"ruleId":"D1","level":"warning","message":{"text":"click (cyclomatic 20): click has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to 11 function items inside it that branch (a function literal at line 304, (anonymous)::success::(anonymous)::(anonymous)::done, a function literal at line 324, \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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d05217142da5ad0c915ad8cc0889d0a9ffb6aa564b1eaa78c37efd279db530b"}},{"ruleId":"D1","level":"warning","message":{"text":"other.$(\u0022#currency-convert-btn\u0022).off().on() (cyclomatic 19): other.$(\u0022#currency-convert-btn\u0022).off().on() has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/config/other.js"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4cf350391a79d54f5b0f480c6360002d0419a93cd2e1baed2a9dfec738f65f"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.mount (cyclomatic 19): workflows.mount has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 1342, 1327, 1323, \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":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"902352daf57fa3d4921376a4630d14073fa8e959e7774850d0a304644eb350fc"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.conflictingCollapsedRange (cyclomatic 19): codemirror.conflictingCollapsedRange 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"093007cfd68edb985f5cf2c9511af8e6c852c98fdbedfbd7fbda1e72f75ae7c4"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.calculateScrollPos (cyclomatic 19): codemirror.calculateScrollPos has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3499}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ece9fcd3cc18a48ce48ecdb5482b105140c381d55902a036410ccf3ed1220c"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.onMouseDown (cyclomatic 19): codemirror.onMouseDown has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7335}}}],"partialFingerprints":{"codehealthFindingId/v1":"d30a08da777a9435fac497952387e8464dffa2cc7bd9db061aebb56cb343fce6"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.domTextBetween (cyclomatic 19): codemirror.domTextBetween 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9208}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e70c352a39b43d678d8f0c9ff4180ec6d3447dd01f316d7b49fc6edb9a75c9f"}},{"ruleId":"D1","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).objprop (cyclomatic 19): javascript.CodeMirror.defineMode(\u0022javascript\u0022).objprop has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fd791ec2ca87c8044fb982f2724981a50039f2e6ace4ed7dba4a5e9a965270"}},{"ruleId":"D1","level":"warning","message":{"text":"Panel.render (cyclomatic 19): Panel.render has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/security/ipwhitelist.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5f024de67a3f08b572ecb5849ea961fae47054bab0d6849454af8f9178c4bb"}},{"ruleId":"D1","level":"warning","message":{"text":"recharge.updateSummary (cyclomatic 19): recharge.updateSummary has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/recharge.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f4dc9d69b138ce7f5a4fd8cffaede884d0020f98f2689e189f6e8381b33d8c4"}},{"ruleId":"D1","level":"warning","message":{"text":"Card.cardExportQuery (cyclomatic 19): Card.cardExportQuery 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":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"3804ca7d34abd0532fd7c2e33d3f489a43174df9b3b4b5d725625dcbb8aea6f6"}},{"ruleId":"D1","level":"warning","message":{"text":"Order.verifyOrderExportToken (cyclomatic 19): Order.verifyOrderExportToken has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fefb86832ae129437ddc46469575a88f8dacbc0e14fd3a26b9ff93270e803b7"}},{"ruleId":"D1","level":"warning","message":{"text":"Pay.paymentDeleteImpact (cyclomatic 19): Pay.paymentDeleteImpact has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Pay.php"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f3cdc603f28a4bcafe99eb06d810b7391094bd0bcaa468a1adbb2aeebd1021"}},{"ruleId":"D1","level":"warning","message":{"text":"CommodityOrder.data (cyclomatic 19): CommodityOrder.data has cyclomatic complexity 19 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/CommodityOrder.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece7e4bab90192c59487843327570dc55cab26826d071e1354a807cfd9dda2c8"}},{"ruleId":"D1","level":"warning","message":{"text":"Image.downloadRemoteImage (cyclomatic 19): Image.downloadRemoteImage 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":"app/Service/Bind/Image.php"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"bea6ce0e22cef927c90353c5073ebe5bc8a8b43b1469115471616aa9b9fc0f2a"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.siteBaseUrl (cyclomatic 19): Message.siteBaseUrl 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":"app/Service/Bind/Message.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a4b46353de950531cc9dac9696d39d701b6e03af8efd44b4c8ba321a3b11be"}},{"ruleId":"D1","level":"warning","message":{"text":"Order.orderSuccess (cyclomatic 19): Order.orderSuccess 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":"app/Service/Bind/Order.php"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de966ba2ce1d1f49db6627b98dbb8d9a1c341dfcf0947fb774c4d5c7fd3965f"}},{"ruleId":"D1","level":"warning","message":{"text":"Ticket.normalizeTicket (cyclomatic 19): Ticket.normalizeTicket has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"aca01c4c9ffd461a796b51c1487d3ec0d02edc172c9ce4d5de7d5a84a080eed2"}},{"ruleId":"D1","level":"warning","message":{"text":"Ticket.cleanContent (cyclomatic 19): Ticket.cleanContent 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":"app/Service/Bind/Ticket.php"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aad28564cda4729c7fb4016ac2c1af9a55c82f7eb6bcde9fb7d3430f79bcb70"}},{"ruleId":"D1","level":"warning","message":{"text":"UploadPurge.inspectUploadPath (cyclomatic 19): UploadPurge.inspectUploadPath 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":"app/Util/UploadPurge.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4839ef6f32d55310ed26b465fb2bbc51cae9869dd87492521d9aa405d40eb86"}},{"ruleId":"D1","level":"warning","message":{"text":"GridTracks.track (cyclomatic 19): GridTracks.track 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":"kernel/Waf/Css/GridTracks.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"47768f4ef47913b364216fb7c2b124f0b7adcbd4c41442de594a836a8f25a5e5"}},{"ruleId":"D1","level":"warning","message":{"text":"sanitizeRichHtml (cyclomatic 19): sanitizeRichHtml has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 56, a function literal at line 72, walk). 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":"assets/common/js/component.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b406adc885dce6126c5816d1bbf9d283ebf9150082770ba97420558427888c93"}},{"ruleId":"D1","level":"warning","message":{"text":"alignReferenceCards (cyclomatic 19): alignReferenceCards has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 62, 78, 60, \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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf70077dbad03109ec19a3ceaa3fb94becc53ffe6ac67cdd28f7ffe837dbfb3"}},{"ruleId":"D1","level":"warning","message":{"text":"requestAudienceCount (cyclomatic 19): requestAudienceCount has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 3 function items inside it that branch (done, error, fail). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/message.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8ecebb39e36d9a90359ede4f44b3affc6bc1bb2935155cb10f90555d0ab8b8"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach.onMobilePointerDown (cyclomatic 19): (anonymous).attach.onMobilePointerDown has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/drag-sort.js"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc5a12b253f9a7e2464b139dd3cc07c4836663699ab21b3cbb4a2fe13d21de1"}},{"ruleId":"D1","level":"warning","message":{"text":"normalizeImportTask (cyclomatic 19): normalizeImportTask has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/shared/store.js"},"region":{"startLine":729}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe23ce8575982ab2cbb0364353f812e982ed1c044e0487f200ddbe2118f5d35c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 19): (anonymous) has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 belong to 8 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/config/other.js"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"af77719570620a21431f021f26022977cc7778a35a4c58f94ae8accf8d198155"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).objprop (cyclomatic 19): (anonymous).objprop has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe5e6b6bab669acc7599d57d8c292e4c8875fe5821fcfc050f0f0828c65b5e3"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).top (cyclomatic 19): (anonymous).top has cyclomatic complexity 19 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"73c60735917b1c36da2b2b71e80e6ea54f32134e309703b081179266b5bdb51b"}},{"ruleId":"D1","level":"warning","message":{"text":"home.requestPurchase (cyclomatic 18): home.requestPurchase has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 299, 289, 310, \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":"assets/admin/controller/store/home.js"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3e774a5a80abca0395f8fc657bd0ca2a0e105d2e6a92c358719f16dae1ace1"}},{"ruleId":"D1","level":"warning","message":{"text":"ticket.sanitizeRichHtml (cyclomatic 18): ticket.sanitizeRichHtml has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 117, 132). 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":"assets/admin/controller/user/ticket.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1333dda65c15c625685dd61861accaa1e9f14364282458c5d262497689c8b46"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.cardSubtitle (cyclomatic 18): fallback.cardSubtitle has cyclomatic complexity 18 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: fallback.alignReferenceCards (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1756e632c0dc33e79df21febefd396dccb1353b6f994061da1b677081401872"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.updateTreeCollapsePresentation (cyclomatic 18): fallback.updateTreeCollapsePresentation has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 2718). 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. This is NOT this file\u0027s highest cyclomatic complexity: fallback.alignReferenceCards (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2716}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c800b3d54a9b4415f33cddd4efd0d7c02fbeaedbc4ae48e6d589866c756c145"}},{"ruleId":"D1","level":"warning","message":{"text":"overlay.setupDirtyTracking (cyclomatic 18): overlay.setupDirtyTracking has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 514, 541, 519, \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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f03db770e180d3b22307611f0afeee7b71da981a9e6b723cbc09553fa64929"}},{"ruleId":"D1","level":"warning","message":{"text":"overlay.openActions (cyclomatic 18): overlay.openActions has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 5 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 905, 916). 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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"89b11d188b70517c280f2519d4c78dda331f2d9a4742e3a573c24d31a3748207"}},{"ruleId":"D1","level":"warning","message":{"text":"Form.disposeControl (cyclomatic 18): Form.disposeControl has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This is NOT this file\u0027s highest cyclomatic complexity: Form.createForm (cyclomatic 40) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c68d47f2a1c860e0a6f1f11ca7f1b3fd8a9d309fa522ad1d880fcf872e99309"}},{"ruleId":"D1","level":"warning","message":{"text":"editorv2.register.destroy (cyclomatic 18): editorv2.register.destroy has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b05f08b0c9e2856ae227a1c461bc623359b55e3a5c92d6de46e3a6fc2df1331"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.removeReadOnlyRanges (cyclomatic 18): codemirror.removeReadOnlyRanges has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"44fdbc3f791f835117460a2cfb0fe8628bedceee3fc0323f64d9ba0688864207"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.endOperation_finish (cyclomatic 18): codemirror.endOperation_finish has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3910}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fc827c4f465fc80e3f9850e679e2ceb70c3a2faff0ce544243fa330e605e4d"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.onKeyPress (cyclomatic 18): codemirror.onKeyPress has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7286}}}],"partialFingerprints":{"codehealthFindingId/v1":"f586b3391732c4bcb4f3364c6b6c89eb192271d0a247a5a6c049cb918f5c0f33"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.TextareaInput.init (cyclomatic 18): codemirror.TextareaInput.init has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 7 of the 18 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 9365, 9399, 9370, \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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9353}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2e7fcb245ef53a93cbb9d6af1044730f39db809c1e370d23764c1f4fbab64c"}},{"ruleId":"D1","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).typeexpr (cyclomatic 18): javascript.CodeMirror.defineMode(\u0022javascript\u0022).typeexpr has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"48bf014d1b4cae14ccb6ee72a4154858509d49208fc119047e062ba9cc3b68eb"}},{"ruleId":"D1","level":"warning","message":{"text":"ticket.create.updateSummary (cyclomatic 18): ticket.create.updateSummary has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/ticket.create.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ae963b810da0db31d44eaeacc2fb14bead4678b071788ad1c4525bf252f53eb"}},{"ruleId":"D1","level":"warning","message":{"text":"ticket.create.submitTicket (cyclomatic 18): ticket.create.submitTicket has cyclomatic complexity 18 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/ticket.create.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dec6f40713c2ed542e7203879eb2f774329960ed643b52518748772825f0beb"}},{"ruleId":"D1","level":"warning","message":{"text":"Category.verifyCategoryDeleteToken (cyclomatic 18): Category.verifyCategoryDeleteToken has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"57a0aaabf4d16df0ab86a749ba4660fecb20bccddf424b278f420451ac08a999"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.security (cyclomatic 18): Config.security has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"d403788620ce70d2d500ad294b71a40dd1f281c1168ed9f67d80934a5d346c56"}},{"ruleId":"D1","level":"warning","message":{"text":"PriceTemplate.computePrice (cyclomatic 18): PriceTemplate.computePrice has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/PriceTemplate.php"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"10524cdf9e05e64397fca64d00a3340a4d18eb60b0b1535e2d9aad5d8ff68416"}},{"ruleId":"D1","level":"warning","message":{"text":"Pay.savePluginConfig (cyclomatic 18): Pay.savePluginConfig has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Pay.php"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e1b67a50088ea8696fa60482d38578d2e186ee4d9f1f71b43ecea473811c790"}},{"ruleId":"D1","level":"warning","message":{"text":"Shop.substationPriceIncrease (cyclomatic 18): Shop.substationPriceIncrease has cyclomatic complexity 18 (threshold 15). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shop.php"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"062386f67cb6e35f2cb3ef44e890189c33f0cf868ea1a5eec4022ae7b03f1827"}},{"ruleId":"D1","level":"warning","message":{"text":"CategoryTree.forAdmin (cyclomatic 18): CategoryTree.forAdmin has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/CategoryTree.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9e4237b67877931c5ed30d33b75db2e83ec84c1a04b9480a1256a38f4c3f450"}},{"ruleId":"D1","level":"warning","message":{"text":"PluginPacker.pack (cyclomatic 18): PluginPacker.pack has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/PluginPacker.php"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"944a1c3395ec74f655ac35761e369684d342e7e023cc0db046d4415419cb289c"}},{"ruleId":"D1","level":"warning","message":{"text":"Waf.wafPost (cyclomatic 18): Waf.wafPost has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Waf.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"159ecfa5d3d4ba7db5fec56a5cd6ded2b34503215762bdc8b644737379ede5f2"}},{"ruleId":"D1","level":"warning","message":{"text":"KTScroll::_getAutoHeight (cyclomatic 18): KTScroll::_getAutoHeight has cyclomatic complexity 18 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/menu.js"},"region":{"startLine":2896}}}],"partialFingerprints":{"codehealthFindingId/v1":"9841c1352e2b401c701bc2dbfc5d63d7af7c540164c82fd8fad0f18c08a3cd0f"}},{"ruleId":"D1","level":"warning","message":{"text":"#mobileDisplayValue (cyclomatic 18): #mobileDisplayValue has cyclomatic complexity 18 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"c77d4f3c7a0550c3ea6fc41ed901a7aa9eb8165061b907a4d2d702482f8e986a"}},{"ruleId":"D1","level":"warning","message":{"text":"setupSheetDrag::pointerDown (cyclomatic 18): setupSheetDrag::pointerDown has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"d934e3f7d48a84857c6bc3b8dd50ec76556777e41bf14d9f21b00491b74748ff"}},{"ruleId":"D1","level":"warning","message":{"text":"renderToolbar::(anonymous)::syncSourceState (cyclomatic 18): renderToolbar::(anonymous)::syncSourceState has cyclomatic complexity 18 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2270}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf4404a757b43566e8b08f3ae16542f98f09a87cf1e130af36ff82d37f0c851"}},{"ruleId":"D1","level":"warning","message":{"text":"click (cyclomatic 18): click has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 7 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/recharge.order.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"f935e8ad39e1e5135acab24dad7b2bd3666a9594212fd2b52535c74538c97916"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach.nodesHtml (cyclomatic 18): (anonymous).attach.nodesHtml has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 366). 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":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"f034cf112778328a39e376f16913fecd7bf32ee81a2dac2f6d7e9d0d160bc5d6"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).typeexpr (cyclomatic 18): (anonymous).typeexpr has cyclomatic complexity 18 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"86038c9436aff5ae816f39ca44345eb49aba897dae0258d2979d3d06cff0fc7b"}},{"ruleId":"D1","level":"warning","message":{"text":"register.destroy (cyclomatic 18): register.destroy has cyclomatic complexity 18 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c0cb9f5098025564d34496d804f02a1b8a5bfa6527514f1b3ef5c335b3679c"}},{"ruleId":"D1","level":"warning","message":{"text":"google2fa.$(\u0022#g2fa-bind-btn\u0022).off().on() (cyclomatic 17): google2fa.$(\u0022#g2fa-bind-btn\u0022).off().on() has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 90, 143, 134, \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":"assets/admin/controller/config/google2fa.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"d296684a82870bb1d7f9bc29c3077cd3c699474504dc62adf43012bc98da600d"}},{"ruleId":"D1","level":"warning","message":{"text":"wiki.mobile.destroy (cyclomatic 17): wiki.mobile.destroy has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/config/wiki.mobile.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"899da10a546cbeb0a465171a77bb4f54e71382fbc91408f98d9e6bf669a72e88"}},{"ruleId":"D1","level":"warning","message":{"text":"store.importTaskLogText (cyclomatic 17): store.importTaskLogText has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 823). 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":"assets/admin/controller/shared/store.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"b58f326f142c7a6c158349befe30ecbe769016f4c3bda93bbf8ff33c4baba97c"}},{"ruleId":"D1","level":"warning","message":{"text":"ticket.pollMessages (cyclomatic 17): ticket.pollMessages has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 7 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 525, 510). 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":"assets/admin/controller/user/ticket.js"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"484172b4de51628b6ffa02032d0a954405cceacd9274db6e2e4c0f50ed9fc8dd"}},{"ruleId":"D1","level":"warning","message":{"text":"ticket.sendReply (cyclomatic 17): ticket.sendReply has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 655, 642, 668, \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":"assets/admin/controller/user/ticket.js"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"575d5ff7586dfcef80d2fcded604f8c3b8c5f97d4f900cda94151fd2345ed149"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.compactCardDefinitions (cyclomatic 17): fallback.compactCardDefinitions has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 335). 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. This is NOT this file\u0027s highest cyclomatic complexity: fallback.alignReferenceCards (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c7606aa57e2c2e437918f7be73e9e4b34a5aca11921bdb7eb4cbf90c812454"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.renderTreeToggle (cyclomatic 17): fallback.renderTreeToggle has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: fallback.alignReferenceCards (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2744}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be72f5fda79c0c1df3f18a45f68a4dc9de30ddf57c868b5d7f6037ee4519b81"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.rebuild (cyclomatic 17): fallback.rebuild has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 3220). 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. This is NOT this file\u0027s highest cyclomatic complexity: fallback.alignReferenceCards (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":3217}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee7a21b9909400f09fa62e55575db560788e299f74dea88fdab77823c521398"}},{"ruleId":"D1","level":"warning","message":{"text":"overlay.api.closeAll (cyclomatic 17): overlay.api.closeAll has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 7 belong to 3 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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e01f4deebf4880082a0926f3382656330087a3022e519b65b3d4657e8cc1431"}},{"ruleId":"D1","level":"warning","message":{"text":"recipes.rechargeOrderSubtitleField (cyclomatic 17): recipes.rechargeOrderSubtitleField has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/recipes.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"5077cd90d8f442ad2ad40e0253bcd2b058969b4d5caf3bd8dd7fdd8ecbe80079"}},{"ruleId":"D1","level":"warning","message":{"text":"Search.#setField (cyclomatic 17): Search.#setField has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/search.js"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"c848a1bcfcf52b12af58e6b74a4ac1910c0cf743e7367eb84788f2655a728520"}},{"ruleId":"D1","level":"warning","message":{"text":"editorv2.register.sizeImages.text (cyclomatic 17): editorv2.register.sizeImages.text has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":747}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6de77e61eb0f9cf324b30c4c03aa2c46dd7a07bf79e42094e366203d7249c97"}},{"ruleId":"D1","level":"warning","message":{"text":"Util.fundVerify (cyclomatic 17): Util.fundVerify has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 371, 389, 416, \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":"assets/common/js/util.js"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffeebdfb7b5a0debbc905249be2e4b429c70a4d6dee92a7a2e37b2d6c26fd74d"}},{"ruleId":"D1","level":"warning","message":{"text":"css.CodeMirror.defineMode(\u0022css\u0022).indent (cyclomatic 17): css.CodeMirror.defineMode(\u0022css\u0022).indent has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"38dad4b026f03e38870507d0b47b7ffebcd81151bebe99b1e04cb09a3301e887"}},{"ruleId":"D1","level":"warning","message":{"text":"ticket.create.initRemoteSelect (cyclomatic 17): ticket.create.initRemoteSelect has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 60, 59, 72, \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":"assets/user/controller/user/ticket.create.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5a77295249a7b991a1ee394d7e9113cffc8a2d52c3eff63c30a51009983cddc"}},{"ruleId":"D1","level":"warning","message":{"text":"glass.initMessageCenter (cyclomatic 17): glass.initMessageCenter has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 337, 370, 378, \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":"assets/user/js/glass.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"69729b56977378dfe96c72804e6f4bbc7c948d4aca4f081710908c34fd3c1590"}},{"ruleId":"D1","level":"warning","message":{"text":"glass.initTheme (cyclomatic 17): glass.initTheme has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"assets/user/js/glass.js"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc3bb3fc855eed8ad340665b86fe489a8f3a1f0f5b495f68603b7d4863389360"}},{"ruleId":"D1","level":"warning","message":{"text":"Category.status (cyclomatic 17): Category.status has cyclomatic complexity 17 (threshold 15). To reduce it, separate the branches: extract each independent case into its own named function so the top-level body reads as a short sequence of named decisions."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c615f16d7ec1a90e2496af493938c9b74309fa41756d95970f30c6df67bcfb7"}},{"ruleId":"D1","level":"warning","message":{"text":"Config.configHttpUrl (cyclomatic 17): Config.configHttpUrl has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"bae4a94675b7e621636a0db69d12dd64b2f183808a7d022432f611c6bd5301a8"}},{"ruleId":"D1","level":"warning","message":{"text":"Master.setCommodity (cyclomatic 17): Master.setCommodity has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Master.php"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"feff750bbf480048162f03cdfb04fbe947ca273f90db1ef0b81ee77d6d17b49f"}},{"ruleId":"D1","level":"warning","message":{"text":"Currency.convertCommodityConfigs (cyclomatic 17): Currency.convertCommodityConfigs has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Currency.php"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f7bd52299cdc5de73dcce6e80af3228378ae937d08bc476bcc99a0b39e98cb"}},{"ruleId":"D1","level":"warning","message":{"text":"Recharge.trade (cyclomatic 17): Recharge.trade has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Recharge.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1034de75dae90ca81a8ca2a3ed0db3484f240251a5f15ab2b2957d4525747bac"}},{"ruleId":"D1","level":"warning","message":{"text":"Shop.getCategory (cyclomatic 17): Shop.getCategory has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shop.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6d3d89e43c01fed4951109a9590ca387e348e1487d2c3cdf56b0ee138fe2afa"}},{"ruleId":"D1","level":"warning","message":{"text":"Ticket.applyFilters (cyclomatic 17): Ticket.applyFilters has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0bae6def3bff5d703781e9af8520bf639fb252989ac657d2db1c943c9044dd"}},{"ruleId":"D1","level":"warning","message":{"text":"Ticket.delete (cyclomatic 17): Ticket.delete has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0672cfa11fcfbcca41dd6ec14774014b7f69e8fd2b8b5bd8020b01e34e2d33"}},{"ruleId":"D1","level":"warning","message":{"text":"Csp.deriveSource (cyclomatic 17): Csp.deriveSource has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Csp.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33fc1dbac7a911a0db9bc97150009108484743d5886551b25ad2ba3ec3164ce"}},{"ruleId":"D1","level":"warning","message":{"text":"Lang.collect (cyclomatic 17): Lang.collect has cyclomatic complexity 17 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a6112de9afb3cc5598872fff2a51e396b095e962fd292fbe9a9c072b894cb45"}},{"ruleId":"D1","level":"warning","message":{"text":"Lang.transObjectList (cyclomatic 17): Lang.transObjectList has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"1525fdd5a7b66dc21591b54bec83edd7a76114a4103370bb8fe610c07b87c943"}},{"ruleId":"D1","level":"warning","message":{"text":"Shadow.layer (cyclomatic 17): Shadow.layer has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Waf/Css/Shadow.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"5745a46726518c86f44fa0ec0d50d1d74d35afc3cf84339e9fece6841b0fc526"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::init::expandNode (cyclomatic 17): (anonymous)::(anonymous)::init::expandNode has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":1804}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afc283ac688c5991103e9e74f78bc81702b98e2b0b30d7dcd8ccc98b2c49a50"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::_eventProxy (cyclomatic 17): (anonymous)::(anonymous)::_eventProxy has cyclomatic complexity 17 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ee1a772acb140447c508c1b2a1e1a7cdc27c4a0134885c5f62b29bc413056e"}},{"ruleId":"D1","level":"warning","message":{"text":"openSheet (cyclomatic 17): openSheet has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"de05465487f38c4305192356c51664ace7fe5c7cde8f6282f89fe3dec6919a44"}},{"ruleId":"D1","level":"warning","message":{"text":"copyConfiguredField (cyclomatic 17): copyConfiguredField has cyclomatic complexity 17 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 6 belong to 3 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a8c3b17e8fa716291e8e7ac53389fdc196a690d9776a3441ea52464f2be532"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach.groupBlocks (cyclomatic 17): (anonymous).attach.groupBlocks has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 241, a function literal at line 224, isDescendantOf, \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":"assets/admin/controller/trade/drag-sort.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a35651aba5089dd80e3793f2eaa0fbb56c96eea9b81d5f469efa5a38f6480f"}},{"ruleId":"D1","level":"warning","message":{"text":"confirmCommodityDelete::done (cyclomatic 17): confirmCommodityDelete::done has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"d319fa0819c6bb96d7b8775b8278e4e692e667d5cdd83010cbfb178c7c2f8c14"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach.treeHtml (cyclomatic 17): (anonymous).attach.treeHtml has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"395aef57044bd0535bc0034f10b17539f460d42f7ec6c0f3928609aaa875d738"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach.endDrag (cyclomatic 17): (anonymous).attach.endDrag has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d128c30a0e7c0ca9a57dcddd8995c4deaf8820d5206ae1afdce3f84b900030d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).attach.bindHost (cyclomatic 17): (anonymous).attach.bindHost 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 9 function literals inside it that branch (lines 1110, 1125, 1146, \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":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a7967478a4392c4ae1a2e61e361d7ad4641a6734ba9eb1db489f6c5ebffc0b"}},{"ruleId":"D1","level":"warning","message":{"text":"importItemRequest (cyclomatic 17): importItemRequest 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 3 function literals inside it that branch (lines 965, 949, 998). 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":"assets/admin/controller/shared/store.js"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bb83319507371217ad5e086482f293f0912f2f63c0e53405a7c62bd9d99f442"}},{"ruleId":"D1","level":"warning","message":{"text":"renderConfigForm (cyclomatic 17): renderConfigForm has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/pay/plugin.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9cb24ad1e406013151a2b0c8f6f71b217df5ea8f2050b4a582d2a22aedfdc1"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 90, a function literal at line 143, (anonymous)::submit, \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":"assets/admin/controller/config/google2fa.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"c129ae294b17310c34f0a2eff4984e715713b9236302fc1c8920168e73c21e51"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).indent (cyclomatic 17): (anonymous).indent has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd98981e80e89444c4343b7cc84c731371823de1437f373fbf90fb7a8a3da31a"}},{"ruleId":"D1","level":"warning","message":{"text":"register.sizeImages (cyclomatic 17): register.sizeImages 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 7 function items inside it that branch (a function literal at line 747, (anonymous)::get, a function literal at line 751, \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":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd34265c0cb15b713a1cfb4a8d9d14b8884cba6f0cd94c08b7f7c1717ef9b9a"}},{"ruleId":"D1","level":"warning","message":{"text":"Install.html.testDb (cyclomatic 16): Install.html.testDb 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 2 function literals inside it that branch (lines 1160, 1167). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: Install.html.renderEnv (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Install.html"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d9b000f72a4eade5ce5e64f1f31421cbd25563532a0f07c383d0bc82865627c"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.sanitizeTree (cyclomatic 16): fallback.sanitizeTree 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 2 function literals inside it that branch (lines 234, 233). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: fallback.alignReferenceCards (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e67bb8ab24190bdee5eee05d0754723b0c83112edbeb98a6f6eb97211c8a1e7"}},{"ruleId":"D1","level":"warning","message":{"text":"fallback.inlineInputEditor (cyclomatic 16): fallback.inlineInputEditor has cyclomatic complexity 16 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: fallback.alignReferenceCards (cyclomatic 19) is higher and carries no row of its own \u2014 it was excluded as a flat dispatcher (a long switch/match over independent cases: many branches, almost no nesting), which this dimension does not treat as a refactor obligation. It is named here so the ranking you see in this file is not mistaken for the whole of it; the excluded method is counted neither in this dimension\u0027s figures nor in its score."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1196}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be2cdc52c13f798ca512f9ae5aca01fb1fbed3e8ca3afc9937d505cb5426d48"}},{"ruleId":"D1","level":"warning","message":{"text":"navigation.handleClick (cyclomatic 16): navigation.handleClick has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/navigation.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"5369984bc432d954c0e95918e083a27f600c2d29f17ee4eec4105d7a0ff102d9"}},{"ruleId":"D1","level":"warning","message":{"text":"overlay.finalize (cyclomatic 16): overlay.finalize 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, 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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"17fc61fee6905178ae1798cb72bb89c19df3ee65445c9c6d0578bfdc1996b9d0"}},{"ruleId":"D1","level":"warning","message":{"text":"overlay.firstInvalidField (cyclomatic 16): overlay.firstInvalidField has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"58b5db70a2a4567c7a71f8835459f97929af70578537f377bfdd444fb0ee273f"}},{"ruleId":"D1","level":"warning","message":{"text":"overlay.handleKey (cyclomatic 16): overlay.handleKey has cyclomatic complexity 16 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1307}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f130a8a46d639e5306c43b6e115f2800d8f22d80785fd8e668af5d32e06dd75"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.cloneLabel (cyclomatic 16): workflows.cloneLabel has cyclomatic complexity 16 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"52048d1564047486d58154fb42f0d8ff4aa95b9df40cf7e4a0a85f752adae279"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.addPageFormGuard (cyclomatic 16): workflows.addPageFormGuard has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 507, 530, 516, \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":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"58805a7c4d278d03e828c11eb6106494f198cd106135a031e0a458d2e0081435"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.updateLineGutter (cyclomatic 16): codemirror.updateLineGutter has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"f983f1cf67fd1c9ce9c7cf0334496ffbe5afd80585d46c20d48b94ff67979ca1"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.patchDisplay (cyclomatic 16): codemirror.patchDisplay has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4225}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93b16cee7ae987d54643b56cc2c21599e577e305b539e4131eaeaa44e1751b1"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.addChangeToHistory (cyclomatic 16): codemirror.addChangeToHistory has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4896}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4652333ec5253e4b59e8b5400a38d533c20cb8b7366b08fa90c9359e68ced75"}},{"ruleId":"D1","level":"warning","message":{"text":"codemirror.makeChangeSingleDocInEditor (cyclomatic 16): codemirror.makeChangeSingleDocInEditor has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5469}}}],"partialFingerprints":{"codehealthFindingId/v1":"015d6d8e8a5600059e102034f798ea4650c048e951f7e6b8b3986e85563a0a28"}},{"ruleId":"D1","level":"warning","message":{"text":"foldcode.doFold (cyclomatic 16): foldcode.doFold has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/foldcode.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e5280cb7b203813c2b0d8589753d8cd6770a2413ce3382955c5d7d66bb3438"}},{"ruleId":"D1","level":"warning","message":{"text":"foldgutter.updateFoldInfo (cyclomatic 16): foldgutter.updateFoldInfo has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 80). 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":"assets/static/codemirror/addon/fold/foldgutter.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf658cc185302ffea727b0e67c1548cebee164d774e5dce1e8c8a125333a1b9"}},{"ruleId":"D1","level":"warning","message":{"text":"xml.CodeMirror.defineMode(\u0022xml\u0022).inText (cyclomatic 16): xml.CodeMirror.defineMode(\u0022xml\u0022).inText has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/xml/xml.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9820cccf7308257cb8f77cfee9e20fc185b730f232abc870c6ac4e635d49e5bf"}},{"ruleId":"D1","level":"warning","message":{"text":"App.plugins (cyclomatic 16): App.plugins has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/App.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8c0b657c4e80caa6766e1209eea5009bdb427f193af1f13ced3f2e043651b7d"}},{"ruleId":"D1","level":"warning","message":{"text":"Commodity.reorder (cyclomatic 16): Commodity.reorder has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e68459c76eed84287029c7198b54752fdb870052b8c893e089b2474556806d2"}},{"ruleId":"D1","level":"warning","message":{"text":"Plugin.wikiRes (cyclomatic 16): Plugin.wikiRes has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Plugin.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffc656de735b26a23d119c3082ceb1660a10451633020f85df1385b082cb88a"}},{"ruleId":"D1","level":"warning","message":{"text":"Authentication.password (cyclomatic 16): Authentication.password has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"586745c5ecf42e0a62c1d182db0b795cabc76939fe184561c6c03bba452eb342"}},{"ruleId":"D1","level":"warning","message":{"text":"Currency.convertIniMoney (cyclomatic 16): Currency.convertIniMoney has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Currency.php"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"0710bdf39d27ec1dde265d1966cf6568509ce84c18fcc1af6349c97d950e20b4"}},{"ruleId":"D1","level":"warning","message":{"text":"Message.sendEmailBatch (cyclomatic 16): Message.sendEmailBatch has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"216c95e7f0ae142b253600a2e060f305a835899bf09da633d53b0cb43296e103"}},{"ruleId":"D1","level":"warning","message":{"text":"Ticket.visibleCommodityQuery (cyclomatic 16): Ticket.visibleCommodityQuery has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b0680424c9fbb09e3b9d63872f00c7419a8f1303f8a2a13a66c534c790fbaa8"}},{"ruleId":"D1","level":"warning","message":{"text":"Helper.isInstall (cyclomatic 16): Helper.isInstall has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Helper.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e68b769cac0071eb912afeec4115432856b56811dc556a100ffb24a0cee254"}},{"ruleId":"D1","level":"warning","message":{"text":"Plugin.hook (cyclomatic 16): Plugin.hook has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Plugin.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"23c274706089948a5e2149a0d6aa1e49e0b05a1f6ac5338a538137bf5af02b2c"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::appendNodes (cyclomatic 16): (anonymous)::(anonymous)::appendNodes has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e695c988b4b654de6251029e0739eafbaaa888154735565f1f3de546802a43d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::(anonymous)::setParentNodeCheckBox (cyclomatic 16): (anonymous)::(anonymous)::setParentNodeCheckBox has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2512}}}],"partialFingerprints":{"codehealthFindingId/v1":"58483c7f3810936db89fb9aa3db9bf521c89e867c02a43c578c53df95c317b09"}},{"ruleId":"D1","level":"warning","message":{"text":"registerUserPicker (cyclomatic 16): registerUserPicker has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 5 function items inside it that branch (remoteMethod::error, remoteMethod::done, remoteMethod::fail, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/message.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"582b04492b7c210be80898920560a7799e9a1b228a8fa314adc59b13ca51c08f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 8 function items inside it that branch (a function literal at line 1359, submitMobileBatchSettings, a function literal at line 1343, \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":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":1331}}}],"partialFingerprints":{"codehealthFindingId/v1":"754fc1d01623dd6265befd420a75f8e8cf1bccce06c6f6185929889af0c5a8d6"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).openEditor (cyclomatic 16): (anonymous).openEditor 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 6 function items inside it that branch (a function literal at line 159, done, complete, \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":"assets/admin/controller/trade/category-actions.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1ec551b1f3e07aba6dc7c4171aab5870596203bbb3a9972125515e0903695b"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous).inText (cyclomatic 16): (anonymous).inText has cyclomatic complexity 16 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/xml/xml.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"e053010eb79d4339987c8c71c662b8d97a04a263e3b6374cfd0c17ebaacf499f"}},{"ruleId":"D2","level":"warning","message":{"text":"tree.select.layui.define() (cognitive 1209): tree.select.layui.define() has cognitive complexity 1209 (threshold 15). Drivers by points: if/else 465 (709 pts), boolean chains 252, ternaries 58 (124 pts), loops 67 (114 pts), match/switch 6 (9 pts), error handling 1 (nesting depth added 360). Most of this is not in the body itself: 3 of the 1209 points are its own statements and the rest belongs to 190 function literals inside it that branch (lines 2921, 3551, 2369, \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":"assets/common/js/component/tree.select.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff020f18adcb0e23e3638841b5e8d29d3a65b1ec31ce338582df56d7214bc0e"}},{"ruleId":"D2","level":"warning","message":{"text":"commodity (cognitive 303): commodity has cognitive complexity 303 (threshold 15). Drivers by points: if/else 75 (197 pts), loops 10 (54 pts), ternaries 6 (34 pts), boolean chains 18 (nesting depth added 194). Most of this is not in the body itself: 0 of the 303 points are its own statements and the rest belongs to 14 function items inside it that branch (a function literal at line 505, a function literal at line 763, (anonymous)::categoryWholesale, \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":"assets/static/acg.js"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"8716e42ee8096e6c30992aa5c78c1592e7cb27b6a03f0739f96dd964e2262a39"}},{"ruleId":"D2","level":"warning","message":{"text":"hex.layui.define() (cognitive 235): hex.layui.define() has cognitive complexity 235 (threshold 15). Drivers by points: if/else 84 (142 pts), boolean chains 55, ternaries 14 (25 pts), loops 3 (5 pts), match/switch 5, error handling 1 (3 pts) (nesting depth added 73). Of this number, 33 points are the body\u0027s own statements and 202 belong to 32 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":"assets/static/modules/hex.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2768400b6f03e36ce761eeda93def4d1273f8b44d22b9f344d9777b961236d16"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::onMousedownNode::_docMouseMove (cognitive 229): (anonymous)::(anonymous)::onMousedownNode::_docMouseMove has cognitive complexity 229 (threshold 15). Drivers by points: if/else 46 (118 pts), boolean chains 54, ternaries 11 (42 pts), loops 6 (15 pts) (nesting depth added 112). 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":"assets/common/js/component/tree.select.js"},"region":{"startLine":2968}}}],"partialFingerprints":{"codehealthFindingId/v1":"4880b6a7fb8a0b5e4e6deeb04ae9bf2a21bb948ac2d4a4315af39458e69d8248"}},{"ruleId":"D2","level":"warning","message":{"text":"Order.trade (cognitive 194): Order.trade has cognitive complexity 194 (threshold 15). Drivers by points: if/else 88 (141 pts), boolean chains 33, ternaries 7 (12 pts), loops 2 (4 pts), match/switch 1 (4 pts) (nesting depth added 63). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04ef5af761490312ff7f41421bfecc20aeaefe608f6c36497c1f782a13c5350"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 177): render has cognitive complexity 177 (threshold 15). Drivers by points: boolean chains 90, if/else 48 (59 pts), ternaries 20 (24 pts), error handling 1 (2 pts), loops 1 (2 pts) (nesting depth added 17). Of this number, 50 points are the body\u0027s own statements and 127 belong to 31 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2784}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcc01801fb01bec92b601734da4e5ec6a3b3939960146e5938ff4d8e0bc480c"}},{"ruleId":"D2","level":"warning","message":{"text":"python.CodeMirror.defineMode(\u0022python\u0022) (cognitive 168): python.CodeMirror.defineMode(\u0022python\u0022) has cognitive complexity 168 (threshold 15). Drivers by points: if/else 82 (119 pts), boolean chains 31, ternaries 6 (10 pts), loops 8 (nesting depth added 41). Of this number, 143 points are the body\u0027s own statements and 25 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":"assets/static/codemirror/mode/python/python.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bd193d1211e2cc24948e5ffd680a325f38d22137eb8c48960517a6b36ec032"}},{"ruleId":"D2","level":"warning","message":{"text":"insertLineContent (cognitive 147): insertLineContent has cognitive complexity 147 (threshold 15). Drivers by points: if/else 23 (84 pts), ternaries 5 (25 pts), loops 7 (22 pts), boolean chains 16 (nesting depth added 96). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac197628f8f3f8a8bbb93d35a5bff257f7b355873612ea43bbcf8e5345a8b207"}},{"ruleId":"D2","level":"warning","message":{"text":"KTMenu (cognitive 142): KTMenu has cognitive complexity 142 (threshold 15). Drivers by points: if/else 90 (106 pts), boolean chains 19, loops 7 (11 pts), ternaries 6 (nesting depth added 20). Most of this is not in the body itself: 2 of the 142 points are its own statements and the rest belongs to 67 function items inside it that branch (_dismiss, _isItemSubShown, _showDropdown, \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":"assets/admin/js/menu.js"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"536ed652155c6bb89f52bfe92a6387a6a224d474fa71e2b4a054f2ac8cec5eae"}},{"ruleId":"D2","level":"warning","message":{"text":"popup (cognitive 132): popup has cognitive complexity 132 (threshold 15). Drivers by points: if/else 44 (65 pts), boolean chains 20, ternaries 13 (17 pts), error handling 6 (11 pts), loops 3 (10 pts), other 9 (nesting depth added 37). Of this number, 47 points are the body\u0027s own statements and 85 belong to 19 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"726ee4c7ba04e1b0eede5ff0a8d10f2e056e4b6a2a54f0e78c5a12a461e711c9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 124): (anonymous) has cognitive complexity 124 (threshold 15). Drivers by points: if/else 29 (49 pts), loops 16 (34 pts), boolean chains 21, ternaries 8 (20 pts) (nesting depth added 50). Most of this is not in the body itself: 0 of the 124 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 393, charType, BidiSpan). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa1f3e2f56d680a2177079189fb963029a659485f56639203a9d70ad4745fb9"}},{"ruleId":"D2","level":"warning","message":{"text":"#getPreprocessColumn (cognitive 121): #getPreprocessColumn has cognitive complexity 121 (threshold 15). Drivers by points: if/else 31 (77 pts), ternaries 10 (20 pts), boolean chains 17, other 6, match/switch 1 (nesting depth added 56). Most of this is not in the body itself: 12 of the 121 points are its own statements and the rest belongs to 17 function items inside it that branch (formatter, a function literal at line 1451, formatter, \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":"assets/common/js/component/table.js"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be142f41366d829e27337c767df477d9c7b504798cea04113fc30c0a717b06b"}},{"ruleId":"D2","level":"warning","message":{"text":"Order.valuation (cognitive 119): Order.valuation has cognitive complexity 119 (threshold 15). Drivers by points: if/else 37 (75 pts), boolean chains 19, loops 5 (14 pts), ternaries 5 (11 pts) (nesting depth added 53). 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":"app/Service/Bind/Order.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"839572d0a1604fcc3e35a77f74c212d74c6d0600060266ffffae86ad765f8d8e"}},{"ruleId":"D2","level":"warning","message":{"text":"authtree.layui.define() (cognitive 113): authtree.layui.define() has cognitive complexity 113 (threshold 15). Drivers by points: if/else 50 (70 pts), boolean chains 18, ternaries 14, loops 11 (nesting depth added 20). Most of this is not in the body itself: 0 of the 113 points are its own statements and the rest belongs to 30 function literals inside it that branch (lines 45, 409, 346, \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":"assets/common/js/component/authtree.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"30416037c55eb07609dd1356752514c3044e248baa0bee03700e8ac8a9ff5f82"}},{"ruleId":"D2","level":"warning","message":{"text":"skipAtomicInner (cognitive 105): skipAtomicInner has cognitive complexity 105 (threshold 15). Drivers by points: ternaries 12 (55 pts), if/else 11 (42 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 75). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5202}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c0fdb1b5429fb14da52b4e62e98b063fa6573142c7bcb81ed81a2b46f14614e"}},{"ruleId":"D2","level":"warning","message":{"text":"authtree.layui.define() (cognitive 104): authtree.layui.define() has cognitive complexity 104 (threshold 15). Drivers by points: if/else 46 (65 pts), boolean chains 15, ternaries 13, loops 11 (nesting depth added 19). Most of this is not in the body itself: 0 of the 104 points are its own statements and the rest belongs to 26 function literals inside it that branch (lines 45, 407, 344, \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":"assets/static/modules/authtree.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"891aff97a98aa2a2991118e5f3c0e3211f0235f23255780fcfefaa3a38c54731"}},{"ruleId":"D2","level":"warning","message":{"text":"CommodityGroupModal (cognitive 103): CommodityGroupModal has cognitive complexity 103 (threshold 15). Drivers by points: if/else 23 (54 pts), ternaries 7 (21 pts), boolean chains 20, loops 2 (6 pts), other 2 (nesting depth added 49). Most of this is not in the body itself: 0 of the 103 points are its own statements and the rest belongs to 22 function items inside it that branch (complete, a function literal at line 264, a function literal at line 334, \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":"assets/admin/controller/user/group.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"40ef8f5dd4dffb8b356a937d157b2c4d9904e3db64329f282132ee1e848a3728"}},{"ruleId":"D2","level":"warning","message":{"text":"register (cognitive 88): register has cognitive complexity 88 (threshold 15). Drivers by points: if/else 33 (41 pts), boolean chains 25, ternaries 13 (17 pts), error handling 3, other 2 (nesting depth added 12). Of this number, 31 points are the body\u0027s own statements and 57 belong to 41 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"2114aa9b7c6b3516e8947a0a4296d1fd440bbee59d0ef0e405fa248c91d8c649"}},{"ruleId":"D2","level":"warning","message":{"text":"Commodity.save (cognitive 85): Commodity.save has cognitive complexity 85 (threshold 15). Drivers by points: if/else 33 (45 pts), boolean chains 30, ternaries 7 (8 pts), loops 2 (nesting depth added 13). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Commodity.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a842d750fddb388c3b115d24ceb9868588186072fa03cd65033fdbb0e8690a05"}},{"ruleId":"D2","level":"warning","message":{"text":"drawSelectionRange (cognitive 81): drawSelectionRange has cognitive complexity 81 (threshold 15). Drivers by points: ternaries 23 (47 pts), if/else 16 (22 pts), boolean chains 12 (nesting depth added 30). Most of this is not in the body itself: 14 of the 81 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 3232, drawForLine::wrapX, add, \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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee98d3c71cad107d40579a5106c197f34acbc0019bad474d0ed263c5fab882ce"}},{"ruleId":"D2","level":"warning","message":{"text":"_ThemeSetting (cognitive 80): _ThemeSetting has cognitive complexity 80 (threshold 15). Drivers by points: if/else 41 (46 pts), boolean chains 24, other 4, ternaries 4, error handling 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 2 of the 80 points are its own statements and the rest belongs to 34 function items inside it that branch (modal, runThemeAct, a function literal at line 266, \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":"assets/admin/controller/config/index.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e9990e3be5c0d8e40b74e2f61448e85174a47b7c3645932c75f2a2ea85643b"}},{"ruleId":"D2","level":"warning","message":{"text":"Commodity.save (cognitive 78): Commodity.save has cognitive complexity 78 (threshold 15). Drivers by points: if/else 35 (52 pts), boolean chains 18, ternaries 5 (6 pts), loops 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e3f6e8c8734156121c942df468f1faa52909a5f4e89ed5f399b8f9d7a5101d"}},{"ruleId":"D2","level":"warning","message":{"text":"mountRemoteProductPicker (cognitive 78): mountRemoteProductPicker has cognitive complexity 78 (threshold 15). Drivers by points: if/else 32 (34 pts), ternaries 20 (27 pts), boolean chains 16, loops 1 (nesting depth added 9). Most of this is not in the body itself: 2 of the 78 points are its own statements and the rest belongs to 36 function items inside it that branch (updateSelection, updateExpandButton, onClick, \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":"assets/admin/controller/shared/store.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd857cac3859774bfa2354fe46d8c4431957aa48332580ff599740f7bae2d6ba"}},{"ruleId":"D2","level":"warning","message":{"text":"menu.KTScroll (cognitive 77): menu.KTScroll has cognitive complexity 77 (threshold 15). Drivers by points: if/else 37 (62 pts), boolean chains 9, loops 2 (6 pts) (nesting depth added 29). Most of this is not in the body itself: 1 of the 77 points is its own statement and the rest belongs to 9 function literals inside it that branch (lines 2896, 2978, 2840, \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":"assets/admin/js/menu.js"},"region":{"startLine":2782}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c133ea1e5cd99f12acf72446daebc64f8f9ec58f4a52245edda2d6b3f091fcf"}},{"ruleId":"D2","level":"warning","message":{"text":"Order.getTradeAmount (cognitive 77): Order.getTradeAmount has cognitive complexity 77 (threshold 15). Drivers by points: if/else 29 (53 pts), boolean chains 17, loops 2 (5 pts), ternaries 1 (2 pts) (nesting depth added 28). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":1283}}}],"partialFingerprints":{"codehealthFindingId/v1":"3020518980c308b6eff94e63cd501fb15016f69d25fdab9dc60a59352eacad07"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::moveNode (cognitive 75): (anonymous)::(anonymous)::moveNode has cognitive complexity 75 (threshold 15). Drivers by points: if/else 41 (55 pts), boolean chains 14, loops 2 (4 pts), ternaries 2 (nesting depth added 16). 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":"assets/common/js/component/tree.select.js"},"region":{"startLine":3551}}}],"partialFingerprints":{"codehealthFindingId/v1":"4246890e507bc209c0f4650f7507983b275d6f4a1d414ee8eac74dd7fb51788c"}},{"ruleId":"D2","level":"warning","message":{"text":"coupon.createCoupon (cognitive 71): coupon.createCoupon has cognitive complexity 71 (threshold 15). Drivers by points: if/else 19 (34 pts), boolean chains 16, ternaries 5 (11 pts), loops 3 (10 pts) (nesting depth added 28). Most of this is not in the body itself: 3 of the 71 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 209, 314, 250, \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":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d9d01c3afc7769cda39e3e25597e14561d5dafcf92718336dc94e88ec66f656"}},{"ruleId":"D2","level":"warning","message":{"text":"Email.sendRecipients (cognitive 70): Email.sendRecipients has cognitive complexity 70 (threshold 15). Drivers by points: if/else 10 (33 pts), ternaries 4 (14 pts), loops 5 (11 pts), error handling 3 (9 pts), boolean chains 3 (nesting depth added 45). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Email.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"b663d01704ac4aaeed215e5ee96ed58655a898e9734eba72e53508a3a8dbe3f3"}},{"ruleId":"D2","level":"warning","message":{"text":"Pay.paymentSaveMap (cognitive 69): Pay.paymentSaveMap has cognitive complexity 69 (threshold 15). Drivers by points: if/else 29 (43 pts), boolean chains 18, loops 3 (4 pts), ternaries 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Pay.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e6178858fd95c2edae298f2d9d5785e517b4b8ece0a6a0f81fcb646be8880b"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.findPosH (cognitive 68): codemirror.findPosH has cognitive complexity 68 (threshold 15). Drivers by points: if/else 20 (35 pts), ternaries 5 (16 pts), boolean chains 15, loops 1 (2 pts) (nesting depth added 27). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8708}}}],"partialFingerprints":{"codehealthFindingId/v1":"9858cebb0d2240e8e7414224ca20f6a79a2970c3bef9e8dacd15d18a25452574"}},{"ruleId":"D2","level":"warning","message":{"text":"done (cognitive 68): done has cognitive complexity 68 (threshold 15). Drivers by points: if/else 32 (36 pts), boolean chains 26, ternaries 4 (6 pts) (nesting depth added 6). Most of this is not in the body itself: 10 of the 68 points are its own statements and the rest belongs to 51 function items inside it that branch (a function literal at line 1203, done, formatter, \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":"assets/admin/controller/store/home.js"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bc3145eee95a4083ce258c0b97457ebdfb50cfbc7eb2a3d744b75b17dc66bf3"}},{"ruleId":"D2","level":"warning","message":{"text":"Manage.save (cognitive 67): Manage.save has cognitive complexity 67 (threshold 15). Drivers by points: boolean chains 31, if/else 23 (28 pts), ternaries 5 (6 pts), error handling 2 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Manage.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd4a3f70fde4ff9e7333294be35002f94adf11815d617442701c17bc5ba41b8c"}},{"ruleId":"D2","level":"warning","message":{"text":"BusinessLevel.validatedSaveMap (cognitive 64): BusinessLevel.validatedSaveMap has cognitive complexity 64 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 24, loops 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4e4e8da68dd2716b4521ce2d2575ff4c74967102758ff8275d8f1f596c6874"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.addItem (cognitive 64): Store.addItem has cognitive complexity 64 (threshold 15). Drivers by points: if/else 21 (35 pts), ternaries 7 (13 pts), boolean chains 10, error handling 1 (2 pts), loops 2, match/switch 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"e121000bcd174d978b83fff08d6907dd0c1d5c9c7eb4cb5f39e7b9a050eb3ddc"}},{"ruleId":"D2","level":"warning","message":{"text":"stretchSpansOverChange (cognitive 64): stretchSpansOverChange has cognitive complexity 64 (threshold 15). Drivers by points: if/else 18 (41 pts), loops 4 (9 pts), boolean chains 8, ternaries 2 (6 pts) (nesting depth added 32). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47f2d22a1cfa8103409a39854caa5429cfa0dd8e6a2501bacc34292980f55a8"}},{"ruleId":"D2","level":"warning","message":{"text":"#createOptions (cognitive 64): #createOptions has cognitive complexity 64 (threshold 15). Drivers by points: if/else 21 (37 pts), boolean chains 12, loops 4 (9 pts), ternaries 3 (5 pts), other 1 (nesting depth added 23). Most of this is not in the body itself: 1 of the 64 points is its own statement and the rest belongs to 20 function items inside it that branch (queryParams, a function literal at line 1724, a function literal at line 1689, \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":"assets/common/js/component/table.js"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d61b8ad302ba3c45e94515d9915b5044ca7baea1194ff00b13e19b3f8f67aa"}},{"ruleId":"D2","level":"warning","message":{"text":"renderToolbar (cognitive 62): renderToolbar has cognitive complexity 62 (threshold 15). Drivers by points: boolean chains 29, ternaries 12 (17 pts), if/else 15 (16 pts) (nesting depth added 6). Of this number, 31 points are the body\u0027s own statements and 31 belong to 14 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2193}}}],"partialFingerprints":{"codehealthFindingId/v1":"67cb9940c00d59256cc360aac31d6bf72652a2452d96396731d4d952080b6554"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::checkNodeRelation (cognitive 60): (anonymous)::(anonymous)::checkNodeRelation has cognitive complexity 60 (threshold 15). Drivers by points: if/else 14 (37 pts), loops 3 (11 pts), boolean chains 8, ternaries 1 (4 pts) (nesting depth added 34). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb810108ec0c244f9c7b853225a410f25af2f34ee88e7c552f1bd6e0efa3e6d3"}},{"ruleId":"D2","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).tokenBase (cognitive 57): javascript.CodeMirror.defineMode(\u0022javascript\u0022).tokenBase has cognitive complexity 57 (threshold 15). Drivers by points: if/else 27 (43 pts), boolean chains 14 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"32ee027170550cb665e8b0cfab150cce525bdc0580b0a498073325822236301e"}},{"ruleId":"D2","level":"warning","message":{"text":"Category.save (cognitive 57): Category.save has cognitive complexity 57 (threshold 15). Drivers by points: if/else 20 (34 pts), boolean chains 11, ternaries 6 (9 pts), loops 2 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20e3a4c02d7c5638af98ecddefc7f69dbff7aa98cfe5ce36d9ccc090a3801f1"}},{"ruleId":"D2","level":"warning","message":{"text":"User.save (cognitive 57): User.save has cognitive complexity 57 (threshold 15). Drivers by points: if/else 28 (37 pts), boolean chains 17, ternaries 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/User.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"4274bf9acec8ca23d61e41309adb6858a3758a72360b862f58c477dae2ea9f25"}},{"ruleId":"D2","level":"warning","message":{"text":"buildToken (cognitive 57): buildToken has cognitive complexity 57 (threshold 15). Drivers by points: if/else 18 (37 pts), ternaries 3 (8 pts), boolean chains 7, loops 2 (5 pts) (nesting depth added 27). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"d247bdd86c7468d0a427036ede870f508e1fd40ad2e1edb4e71bf3bc1fcbfc3f"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).tokenBase (cognitive 57): (anonymous).tokenBase has cognitive complexity 57 (threshold 15). Drivers by points: if/else 27 (43 pts), boolean chains 14 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8284d191d2995dfca4dc37c5094e6e21ea3fc449f3cf33ef0c36c683cc84a68"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.leftButtonSelect (cognitive 56): codemirror.leftButtonSelect has cognitive complexity 56 (threshold 15). Drivers by points: if/else 32 (45 pts), ternaries 2 (5 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 17). Of this number, 47 points are the body\u0027s own statements and 9 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7475}}}],"partialFingerprints":{"codehealthFindingId/v1":"950fcbc2d6f2d70601db36fd019a952f7523861f70cb3e0b6ceb079d0ebe37b4"}},{"ruleId":"D2","level":"warning","message":{"text":"Index.commodity (cognitive 56): Index.commodity has cognitive complexity 56 (threshold 15). Drivers by points: if/else 22 (38 pts), loops 4 (8 pts), boolean chains 5, error handling 2 (5 pts) (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Index.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1affdc30de421d40e666cf7491b4d25dcd17f763fd7d37647de17c7a9b22f3"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.putManyLocked (cognitive 54): Config.putManyLocked has cognitive complexity 54 (threshold 15). Drivers by points: if/else 13 (32 pts), error handling 4 (10 pts), loops 4 (7 pts), ternaries 2 (5 pts) (nesting depth added 31). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/Config.php"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f315d05f1132d2cc8a83f25338345d339a163514808e20098cdde8e6ed2fc9d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::makeChkFlag (cognitive 54): (anonymous)::(anonymous)::makeChkFlag has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (32 pts), ternaries 3 (15 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 27). 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":"assets/common/js/component/tree.select.js"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cdbcc784a0fe99f715950a20e7392fb272e711b60914af876656168dfff4d0d"}},{"ruleId":"D2","level":"warning","message":{"text":"Group.validatedSaveMap (cognitive 53): Group.validatedSaveMap has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 23, loops 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Group.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdde326f899f24767ff16a57b492c6152fc0604bf7fdcbae256270cd2089af9"}},{"ruleId":"D2","level":"warning","message":{"text":"PriceTemplate.applyToConfig (cognitive 51): PriceTemplate.applyToConfig has cognitive complexity 51 (threshold 15). Drivers by points: if/else 12 (26 pts), loops 8 (15 pts), boolean chains 6, error handling 2, ternaries 1 (2 pts) (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/PriceTemplate.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"3980d294a33293665fef772dfb71280c00d56e4a0d99dcfadde9e6f4f2f5eaba"}},{"ruleId":"D2","level":"warning","message":{"text":"openFilters (cognitive 51): openFilters has cognitive complexity 51 (threshold 15). Drivers by points: boolean chains 21, if/else 16 (19 pts), ternaries 7 (11 pts) (nesting depth added 7). Of this number, 24 points are the body\u0027s own statements and 27 belong to 6 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2055}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1ae8d4f945ed8d349b714e1886ece55b08f1aae4c2966ae3c662312a7e2b6fb"}},{"ruleId":"D2","level":"warning","message":{"text":"Coupon.couponExportQuery (cognitive 50): Coupon.couponExportQuery has cognitive complexity 50 (threshold 15). Drivers by points: if/else 17 (34 pts), boolean chains 12, loops 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"7887bc708609ff66847cb4f588fd9ef79e6b0664e1ce64bcebf8c13fd1970d22"}},{"ruleId":"D2","level":"warning","message":{"text":"overlay.setupSheetDrag (cognitive 49): overlay.setupSheetDrag has cognitive complexity 49 (threshold 15). Drivers by points: if/else 23 (24 pts), boolean chains 19, ternaries 4, error handling 2 (nesting depth added 1). Of this number, 45 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"9adb906c2a7b1316b678e60357d77edd141950796ea5b7021649ca38763deace"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.get (cognitive 49): Query.get has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (27 pts), loops 9 (16 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Query.php"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"1597b40992e569e2378e731553af97e161871ab48047d55fe48bf5b5b23294d5"}},{"ruleId":"D2","level":"warning","message":{"text":"measureCharInner (cognitive 49): measureCharInner has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 10, loops 4 (9 pts), ternaries 4 (6 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8042cb5d7c60ac8f52ecd19d683e573181c65fe53e9d5f061a1b4d16998591d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach.openMenu (cognitive 48): (anonymous).attach.openMenu has cognitive complexity 48 (threshold 15). Drivers by points: ternaries 13 (19 pts), boolean chains 16, if/else 12 (13 pts) (nesting depth added 7). Of this number, 25 points are the body\u0027s own statements and 23 belong to 12 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"8824bfcb50d7263570aeb02a77a63724afbb64648e410485340cc67e04e40d70"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.markText (cognitive 47): codemirror.markText has cognitive complexity 47 (threshold 15). Drivers by points: if/else 23 (31 pts), boolean chains 11, loops 1 (3 pts), ternaries 2 (nesting depth added 10). Of this number, 38 points are the body\u0027s own statements and 9 belong to 2 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5968}}}],"partialFingerprints":{"codehealthFindingId/v1":"87104ab39d29e787ac937513edcd025b8c0befb84af27d2dd0a1e51a07bc7e7b"}},{"ruleId":"D2","level":"warning","message":{"text":"Shared.AdjustmentPrice (cognitive 47): Shared.AdjustmentPrice has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 6 (18 pts), loops 6 (14 pts), if/else 7 (10 pts), boolean chains 5 (nesting depth added 23). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd29233bc4860eb1b566665a57cfbf37883b5f5c9348109b6a86232ed852180"}},{"ruleId":"D2","level":"warning","message":{"text":"moveVisually (cognitive 47): moveVisually has cognitive complexity 47 (threshold 15). Drivers by points: ternaries 11 (20 pts), if/else 12 (16 pts), boolean chains 10, loops 1 (nesting depth added 13). Of this number, 31 points are the body\u0027s own statements and 16 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":6912}}}],"partialFingerprints":{"codehealthFindingId/v1":"410c95bc455a95a9e3ab2a4bf36b371755dbd1eac467f2b2a36e51f8faf578b8"}},{"ruleId":"D2","level":"warning","message":{"text":"CommodityGroup.mobileCommodityTree (cognitive 46): CommodityGroup.mobileCommodityTree has cognitive complexity 46 (threshold 15). Drivers by points: if/else 14 (24 pts), loops 14 (16 pts), boolean chains 6 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/CommodityGroup.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99363ad2ba34ea7517b72d19584609462e35026f61137d8dc6e990b9f162117"}},{"ruleId":"D2","level":"warning","message":{"text":"Currency.convertCommodityConfigs (cognitive 46): Currency.convertCommodityConfigs has cognitive complexity 46 (threshold 15). Drivers by points: if/else 10 (37 pts), loops 2 (5 pts), boolean chains 4 (nesting depth added 30). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Currency.php"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b5649db9093971f68b420983ed1ae97fe47e639e8125e82df28f2fdc9686fd"}},{"ruleId":"D2","level":"warning","message":{"text":"renderTreeContext (cognitive 46): renderTreeContext has cognitive complexity 46 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 8 (15 pts), boolean chains 14 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2628}}}],"partialFingerprints":{"codehealthFindingId/v1":"1738d28598584094a83d99902eac61187b707574745decfef0ef1cddf08e0494"}},{"ruleId":"D2","level":"warning","message":{"text":"_Auth (cognitive 46): _Auth has cognitive complexity 46 (threshold 15). Drivers by points: if/else 27 (28 pts), boolean chains 15, error handling 1, other 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 3 of the 46 points are its own statements and the rest belongs to 25 function items inside it that branch (complete::_register_captcha::done, a function literal at line 683, complete, \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":"assets/admin/controller/store/home.js"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"12fa0e8629017cc994be0de42414077ab86a9118eb81d67ad143702995f268b1"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).statement (cognitive 46): (anonymous).statement has cognitive complexity 46 (threshold 15). Drivers by points: if/else 29 (33 pts), boolean chains 9, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"353722519a6f6b9e0be35d91767f1c79098f2232a6b7e3dd976f5f783f31e45b"}},{"ruleId":"D2","level":"warning","message":{"text":"Util.redactDebugValue (cognitive 45): Util.redactDebugValue has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (19 pts), boolean chains 16, ternaries 6 (9 pts), error handling 1 (nesting depth added 4). Most of this is not in the body itself: 1 of the 45 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 158, 123, 210, \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":"assets/common/js/util.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"068abed661eea52ef17f9dce6ad9f2d02b2ed353ea75e70940e4b61777d2c362"}},{"ruleId":"D2","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).statement (cognitive 45): javascript.CodeMirror.defineMode(\u0022javascript\u0022).statement has cognitive complexity 45 (threshold 15). Drivers by points: if/else 29 (33 pts), boolean chains 8, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"6522e4c4b7466234f89f73a884106eb0d459d6271475eec772bcd870e502d6c2"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.onScrollWheel (cognitive 44): codemirror.onScrollWheel has cognitive complexity 44 (threshold 15). Drivers by points: if/else 15 (26 pts), boolean chains 13, loops 2 (5 pts) (nesting depth added 14). Of this number, 35 points are the body\u0027s own statements and 9 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4509}}}],"partialFingerprints":{"codehealthFindingId/v1":"15659f7c75ec2cad4079d5eda881d01025c53d5ef7dd53f61fd017fd827434a0"}},{"ruleId":"D2","level":"warning","message":{"text":"modal (cognitive 44): modal has cognitive complexity 44 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 13, other 6, ternaries 6, error handling 2 (nesting depth added 1). Most of this is not in the body itself: 8 of the 44 points are its own statements and the rest belongs to 22 function items inside it that branch (complete::(anonymous)::change, a function literal at line 523, applySharedPremiumMode, \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":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"a24345a0270beb2434b5e1e7df3a170470736682e2bb08f20afaaacb2ea2d8ed"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.locateNodeInLineView (cognitive 43): codemirror.locateNodeInLineView has cognitive complexity 43 (threshold 15). Drivers by points: if/else 12 (21 pts), ternaries 5 (12 pts), loops 5 (6 pts), boolean chains 4 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9280}}}],"partialFingerprints":{"codehealthFindingId/v1":"934bb12d710e36ecae6a50cb9957fb71819e791a46e48804e43b967e7d8c854f"}},{"ruleId":"D2","level":"warning","message":{"text":"click (cognitive 43): click has cognitive complexity 43 (threshold 15). Drivers by points: if/else 22, boolean chains 17, other 2, ternaries 2. Most of this is not in the body itself: 1 of the 43 points is its own statement and the rest belongs to 17 function items inside it that branch (a function literal at line 1445, a function literal at line 1478, a function literal at line 1507, \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":"assets/admin/controller/shared/store.js"},"region":{"startLine":1437}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a60062d1a0dfee70cdc456f735fe9ef7fdbfc4e494182caf75e59164aabe6fa"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::tokenBaseInner (cognitive 43): (anonymous)::tokenBaseInner has cognitive complexity 43 (threshold 15). Drivers by points: if/else 24 (37 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/python/python.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a2425940bce6f57a4c490ee9095de201959ec05205e7f072dbc66802d21c0c"}},{"ruleId":"D2","level":"warning","message":{"text":"brace-fold.CodeMirror.registerHelper(\u0022fold\u0022,\u0022brace\u0022) (cognitive 42): brace-fold.CodeMirror.registerHelper(\u0022fold\u0022,\u0022brace\u0022) has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 4, loops 3 (4 pts), ternaries 2 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/brace-fold.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"a27c1f4cdaa1d9e3a294333ca8e05fb69bef23f013fff393ba832925743f5315"}},{"ruleId":"D2","level":"warning","message":{"text":"runImportTask (cognitive 42): runImportTask has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (23 pts), ternaries 6 (12 pts), boolean chains 5, error handling 1, loops 1 (nesting depth added 16). Most of this is not in the body itself: 4 of the 42 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1046, 1115, 1127, \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":"assets/admin/controller/shared/store.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"c508ad170aded67beec17422fe5d2884b99c7dfcd8ffc3227f54b77ebe5812c9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).indent (cognitive 42): (anonymous).indent has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 14, ternaries 5 (10 pts), loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f46fab20923116d1f1fb330782f97f6218225c9e58c328df2a6706a2cac4ac8"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 42): (anonymous) has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (30 pts), boolean chains 4, loops 3 (4 pts), ternaries 2 (4 pts) (nesting depth added 19). Of this number, 29 points are the body\u0027s own statements and 13 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/brace-fold.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3be8da15a6e5ddd8f1db6e446fa070f21526f5a7f7daa16cb8cdd70d816732"}},{"ruleId":"D2","level":"warning","message":{"text":"Order.orderExportQuery (cognitive 41): Order.orderExportQuery has cognitive complexity 41 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 11, loops 5, ternaries 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a927e43b63630d094724587f08251d564cde87d34dd771c84c57570bb5d79b"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.remoteWidget (cognitive 41): Store.remoteWidget has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (25 pts), boolean chains 7, ternaries 3 (6 pts), loops 2 (3 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"b839adbdb21b762aef8c506fdfeede312b39c533582cc0c20d8f3cbc7ff3a7b9"}},{"ruleId":"D2","level":"warning","message":{"text":"KTScroll::_getAutoHeight (cognitive 41): KTScroll::_getAutoHeight has cognitive complexity 41 (threshold 15). Drivers by points: if/else 13 (33 pts), loops 2 (6 pts), boolean chains 2 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/menu.js"},"region":{"startLine":2896}}}],"partialFingerprints":{"codehealthFindingId/v1":"4750cb6c18ab04d31dd5cf1dd4627e968e21b201eaa2b628d89235f5bad6ad47"}},{"ruleId":"D2","level":"warning","message":{"text":"api.confirmPayDelete (cognitive 40): api.confirmPayDelete has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 27, if/else 8, ternaries 4 (5 pts) (nesting depth added 1). Most of this is not in the body itself: 2 of the 40 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 105, 116, 164, \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":"assets/admin/controller/pay/api.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d6c4518bb0ca3ed83cd4c3a7a2147cafd561ddc7446145cc3243de5621f68aa"}},{"ruleId":"D2","level":"warning","message":{"text":"xml.CodeMirror.defineMode(\u0022xml\u0022).indent (cognitive 40): xml.CodeMirror.defineMode(\u0022xml\u0022).indent has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 9, loops 3 (5 pts), ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/xml/xml.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eba79c6f24e81332fca30a88fb2c353bd6360b44f52d6d3dcf609ce1057a772"}},{"ruleId":"D2","level":"warning","message":{"text":"Commodity.commodityDeleteImpact (cognitive 40): Commodity.commodityDeleteImpact has cognitive complexity 40 (threshold 15). Drivers by points: if/else 10 (23 pts), loops 4 (9 pts), ternaries 3 (6 pts), boolean chains 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"37eaeb9920f77aa46f5369def7f19c5e96ead3905c496b63f2f5dd521a38829e"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 40): (anonymous) has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 20, if/else 11 (12 pts), loops 4, ternaries 4 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"497ea62beb6c8d0559c3f05a2ac64691d1c12f5c7ebf4e9d8941accc56534871"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).indent (cognitive 40): (anonymous).indent has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 9, loops 3 (5 pts), ternaries 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/xml/xml.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aec8809684f8b1ac8aa04d18589f06b62559ffdea0d684c1d30f6e522d844e9"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.renderPageActions (cognitive 39): workflows.renderPageActions has cognitive complexity 39 (threshold 15). Drivers by points: boolean chains 26, if/else 10 (12 pts), ternaries 1 (nesting depth added 2). Of this number, 22 points are the body\u0027s own statements and 17 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e78616b3c64467fa38d59a724f4b29d366de869315f1f5661a105fc312f39f"}},{"ruleId":"D2","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).findFatArrow (cognitive 39): javascript.CodeMirror.defineMode(\u0022javascript\u0022).findFatArrow has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5343675dad3fe8207698a071fad9e5ea05d7fe7757ea3e5074b6cafd16ab55"}},{"ruleId":"D2","level":"warning","message":{"text":"Order.calcAmount (cognitive 39): Order.calcAmount has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (23 pts), boolean chains 8, loops 3 (7 pts), ternaries 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"666e71c85915934e63da1d775ea47b73351b01f82631e5d442d09b9b31673454"}},{"ruleId":"D2","level":"warning","message":{"text":"clear (cognitive 39): clear has cognitive complexity 39 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 9, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5858}}}],"partialFingerprints":{"codehealthFindingId/v1":"93ab9e697b52a850cd39058cddf7abad57add3543cd84ac74e65f42406a4ba98"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).findFatArrow (cognitive 39): (anonymous).findFatArrow has cognitive complexity 39 (threshold 15). Drivers by points: if/else 15 (30 pts), boolean chains 5, loops 2 (4 pts) (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"e88fa2df37531dea1215dd9a7020690bfe6a13c1294f168c28c768970c334019"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 39): (anonymous) has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 7, loops 3 (4 pts), ternaries 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/comment-fold.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db51837c85dac4971bd61ee165fe35ec21e206e7ffcf117b95c225710487247"}},{"ruleId":"D2","level":"warning","message":{"text":"comment-fold.CodeMirror.registerGlobalHelper(\u0022fold\u0022,\u0022comment\u0022) (cognitive 38): comment-fold.CodeMirror.registerGlobalHelper(\u0022fold\u0022,\u0022comment\u0022) has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 6, loops 3 (4 pts), ternaries 2 (4 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/comment-fold.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa107739a8467eba283f3a0f4692015a4237adabe436163fcabeb11d6a7491a"}},{"ruleId":"D2","level":"warning","message":{"text":"User.theme (cognitive 38): User.theme has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 4, ternaries 2 (4 pts), error handling 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Base/View/User.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"2831a147a6c124c57d7a2b7a22404d1677bc9c75b3afb9288f16ab23ebc6abd0"}},{"ruleId":"D2","level":"warning","message":{"text":"nodeAndOffsetInLineMap (cognitive 38): nodeAndOffsetInLineMap has cognitive complexity 38 (threshold 15). Drivers by points: if/else 8 (18 pts), loops 3 (9 pts), boolean chains 7, ternaries 1 (4 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":2441}}}],"partialFingerprints":{"codehealthFindingId/v1":"512b9f518f5b7f3fec92c00620916cacb92061eb28bea527fe028f6025e5d368"}},{"ruleId":"D2","level":"warning","message":{"text":"invalidFormField (cognitive 38): invalidFormField has cognitive complexity 38 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 12, ternaries 3 (5 pts), loops 1 (nesting depth added 12). Of this number, 26 points are the body\u0027s own statements and 12 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9efe6cb012849cc112694fb93cef330e71f861400e4c6a38624dba891621620"}},{"ruleId":"D2","level":"warning","message":{"text":"fallback.renderReferenceCard (cognitive 37): fallback.renderReferenceCard has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 13, ternaries 4 (5 pts) (nesting depth added 8). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"085abbc74669e5afb2b43b1cd0524dbb1f792512712d3e73cff97e8e30a18fef"}},{"ruleId":"D2","level":"warning","message":{"text":"Coupon.save (cognitive 37): Coupon.save has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (24 pts), boolean chains 8, error handling 1 (2 pts), ternaries 2, loops 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"7edb4edbd6aae9a0d969dce5a5b240d4a37d5ed13fa9419b9c64c87672c42e44"}},{"ruleId":"D2","level":"warning","message":{"text":"Category.save (cognitive 37): Category.save has cognitive complexity 37 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 10, ternaries 3 (4 pts), loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Category.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e8cece61b53418e619791598b6003cbacf2c32b1e74ed66d545c941282dbd94"}},{"ruleId":"D2","level":"warning","message":{"text":"Plugin.hook (cognitive 37): Plugin.hook has cognitive complexity 37 (threshold 15). Drivers by points: if/else 9 (26 pts), ternaries 1 (5 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Plugin.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"cea51cac749a8aa310eaf2c0f8f66e2e93fe0b7ac9b29046c6adfbf7c94a8dbb"}},{"ruleId":"D2","level":"warning","message":{"text":"applyTextInput (cognitive 37): applyTextInput has cognitive complexity 37 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 9, ternaries 3 (6 pts), loops 2 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8146}}}],"partialFingerprints":{"codehealthFindingId/v1":"3945ba1ef76f8bbaf66ceee6edc3948f7ed991d6c934ca21cb1886f997911e3e"}},{"ruleId":"D2","level":"warning","message":{"text":"openComposer (cognitive 37): openComposer has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 12, ternaries 6 (8 pts) (nesting depth added 4). Most of this is not in the body itself: 10 of the 37 points are its own statements and the rest belongs to 15 function items inside it that branch (submit::save::done, submit, submit::save::error, \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":"assets/admin/controller/user/message.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c25abcbc051d9ae97ed29925a246cc5b35cae3263ffb1f63bbb667441b871cb"}},{"ruleId":"D2","level":"warning","message":{"text":"_Bill (cognitive 37): _Bill has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 11 (22 pts), if/else 6 (10 pts), boolean chains 5 (nesting depth added 15). Most of this is not in the body itself: 13 of the 37 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 862, complete, complete, \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":"assets/admin/controller/store/home.js"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc39eaf7fecfaae6e22c8f3a8707a90687c131f9e48df9d9a57e6586d8c4eee4"}},{"ruleId":"D2","level":"warning","message":{"text":"Card.save (cognitive 36): Card.save has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (30 pts), ternaries 3, error handling 1 (2 pts), loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"90cec34c5288318b80678bb60a31eebe31f6cff79212bbccd1f694fc28dd1bdf"}},{"ruleId":"D2","level":"warning","message":{"text":"Authentication.register (cognitive 36): Authentication.register has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 10, error handling 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4999cc5a6da92f46c06ccd45000bd982072aded7005c146162d34d9a19ef7979"}},{"ruleId":"D2","level":"warning","message":{"text":"Index.card (cognitive 36): Index.card has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 4 (9 pts), boolean chains 1, ternaries 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Index.php"},"region":{"startLine":292}}}],"partialFingerprints":{"codehealthFindingId/v1":"a86902f1b03669491b7008ba4fb51539cfba1ba5386e31c37aacc0a2a6294882"}},{"ruleId":"D2","level":"warning","message":{"text":"Shop.substationPriceIncrease (cognitive 36): Shop.substationPriceIncrease has cognitive complexity 36 (threshold 15). Drivers by points: loops 6 (20 pts), if/else 10 (15 pts), ternaries 1 (nesting depth added 19). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shop.php"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"c456aec3606d8a42125776f0ec708339b95737fc2e15c72b1b5a14c9bb696a6d"}},{"ruleId":"D2","level":"warning","message":{"text":"registerEventHandlers (cognitive 36): registerEventHandlers has cognitive complexity 36 (threshold 15). Drivers by points: if/else 19 (23 pts), boolean chains 11, ternaries 1 (2 pts) (nesting depth added 5). Most of this is not in the body itself: 3 of the 36 points are its own statements and the rest belongs to 22 function items inside it that branch (a function literal at line 8018, a function literal at line 8002, a function literal at line 7965, \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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7960}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc054c3fb66a72dfcdf9d7ed56b5445a5034d9c50d9f26bd0e3a7bb77bcc305"}},{"ruleId":"D2","level":"warning","message":{"text":"Category.safeCategoryDeleteImpact (cognitive 35): Category.safeCategoryDeleteImpact has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 9 (14 pts), boolean chains 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bfb0493093e30e1d1d7536f24ad848106f85b9b978b51d58bff6d40cca02b3c"}},{"ruleId":"D2","level":"warning","message":{"text":"RechargeOrder.exportQuery (cognitive 35): RechargeOrder.exportQuery has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 10, loops 4 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/RechargeOrder.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"08173fb6300a20f113950ebac3808a6e119f8619710d17bea877d025ec2d648f"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.save (cognitive 35): Message.save has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 10, ternaries 4 (6 pts), loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"7454ed8e7f971a55db1aff4502db6f0c4363b249cf6a2a6ae7ac81e5201ccb23"}},{"ruleId":"D2","level":"warning","message":{"text":"initMessageCenter (cognitive 35): initMessageCenter has cognitive complexity 35 (threshold 15). Drivers by points: if/else 14 (30 pts), ternaries 1 (4 pts), boolean chains 1 (nesting depth added 19). Most of this is not in the body itself: 6 of the 35 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 337, a function literal at line 370, a function literal at line 378, \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":"assets/user/js/glass.js"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"6426ba5af9eee93ec7417d49a489c9ca2d037c36a08f2269a5d11b1e9e201e2a"}},{"ruleId":"D2","level":"warning","message":{"text":"makeChangeFromHistory (cognitive 35): makeChangeFromHistory has cognitive complexity 35 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 10, ternaries 4 (6 pts), loops 3 (nesting depth added 7). Of this number, 28 points are the body\u0027s own statements and 7 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ac60b67c2b48d9b69a0492443ab09879739ecbbcc878a2d90ea0d891467e28"}},{"ruleId":"D2","level":"warning","message":{"text":"onDrop (cognitive 35): onDrop has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 6, loops 2 (6 pts), error handling 1 (2 pts) (nesting depth added 14). Of this number, 28 points are the body\u0027s own statements and 7 belong to 7 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":6532}}}],"partialFingerprints":{"codehealthFindingId/v1":"baffdc94ffe30d5461ad6b1817f550c88be102e346f4cbfc9b3b3ec50de50056"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.regChange (cognitive 34): codemirror.regChange has cognitive complexity 34 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 6 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3002}}}],"partialFingerprints":{"codehealthFindingId/v1":"208f620ce0ffa1430de54426895bcbf8a872a87ef5effed03d068d92b61adc38"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.indentLine (cognitive 34): codemirror.indentLine has cognitive complexity 34 (threshold 15). Drivers by points: if/else 20 (27 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8078}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa782b22e537858a35502eb6a345c38f949d54c05147cced1540ee565d80f28c"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.addEditorMethods (cognitive 34): codemirror.addEditorMethods has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 34. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8268}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77d4a3e1fb72dbdaff8eac91038ed34b76d037effee7f70688af07b46853cd9"}},{"ruleId":"D2","level":"warning","message":{"text":"css.CodeMirror.defineMode(\u0022css\u0022) (cognitive 34): css.CodeMirror.defineMode(\u0022css\u0022) has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 33, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef6fec73c38e5520ba28a1f69e8625cecae1ae7467961a78004dea2bba0cd18"}},{"ruleId":"D2","level":"warning","message":{"text":"glass.refreshMessageCenter (cognitive 34): glass.refreshMessageCenter has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 13, if/else 10 (12 pts), ternaries 8 (9 pts) (nesting depth added 3). Most of this is not in the body itself: 2 of the 34 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 243, 284). 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":"assets/user/js/glass.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"207e6a3d6c55b0d8df755998715473ea0c64d007c2e9f92c411f57882229a682"}},{"ruleId":"D2","level":"warning","message":{"text":"Card.save (cognitive 34): Card.save has cognitive complexity 34 (threshold 15). Drivers by points: if/else 15 (28 pts), ternaries 3, error handling 1 (2 pts), loops 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Card.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b3daf3206bea9d7fb8f8e4ddca760a5375654bfff373e534089b93901c708a"}},{"ruleId":"D2","level":"warning","message":{"text":"App.update (cognitive 34): App.update has cognitive complexity 34 (threshold 15). Drivers by points: if/else 9 (25 pts), ternaries 1 (4 pts), error handling 1 (3 pts), loops 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/App.php"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"659be569ba505406cc366b07f753a39e3e3afd8ddef5ced1398185252a49a37c"}},{"ruleId":"D2","level":"warning","message":{"text":"Currency.convertIniMoney (cognitive 34): Currency.convertIniMoney has cognitive complexity 34 (threshold 15). Drivers by points: if/else 6 (18 pts), loops 5 (12 pts), boolean chains 3, error handling 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Currency.php"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b1e432f566481acc8844c5e5c077740e8086d10733b4607e392bff0b30ae311"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.createThumbnail (cognitive 34): Image.createThumbnail has cognitive complexity 34 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 5, match/switch 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Image.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5a4e5830f2e10c78706b8fe4f7c748d270567f5579b83ec382ac750c291195"}},{"ruleId":"D2","level":"warning","message":{"text":"Shop.getCategory (cognitive 34): Shop.getCategory has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (23 pts), loops 3 (7 pts), boolean chains 4 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shop.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e58098bdb98a2bf89223310398da3cf73a3afceb6a9e5284a0a0b7e7414f9a"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::render (cognitive 34): (anonymous)::render has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 26, if/else 6 (7 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/modules/authtree.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d683b267c9acc192538bf9bb8bbd9c86552450b8eceebaeda4ab5164bfd7b51c"}},{"ruleId":"D2","level":"warning","message":{"text":"buildLineContent (cognitive 34): buildLineContent has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 9, ternaries 3 (5 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1734}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e81a64717b3c0bac98ce5587416d65523cb4c005142174ed4b8905ac2f8570"}},{"ruleId":"D2","level":"warning","message":{"text":"coordsCharInner (cognitive 34): coordsCharInner has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 12 (24 pts), if/else 6 (7 pts), boolean chains 3 (nesting depth added 13). Of this number, 31 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":2753}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f1ed5896eb60662ef17886ca9ef6a39fb5c930f566b55ddf0cecadf6ef211c"}},{"ruleId":"D2","level":"warning","message":{"text":"endOfLine (cognitive 34): endOfLine has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 7 (20 pts), if/else 6 (13 pts), boolean chains 1 (nesting depth added 20). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":6884}}}],"partialFingerprints":{"codehealthFindingId/v1":"417f55e444c2d4f6dfce97870bf11de9cbef7fe587d919faa4772af236cd794b"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::render (cognitive 34): (anonymous)::render has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 26, if/else 6 (7 pts), boolean chains 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/authtree.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c857f56622875ed40fc57a259f5ad35ace2d7de3fe1b364c6e4de877c7909ad"}},{"ruleId":"D2","level":"warning","message":{"text":"syncSettingsNavigation (cognitive 34): syncSettingsNavigation has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13, boolean chains 11, ternaries 10. Most of this is not in the body itself: 15 of the 34 points are its own statements and the rest belongs to 13 function items inside it that branch (a function literal at line 774, setActive, updateActive, \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":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"180b29804672f4b9841d2b7c8acf0e0338346f6b7b7cc33013891c98ae3a47a0"}},{"ruleId":"D2","level":"warning","message":{"text":"menu.KTDrawer (cognitive 33): menu.KTDrawer has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25 (27 pts), boolean chains 6 (nesting depth added 2). Most of this is not in the body itself: 2 of the 33 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 3451, 3400, 3322, \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":"assets/admin/js/menu.js"},"region":{"startLine":3267}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c50d892a752674a6c881a598c5ec13217f5b378640cf0196ffe1cbc3b5dc20b"}},{"ruleId":"D2","level":"warning","message":{"text":"Manage.set (cognitive 33): Manage.set has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 13, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Manage.php"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd4f46b8203dd1b8358782c6508f8eb0af4e8fc947a5847de06356070594bf92"}},{"ruleId":"D2","level":"warning","message":{"text":"Order.getCost (cognitive 33): Order.getCost has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (20 pts), ternaries 3 (6 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"34241d1713239c75ae0553fcdf9c3495ecc1986cc6c92f5249f7159f1fb35e92"}},{"ruleId":"D2","level":"warning","message":{"text":"SharedCurrency.config (cognitive 33): SharedCurrency.config has cognitive complexity 33 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 5 (9 pts), boolean chains 4, error handling 2, ternaries 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/SharedCurrency.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d86362107a831754fcbaa3e217486fc1899527178596f47c0a39ddfe8e1b020f"}},{"ruleId":"D2","level":"warning","message":{"text":"flushReadyQueue (cognitive 33): flushReadyQueue has cognitive complexity 33 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 7, ternaries 3, loops 1 (nesting depth added 5). Most of this is not in the body itself: 3 of the 33 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 139, execute, a function literal at line 95, \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":"assets/common/js/ready.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"d027a9cecaa0ac006a7522fcc9eef718a329a5d2492aeadb7ce704eb31c96bb1"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRelated (cognitive 33): renderRelated has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 17, ternaries 7 (14 pts), if/else 2 (nesting depth added 7). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/ticket.detail.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"0be1109f52fa73104f4a4ae2a7f883220b37660a22158fe37526b3c9f9346cb3"}},{"ruleId":"D2","level":"warning","message":{"text":"pollContent (cognitive 33): pollContent has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 10, loops 4 (5 pts), ternaries 3 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9058}}}],"partialFingerprints":{"codehealthFindingId/v1":"495a22650952532e1e4dc9ad3d4578eb49b09890132829f151b18f8458f0cb92"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::setSonNodeCheckBox (cognitive 33): (anonymous)::(anonymous)::setSonNodeCheckBox has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 2 (8 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2542}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d510c5b9940ee5984af665d5e8d3487bbfd78c38047740f76717871e5a7e5bd"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::onMousedownNode::_docMouseUp::dropCallback (cognitive 33): (anonymous)::(anonymous)::onMousedownNode::_docMouseUp::dropCallback has cognitive complexity 33 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (11 pts), ternaries 2 (6 pts), boolean chains 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":3312}}}],"partialFingerprints":{"codehealthFindingId/v1":"df020b8aa48e5fb8be2eed238855ff897024a5521aa4e9ea10e7b231b32a11dc"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSelectionDock (cognitive 33): renderSelectionDock has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 14, ternaries 3 (nesting depth added 1). Most of this is not in the body itself: 15 of the 33 points are its own statements and the rest belongs to 13 function items inside it that branch (actionIcon, a function literal at line 2360, a function literal at line 2423, \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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2329}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc601cb7a1fe60c2a4511d5a9056a9d36c36939ebe33681b80ed4f6b93203575"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).inText (cognitive 33): (anonymous).inText has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (25 pts), ternaries 2 (5 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/xml/xml.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c30c18ec418765f69c63973ca44450a2f5878306570e121f5bc3dbf936321ad"}},{"ruleId":"D2","level":"warning","message":{"text":"menu.KTMenu.initGlobalHandlers (cognitive 32): menu.KTMenu.initGlobalHandlers has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (21 pts), boolean chains 7, loops 2 (4 pts) (nesting depth added 12). Most of this is not in the body itself: 0 of the 32 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 2400, 2480, 2458, \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":"assets/admin/js/menu.js"},"region":{"startLine":2398}}}],"partialFingerprints":{"codehealthFindingId/v1":"88be907813a51974958d899a4c67666895a8e2e53150a98f3d405fb9485d8f78"}},{"ruleId":"D2","level":"warning","message":{"text":"overlay.focusInvalid (cognitive 32): overlay.focusInvalid has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 14, if/else 12 (14 pts), ternaries 4 (nesting depth added 2). Of this number, 26 points are the body\u0027s own statements and 6 belong to 2 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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"691dfe5a03de65526dbea4fabfcb2a5a677d37fe714be088b1dd9b15a6280533"}},{"ruleId":"D2","level":"warning","message":{"text":"Form.getData (cognitive 32): Form.getData has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 12, match/switch 1, ternaries 1 (nesting depth added 9). Most of this is not in the body itself: 3 of the 32 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 992, 980, 982, \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":"assets/common/js/component/form.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6f0399b4dac29c06a2c20495bb224c17fb66d6fb0c4351fd6286590a192849f"}},{"ruleId":"D2","level":"warning","message":{"text":"css.CodeMirror.defineMode(\u0022css\u0022).tokenBase (cognitive 32): css.CodeMirror.defineMode(\u0022css\u0022).tokenBase has cognitive complexity 32 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 7 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"141813e298d7a0251e7ce9752d1dbcabc0690bc16323cb317bb12ccb403926ce"}},{"ruleId":"D2","level":"warning","message":{"text":"Order.orderSuccess (cognitive 32): Order.orderSuccess has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 2 (6 pts), boolean chains 5, error handling 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"53b52c4a60c798b3d2a941ba3db3e6440cfefbeb71b261c00dc0be02428d2208"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::expandCollapseNode (cognitive 32): (anonymous)::(anonymous)::expandCollapseNode has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 8 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7156277273a168790601fa270969a8d00fc1c18dbd787ad5afc6a0cbf8dfad5c"}},{"ruleId":"D2","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).indent (cognitive 31): javascript.CodeMirror.defineMode(\u0022javascript\u0022).indent has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 13, loops 2 (3 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c4b2f59f408bbc07254e5b26610be51dcddfa4de37dc376a25dca2a18582b7"}},{"ruleId":"D2","level":"warning","message":{"text":"Email.sendCaptcha (cognitive 31): Email.sendCaptcha has cognitive complexity 31 (threshold 15). Drivers by points: if/else 13 (30 pts), match/switch 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Email.php"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad3324efe4aa7bb76c5bbb19156117403a7777265af853c2487a8ccd372c417"}},{"ruleId":"D2","level":"warning","message":{"text":"onContextMenu (cognitive 31): onContextMenu has cognitive complexity 31 (threshold 15). Drivers by points: if/else 17 (19 pts), boolean chains 7, ternaries 3 (5 pts) (nesting depth added 4). Most of this is not in the body itself: 13 of the 31 points are its own statements and the rest belongs to 4 function items inside it that branch (rehide, prepareSelectAllHack, rehide::poll, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9608}}}],"partialFingerprints":{"codehealthFindingId/v1":"b76174aafc175c54f133c2ebafb96c7dbd5bb677db575384559e2b692ee54e3f"}},{"ruleId":"D2","level":"warning","message":{"text":"#setField (cognitive 31): #setField has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 3 (7 pts), boolean chains 5, error handling 1 (4 pts) (nesting depth added 13). Of this number, 27 points are the body\u0027s own statements and 4 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":"assets/common/js/component/search.js"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb091c8796d437669d9100f8c26d4a35519521e7fb237e909516d003344423fb"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach.onKey (cognitive 31): (anonymous).attach.onKey has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 8, ternaries 1 (4 pts), match/switch 1 (nesting depth added 10). Of this number, 30 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e80710600dda0f59191eeba315ea026a414b97d084e1f25b51c3bd34e4863c8"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).tokenBase (cognitive 31): (anonymous).tokenBase has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 6 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb242a8472f721ffb9cdf9a35184596afe5ad9e0a54458ada352415e70463e7c"}},{"ruleId":"D2","level":"warning","message":{"text":"Install.html.renderDbResult (cognitive 30): Install.html.renderDbResult has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 2 (7 pts), boolean chains 5, match/switch 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Install.html"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"72d80485c35b3b269046ad380e563cae27049237a5e1d7d72a0d435ec1be156b"}},{"ruleId":"D2","level":"warning","message":{"text":"order.$(\u0022.btn-app-export\u0022).off().on() (cognitive 30): order.$(\u0022.btn-app-export\u0022).off().on() has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 11 (12 pts), ternaries 3, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 0 of the 30 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 520, 563). 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":"assets/admin/controller/trade/order.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e333533d9728da92df987f5e3c7113a5565478e284b29a69d486698a9fa8f36"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.updateHeightsInViewport (cognitive 30): codemirror.updateHeightsInViewport has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (22 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3358}}}],"partialFingerprints":{"codehealthFindingId/v1":"527b091c3c14b8ae2643af715b930791a548648cab192bb1d8cf9cd6795f7210"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.domTextBetween (cognitive 30): codemirror.domTextBetween has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (25 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9208}}}],"partialFingerprints":{"codehealthFindingId/v1":"677099b3da411baebda4f4fcfe15fd62705030a0089011a7d3ad83095ded2dcc"}},{"ruleId":"D2","level":"warning","message":{"text":"xml.CodeMirror.defineMode(\u0022xml\u0022).inText (cognitive 30): xml.CodeMirror.defineMode(\u0022xml\u0022).inText has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (25 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/xml/xml.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"c473db9e2faa0fad0ae287df1f622a813c911f23a5f9c3ad4f5b18af64677fae"}},{"ruleId":"D2","level":"warning","message":{"text":"Plugin.getPlugins (cognitive 30): Plugin.getPlugins has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 2 (4 pts), boolean chains 2, ternaries 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Plugin.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"613060635b9b348e65ed424a8bf392045811ee1bb79b4c639fbbd91c3dd99aa1"}},{"ruleId":"D2","level":"warning","message":{"text":"Query.save (cognitive 30): Query.save has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 5, loops 4 (5 pts), ternaries 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Query.php"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"93052ad9bbf524750859ead6b2240ced83ab9464706bbb21a9645dbd8a572dc0"}},{"ruleId":"D2","level":"warning","message":{"text":"Shop.getItem (cognitive 30): Shop.getItem has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (22 pts), loops 1 (4 pts), boolean chains 3, error handling 1 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shop.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"45369f7a7db644243309214b5d6eac5a81fe20c39e95f58726920666f5297da8"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadPurge.stageForDeletion (cognitive 30): UploadPurge.stageForDeletion has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 12, loops 2, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/UploadPurge.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f31a3fe742df02b789a8d006429becfbdebbe179d253ae59631ff2ab630cf248"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshMessageCenter::success (cognitive 30): refreshMessageCenter::success has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 11, if/else 8 (10 pts), ternaries 9 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"assets/user/js/glass.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"f729e75de50405efcf24d2403c919657c683e3bbbdb7ae33877922b118b4bf2a"}},{"ruleId":"D2","level":"warning","message":{"text":"previewMessage (cognitive 30): previewMessage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13, boolean chains 11, ternaries 5 (6 pts) (nesting depth added 1). Most of this is not in the body itself: 10 of the 30 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 238, end, 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":"assets/common/js/component.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e2d3bc76e7b0229a741f0e0169c8998b67be3542759f173429e15b3d92e9906"}},{"ruleId":"D2","level":"warning","message":{"text":"presentPopup (cognitive 30): presentPopup has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (25 pts), boolean chains 22, ternaries 11, error handling 4 (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ca2553b7083365dc0142fad9a638874085350d523bb1f5244617790a17100d"}},{"ruleId":"D2","level":"warning","message":{"text":"overlay.firstInvalidField (cognitive 29): overlay.firstInvalidField has cognitive complexity 29 (threshold 15). Drivers by points: if/else 4 (12 pts), boolean chains 6, error handling 2 (5 pts), loops 2 (3 pts), ternaries 1 (3 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f3fba1e9370ef9cd47f536baf7add24c22cc7d8bb51a3b4fb66b313221c2c4"}},{"ruleId":"D2","level":"warning","message":{"text":"passkey.add (cognitive 29): passkey.add has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 10, error handling 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/security/passkey.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"194c6867b89ae570d98f3b8738c30b60622b1132cd34a1d90ea1c45ddd08fbed"}},{"ruleId":"D2","level":"warning","message":{"text":"App.plugins (cognitive 29): App.plugins has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (24 pts), boolean chains 4, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/App.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ff21c8809fc5cd36e4ad93010cfa3db273b6b5060c51a0e571ca029ea60a838"}},{"ruleId":"D2","level":"warning","message":{"text":"Category.status (cognitive 29): Category.status has cognitive complexity 29 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 5 (11 pts), boolean chains 5 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"05ff38f09659b7cba9eabc557504ecef9554ece674b941e1709d0e120577316d"}},{"ruleId":"D2","level":"warning","message":{"text":"Pay.getPluginInfo (cognitive 29): Pay.getPluginInfo has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 6 (13 pts), if/else 5 (11 pts), loops 1 (3 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Pay.php"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c06e6b17fb72d0d24287fb548a85b4aa30f5e8fecb188a0ac8f8bb0bbcab589"}},{"ruleId":"D2","level":"warning","message":{"text":"post (cognitive 29): post has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 8 (15 pts), if/else 8 (10 pts), boolean chains 3, error handling 1 (nesting depth added 9). Of this number, 17 points are the body\u0027s own statements and 12 belong to 3 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/util.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0874f9e6f9f72ac269b917ac9b8dc7e58dff1aa184e403f1af58489c58f6f9e"}},{"ruleId":"D2","level":"warning","message":{"text":"conflictingCollapsedRange (cognitive 29): conflictingCollapsedRange has cognitive complexity 29 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 9, ternaries 2 (8 pts), loops 1 (2 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a22d369b1df8777d225d45ce735456846238ac8ee9f99d65e3e0f26c297032"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::_eventProxy (cognitive 29): (anonymous)::(anonymous)::_eventProxy has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 4, match/switch 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8659f154ea5ab4fca54a315f3a88e40be68f3b43ef3900a14101cfd9d4e651"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::onMousedownNode::_docMouseUp (cognitive 29): (anonymous)::(anonymous)::onMousedownNode::_docMouseUp has cognitive complexity 29 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 7, ternaries 2 (4 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":3266}}}],"partialFingerprints":{"codehealthFindingId/v1":"948013202a962948533306ac0507729bc8703232def0219fe236f79bf433c4a9"}},{"ruleId":"D2","level":"warning","message":{"text":"#getSelectionRowState (cognitive 29): #getSelectionRowState has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 9, error handling 3 (5 pts), ternaries 2 (3 pts), other 2 (nesting depth added 6). Of this number, 26 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbf20651fd58b0ba2f0791a8ec06c1ffb2cf1980c646e7e0416b48ab6aae33ca"}},{"ruleId":"D2","level":"warning","message":{"text":"addWidget (cognitive 29): addWidget has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 12 (14 pts), if/else 6 (7 pts), boolean chains 6, match/switch 1, other 1 (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 14 belong to 11 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cbf61b8665b8f3acdf5c94088effd263bf4ce519a4b55314cd522ccfbc1776a"}},{"ruleId":"D2","level":"warning","message":{"text":"click (cognitive 29): click has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 6, ternaries 3 (4 pts), other 2 (nesting depth added 3). Most of this is not in the body itself: 1 of the 29 points is its own statement and the rest belongs to 16 function items inside it that branch ((anonymous)::submit, a function literal at line 1637, (anonymous)::renderComplete, \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":"assets/admin/controller/shared/store.js"},"region":{"startLine":1561}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7eff58b52867356a6a321077dc11108aa2a2b69ccb589147c07fdd8bbd19bfd"}},{"ruleId":"D2","level":"warning","message":{"text":"configureShell (cognitive 29): configureShell has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 7, error handling 2 (4 pts), ternaries 1 (nesting depth added 9). Most of this is not in the body itself: 10 of the 29 points are its own statements and the rest belongs to 4 function items inside it that branch (shellClickHandler, a function literal at line 210, a function literal at line 214, \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":"assets/admin/controller/config/wiki.mobile.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cf8337af05c32d235d78026ca051f78e58fc82c86934f8372815ecdfa15f5bc"}},{"ruleId":"D2","level":"warning","message":{"text":"priceTemplate.applyModal (cognitive 28): priceTemplate.applyModal has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 11 (12 pts), boolean chains 11, if/else 5 (nesting depth added 1). Most of this is not in the body itself: 0 of the 28 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 240, 260, 312, \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":"assets/admin/controller/shared/priceTemplate.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"48218ea885ba0b7ad40c8b2caa1c98ed140157ee4551683bd2b410e6aa84fa6a"}},{"ruleId":"D2","level":"warning","message":{"text":"recharge.order.$(\u0022.btn-app-export\u0022).off().on() (cognitive 28): recharge.order.$(\u0022.btn-app-export\u0022).off().on() has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 13, if/else 11 (12 pts), ternaries 2, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 0 of the 28 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 271, 314). 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":"assets/admin/controller/user/recharge.order.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f63e43c5f897d402f63c8bde11a3cf01f502c6020b5da869aecfbd5ddf896f5"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.markSemanticPage (cognitive 28): workflows.markSemanticPage has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 14, ternaries 6 (13 pts), if/else 1 (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 13 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f1faa165a57ab598d6835fb331fe5ee2b3afd9e1e53914afb890cf290df32b"}},{"ruleId":"D2","level":"warning","message":{"text":"App.getUpdates (cognitive 28): App.getUpdates has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (22 pts), ternaries 2 (3 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/App.php"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f650139940b8a7062f5fb39b24fd65ad01d938739e50ad5555c9841f35ffdb"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.sendEmailBatch (cognitive 28): Message.sendEmailBatch has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 2 (6 pts), error handling 2 (4 pts), boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e9ec7ff3abfac9819d207ff3e37696a89301f139b4dafa0144b43717b4080cc"}},{"ruleId":"D2","level":"warning","message":{"text":"Shared.syncRemoteItem (cognitive 28): Shared.syncRemoteItem has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (15 pts), ternaries 5 (7 pts), boolean chains 6 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"113955eead1f1aa8fdc92dc756d407cadb99d5bf27a5e84d753593b30d49f017"}},{"ruleId":"D2","level":"warning","message":{"text":"Lang.scanExtensionPacks (cognitive 28): Lang.scanExtensionPacks has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (16 pts), loops 4 (7 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fed1ee55febaf9df6c4156e77bb7d518c964196db62343a7e8345d101926c20"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 28): (anonymous) has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (20 pts), boolean chains 6, ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/message.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"77715ce4feb5e7dc5c4a19e6de82a4d098b1f11193289153751151c997369597"}},{"ruleId":"D2","level":"warning","message":{"text":"syncContextNavigation (cognitive 28): syncContextNavigation has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 6, ternaries 3 (4 pts) (nesting depth added 7). Of this number, 14 points are the body\u0027s own statements and 14 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":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":874}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9b3357a356f28f0fcbd97b77011bd2021842d090cadd4e471a0f59c535b2a6"}},{"ruleId":"D2","level":"warning","message":{"text":"done (cognitive 28): done has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 11, other 2, ternaries 2 (nesting depth added 1). Most of this is not in the body itself: 3 of the 28 points are its own statements and the rest belongs to 26 function items inside it that branch (formatter, formatter, click, \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":"assets/admin/controller/store/developer.js"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"550db384e365b211da4d99321993e21e902c9883cc748b5858f4595f01c4de4a"}},{"ruleId":"D2","level":"warning","message":{"text":"confirmPayDelete::done (cognitive 28): confirmPayDelete::done has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 19, if/else 5, ternaries 3 (4 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/pay/api.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff245a2f8b88531b6cbd2dc50211351597a5f5a2aed61cb90ac3aa70fb5da51"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::tokenLexer (cognitive 28): (anonymous)::tokenLexer has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 7, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/python/python.js"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"b25bf6f375bd9b9f05c41ea04efe0b3f905e10573e8c404f71c24a8ea08aca88"}},{"ruleId":"D2","level":"warning","message":{"text":"card.$(\u0022.btn-app-export\u0022).off().on() (cognitive 27): card.$(\u0022.btn-app-export\u0022).off().on() has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (8 pts), ternaries 5 (6 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 0 of the 27 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 636, 663). 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":"assets/admin/controller/trade/card.js"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d8fe7f40f96e13bdd27f47522fa2b9861d60c564deb1b2f9c3e24c29eaaf992"}},{"ruleId":"D2","level":"warning","message":{"text":"fallback.treeMetadata (cognitive 27): fallback.treeMetadata has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 10, ternaries 4 (nesting depth added 2). Most of this is not in the body itself: 5 of the 27 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 2556, 2587, 2582, \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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2547}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e012aaee7d12b9d2b41723fe89dda576993f5b7624ce3b61e521344ab141022"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.removeReadOnlyRanges (cognitive 27): codemirror.removeReadOnlyRanges has cognitive complexity 27 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 8, loops 3 (5 pts) (nesting depth added 10). Of this number, 18 points are the body\u0027s own statements and 9 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc93b96e33754edf6ccdeece63d32fe62cf2dc980e0a797ace7a1927c9af8d46"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.pjax.onPjaxPopstate (cognitive 27): jquery.pjax.onPjaxPopstate has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 4 (nesting depth added 12). 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":"assets/static/jquery.pjax.js"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99f616c3d6dec618c11252c863403347b808e4c1e91b2f08809b7e9abf2d513"}},{"ruleId":"D2","level":"warning","message":{"text":"App.updatePlugin (cognitive 27): App.updatePlugin has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (16 pts), error handling 3 (6 pts), ternaries 2 (4 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/App.php"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda65846ca56cea4837196989e12e940aeb180ec15f4f01943af6135d069f9e1"}},{"ruleId":"D2","level":"warning","message":{"text":"Ticket.delete (cognitive 27): Ticket.delete has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (20 pts), loops 4 (6 pts), error handling 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8931f2579a8438f62ae155338d9841116d6b529d51d12b87339d0e4432472fc"}},{"ruleId":"D2","level":"warning","message":{"text":"bind (cognitive 27): bind has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 6 (10 pts), boolean chains 5, loops 1 (nesting depth added 7). Most of this is not in the body itself: 10 of the 27 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 353, 382, 330, \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":"assets/common/js/ready.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"1682bfbac2117e594a8aec548e5cc399dc26651381d286f7726e1aff84664f5c"}},{"ruleId":"D2","level":"warning","message":{"text":"markedSpansAfter (cognitive 27): markedSpansAfter has cognitive complexity 27 (threshold 15). Drivers by points: ternaries 4 (15 pts), boolean chains 6, if/else 2 (4 pts), loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"820dfd111a5a7da340e431b5adef60fbfd457cd8468ea9cd9aa6945207632877"}},{"ruleId":"D2","level":"warning","message":{"text":"init (cognitive 27): init has cognitive complexity 27 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 3, loops 1 (nesting depth added 6). Most of this is not in the body itself: 0 of the 27 points are its own statements and the rest belongs to 11 function items inside it that branch (onCopyCut, belongsToInput, a function literal at line 8824, \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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8808}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9a8cee84708875e68fbeb1a2568c1402e53452a5e05fc702ae968bb99e1d226"}},{"ruleId":"D2","level":"warning","message":{"text":"showPrimarySelection (cognitive 27): showPrimarySelection has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 10, ternaries 1 (2 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8917}}}],"partialFingerprints":{"codehealthFindingId/v1":"95369aa845433d81fa4b9f4367dc04eec812e439881a198cfde9935d2380cf5a"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::submit (cognitive 27): (anonymous)::submit has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, if/else 9 (10 pts), other 3, ternaries 2, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/recharge.order.js"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"932fe0c32886124bab13625dc2e5f13152596fe543fabdbbc6382fe34f9dcf00"}},{"ruleId":"D2","level":"warning","message":{"text":"click (cognitive 27): click has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, ternaries 8, if/else 7, other 1. Most of this is not in the body itself: 8 of the 27 points are its own statements and the rest belongs to 10 function items inside it that branch (success, yes, a function literal at line 141, \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":"assets/admin/controller/user/cash.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"4094ec20455558d93580e667939d14f73607c5e43a8375d80f1176a536804cb7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::submit (cognitive 27): (anonymous)::submit has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 10, if/else 9 (10 pts), other 3, ternaries 3, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/order.js"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"49bf26fe8b2eabd570769c0b4bac802772db69d0470a0709e6a1d8203dbace7f"}},{"ruleId":"D2","level":"warning","message":{"text":"modal (cognitive 27): modal has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (13 pts), ternaries 5 (6 pts), loops 2 (5 pts), boolean chains 2, other 1 (nesting depth added 5). Most of this is not in the body itself: 13 of the 27 points are its own statements and the rest belongs to 8 function items inside it that branch (change, fillConfigs, change, \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":"assets/admin/controller/pay/api.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c37c17554bad6b2e6880ac8a06258db8a8f87bf902d59d23bdf4923b775fa61"}},{"ruleId":"D2","level":"warning","message":{"text":"index.renderChart (cognitive 26): index.renderChart has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 13 (16 pts), boolean chains 5, if/else 5 (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 11 belong to 5 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/dashboard/index.js"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ef767965eb98cc1a0abe2a5494a1341f2b0a8c0f98cdf8c9adc7a82e521890"}},{"ruleId":"D2","level":"warning","message":{"text":"fallback.detailContent (cognitive 26): fallback.detailContent has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 9, error handling 1 (2 pts), ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 10 of the 26 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1417, 1414, 1424). 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"9be4d2f13fb0a8ad2fbb8528c709856e1eb894b9b82faf33891b130346c96492"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.copyHistoryArray (cognitive 26): codemirror.copyHistoryArray has cognitive complexity 26 (threshold 15). Drivers by points: if/else 4 (16 pts), loops 3 (7 pts), ternaries 1 (3 pts) (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5040}}}],"partialFingerprints":{"codehealthFindingId/v1":"920eff44ab413cc32dbd567ddf246e9024f403b23d22d0f9055cc4ecbf2294c7"}},{"ruleId":"D2","level":"warning","message":{"text":"message.renderCartoonMobile (cognitive 26): message.renderCartoonMobile has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 10, ternaries 7 (10 pts), if/else 6 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/message.js"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"36df0f575a58cc68045d69e80845899265c98ae88079453db5af0509d131cf35"}},{"ruleId":"D2","level":"warning","message":{"text":"Card.cardExportQuery (cognitive 26): Card.cardExportQuery has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 6, loops 4, ternaries 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1963beb6a633e22b6ef5f435e29887df01c3159ca9806566b66eccd037ef4cc"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.consumeTestSendQuota (cognitive 26): Config.consumeTestSendQuota has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 6, loops 4, ternaries 2 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c2a483262708418a4ff5a44e3fdf6231b95153442760be91cad35b00846ebc"}},{"ruleId":"D2","level":"warning","message":{"text":"CommodityOrder.data (cognitive 26): CommodityOrder.data has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 3 (5 pts), loops 3 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/CommodityOrder.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a63723593a7432bd3206623a8b029b17e4199ecaf4c9b6dd6e3f11f0729e39c"}},{"ruleId":"D2","level":"warning","message":{"text":"Currency.convertAll (cognitive 26): Currency.convertAll has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, loops 3 (4 pts), ternaries 2 (4 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Currency.php"},"region":{"startLine":131}}}],"partialFingerprints":{"codehealthFindingId/v1":"68cbefb5752ded9960eb131071061dabd165b381fc3c6de5041fe457c7d51910"}},{"ruleId":"D2","level":"warning","message":{"text":"Image.downloadRemoteImage (cognitive 26): Image.downloadRemoteImage has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 2 (4 pts), boolean chains 2, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Image.php"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"e56d4f5db82ce8b21d931d731989d4302fa6a50a5ca6368ca9a30b431d7670ed"}},{"ruleId":"D2","level":"warning","message":{"text":"GridTracks.track (cognitive 26): GridTracks.track has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, ternaries 2 (3 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Waf/Css/GridTracks.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac126688f691b7f73ad9b07b1fae81477f2a1cc394ea65fbff478481cf1a6f4"}},{"ruleId":"D2","level":"warning","message":{"text":"KTUtil.slide (cognitive 26): KTUtil.slide has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 6, ternaries 1 (nesting depth added 6). Of this number, 22 points are the body\u0027s own statements and 4 belong to 10 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":"assets/admin/js/menu.js"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"35476e2eda82948362a9f23f0d9e7884d5ef949ba07de29a9645e16c8d89a5a8"}},{"ruleId":"D2","level":"warning","message":{"text":"sanitizeHtml (cognitive 26): sanitizeHtml has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 5, ternaries 2, error handling 1 (nesting depth added 3). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 4 function items inside it that branch (a function literal at line 56, a function literal at line 71, cleanUrl, \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":"assets/user/controller/user/ticket.detail.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c9c258b5ff87d853ec135e98deafe220fda4af6c90fb23ca05885e5c36c8a8b"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 26): render has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 7 (12 pts), boolean chains 7, if/else 6 (7 pts) (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 11 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":"assets/user/controller/security/ipwhitelist.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a46b40bcb47ef753b2aeb638511cee9c5d6fb174de5a1f27d2ff2f69baba24cf"}},{"ruleId":"D2","level":"warning","message":{"text":"runMode (cognitive 26): runMode has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (5 pts), ternaries 1 (4 pts), boolean chains 2 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1211}}}],"partialFingerprints":{"codehealthFindingId/v1":"e24663e1054bbda1cf85503c37611d0c518954421750b7f634e856604407c791"}},{"ruleId":"D2","level":"warning","message":{"text":"highlightWorker (cognitive 26): highlightWorker has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, loops 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 8). Most of this is not in the body itself: 2 of the 26 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 3998, 4027). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3991}}}],"partialFingerprints":{"codehealthFindingId/v1":"6063d57e9121ebc9806cba8802fda3febe3c0843ce9dfb2214c4a1ab83fc65ef"}},{"ruleId":"D2","level":"warning","message":{"text":"renderCardSubtitle (cognitive 26): renderCardSubtitle has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 9, ternaries 1 (2 pts), error handling 1 (nesting depth added 5). Of this number, 25 points are the body\u0027s own statements and 1 belongs 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":655}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eb6fbf537cfad91069a07336bfa7ba332a5f4f91cd894644d5f653df81bcc3e"}},{"ruleId":"D2","level":"warning","message":{"text":"validateCompose (cognitive 26): validateCompose has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16, boolean chains 6, ternaries 2 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/message.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2ae4e9c5988e253100650c7f4cecd8661773dd3ea0da5c75cc1c0125bb4c9b4"}},{"ruleId":"D2","level":"warning","message":{"text":"Form.disposeControl (cognitive 25): Form.disposeControl has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (12 pts), error handling 2 (5 pts), boolean chains 4, ternaries 2 (3 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"9575fa6a294cce62cff29297637a9832988efbe0533a694fd197b507b4aa21f7"}},{"ruleId":"D2","level":"warning","message":{"text":"Form.destroy (cognitive 25): Form.destroy has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 12, if/else 6 (7 pts), error handling 3 (5 pts), ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 2076, 2041, 2051, \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":"assets/common/js/component/form.js"},"region":{"startLine":2035}}}],"partialFingerprints":{"codehealthFindingId/v1":"2edb0ceb1a1681af18b54f7b82a953a70823b93e05e453b0422865e697d85d4e"}},{"ruleId":"D2","level":"warning","message":{"text":"Loading.show (cognitive 25): Loading.show has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 5 (12 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/loading.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc02c1a21b0c095383830d69041d60a3a9aa23e4a2e8a1efb57f7e3b3ab3d52"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.alignHorizontally (cognitive 25): codemirror.alignHorizontally has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 2 (5 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4281}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd81e2ea80fd107433f8f0700a972cbe2c4d9c6aba238e970ec6e97e951e82f5"}},{"ruleId":"D2","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).expressionInner (cognitive 25): javascript.CodeMirror.defineMode(\u0022javascript\u0022).expressionInner has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 4 (7 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"80eea99c5d3000f1a03b8ca8f57a3ac0b3bc857ea217853be063215c46b55288"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.siteBaseUrl (cognitive 25): Message.siteBaseUrl has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 8, ternaries 2 (4 pts), error handling 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ee91f833ebf9017d688fa5ee6baecd41b27341574166335f126edef9b5d78c5"}},{"ruleId":"D2","level":"warning","message":{"text":"Ticket.visibleCommodityQuery (cognitive 25): Ticket.visibleCommodityQuery has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (17 pts), loops 3 (4 pts), boolean chains 2, error handling 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"20712b787dec4a367b7329f126e023ddcb7049bb6577111e2f36e2136c768ae6"}},{"ruleId":"D2","level":"warning","message":{"text":"Shadow.layer (cognitive 25): Shadow.layer has cognitive complexity 25 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 6 (10 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Waf/Css/Shadow.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3659838652f5bf8d28c04f4b4da05eb0aedbb4b07e94a28e6eca6c0df1c007"}},{"ruleId":"D2","level":"warning","message":{"text":"updateLineGutter (cognitive 25): updateLineGutter has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 4, ternaries 2 (4 pts), loops 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"319a0ec0d1c05db454a6af40b1f24698eea72b797b9b50e02429d99447582118"}},{"ruleId":"D2","level":"warning","message":{"text":"scrollPosIntoView (cognitive 25): scrollPosIntoView has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 4 (8 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3455}}}],"partialFingerprints":{"codehealthFindingId/v1":"934d7e9cdbd28c0b82ca56d80425c616dfea93be5ba94be39c5aaee01896f217"}},{"ruleId":"D2","level":"warning","message":{"text":"patchDisplay (cognitive 25): patchDisplay has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 3 (5 pts), boolean chains 4 (nesting depth added 10). Of this number, 22 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4225}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ce736ae67829a0cf63cd82d59619874494d7a55ffac3dd49b718565971b0f96"}},{"ruleId":"D2","level":"warning","message":{"text":"locateNodeInLineView::find (cognitive 25): locateNodeInLineView::find has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 4 (13 pts), if/else 2 (7 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9301}}}],"partialFingerprints":{"codehealthFindingId/v1":"45476659d8aea5626736ca2dd5a98be78540dbf7fccc77219fd16bdd1414acca"}},{"ruleId":"D2","level":"warning","message":{"text":"#openColumnDetail (cognitive 25): #openColumnDetail has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 4, ternaries 4, other 2 (nesting depth added 6). Most of this is not in the body itself: 10 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 447, a function literal at line 457, a function literal at line 460, \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":"assets/common/js/component/table.js"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"80d1557dae48afeb6991618d0b9bc9d1f6ec98bb94134287a2bdbdb35ad70cdc"}},{"ruleId":"D2","level":"warning","message":{"text":"mobileAccountSubmit (cognitive 25): mobileAccountSubmit has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 9, if/else 8, other 4, ternaries 4. Most of this is not in the body itself: 0 of the 25 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 47, a function literal at line 95, (anonymous)::(anonymous)::done, \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":"assets/admin/controller/user/index.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"66f67841f14122668836935a5456b559431f8617bb8ac65b1b7369b37c6c0e8a"}},{"ruleId":"D2","level":"warning","message":{"text":"mobileDeliverySubmit (cognitive 25): mobileDeliverySubmit has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 11, if/else 7, ternaries 4, other 3. Most of this is not in the body itself: 0 of the 25 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 66, a function literal at line 104, (anonymous)::(anonymous)::done, \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":"assets/admin/controller/trade/order.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f74ed907f268411ea248bf7385020a10aece470eacaa9f66f060ae5fd1a9816"}},{"ruleId":"D2","level":"warning","message":{"text":"sanitizePluginDisplayHtml (cognitive 25): sanitizePluginDisplayHtml has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3, ternaries 3, other 2 (nesting depth added 5). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to 4 function items inside it that branch (a function literal at line 59, normalizeColor, walk, \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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a58c9763c3ae3da0ee26eda8d5ea68da688ccc0eca45a0c5cab35be13c90231"}},{"ruleId":"D2","level":"warning","message":{"text":"_Save (cognitive 25): _Save has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 7, other 1 (nesting depth added 1). Most of this is not in the body itself: 0 of the 25 points are its own statements and the rest belongs to 7 function items inside it that branch (submitSettings::done, submitSettings, guardDesktopPjaxLeave, \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":"assets/admin/controller/config/index.js"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb72a7ac3206f56962729975044d95be37c74c11f40d63c544d57954c67a8d73"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).expressionInner (cognitive 25): (anonymous).expressionInner has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (14 pts), ternaries 4 (7 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":430}}}],"partialFingerprints":{"codehealthFindingId/v1":"3acf78a215b2507b8965bf013f27326db05bf3f77ec0feb8d6ec1032d700d8ac"}},{"ruleId":"D2","level":"warning","message":{"text":"set.saveSettings (cognitive 24): set.saveSettings has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12, boolean chains 11, ternaries 1. Of this number, 14 points are the body\u0027s own statements and 10 belong to 4 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/manage/set.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69ec7fbc9c4746693c63585935d21048fcf50255372c099bad65657b94403b5"}},{"ruleId":"D2","level":"warning","message":{"text":"card.uploadCard (cognitive 24): card.uploadCard has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (12 pts), loops 3 (10 pts), boolean chains 2 (nesting depth added 10). Most of this is not in the body itself: 0 of the 24 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 130, 166, 204, \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":"assets/admin/controller/trade/card.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"df48a390cc962c87dc98070d2b9578d429e114f539e2ebda8fc9d44aa4478cba"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.security (cognitive 24): Config.security has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (17 pts), ternaries 3, error handling 2, boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"8026e5549ec02a61bc9cd0982c5cfea6fb1fe6f358fc4274dd070e70629efb19"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.sharedDomain (cognitive 24): Store.sharedDomain has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 13, if/else 7, ternaries 4. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff79f3a12b1a6d26954222c008513173cb85b858a03b3bcc3b45c85200c6384"}},{"ruleId":"D2","level":"warning","message":{"text":"Cash.submit (cognitive 24): Cash.submit has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Cash.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f3e1f026887a4deca73017f2cf10d61f17fe636d835a8c4ff3bb39ca40903b"}},{"ruleId":"D2","level":"warning","message":{"text":"Coupon.save (cognitive 24): Coupon.save has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3, error handling 1 (2 pts), loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Coupon.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a604c2eb412f14eb5dbb98be528249e28883badc626b56404a806946be70c0a"}},{"ruleId":"D2","level":"warning","message":{"text":"File.copyDirectory (cognitive 24): File.copyDirectory has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 3, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/File.php"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"389ac1ecd7c249c44301dc821104046ce3e62f234d4d0bf5a78b6d87fe0f807c"}},{"ruleId":"D2","level":"warning","message":{"text":"bidiSimplify (cognitive 24): bidiSimplify has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 7 (9 pts), boolean chains 6 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7613}}}],"partialFingerprints":{"codehealthFindingId/v1":"625b315db65d493f1d75bf10eb871242b41b2763c605491c8dd3bdfbe5579e4a"}},{"ruleId":"D2","level":"warning","message":{"text":"defineOptions (cognitive 24): defineOptions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (12 pts), ternaries 5 (6 pts), boolean chains 4, loops 2 (nesting depth added 3). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 29 function items inside it that branch (a function literal at line 7774, option, a function literal at line 7743, \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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7708}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e3e5746a3ebab4fa7d8f3e5fc672323987c7a6cd10ff8adcff29b14800488c"}},{"ruleId":"D2","level":"warning","message":{"text":"menuContent (cognitive 24): menuContent has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 9, ternaries 5 (nesting depth added 1). Of this number, 18 points are the body\u0027s own statements and 6 belong to 6 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/navigation.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"b287f8919a0646af28d43bfe2b656a2cca72dbc8fcc2576eba22428683271294"}},{"ruleId":"D2","level":"warning","message":{"text":"lifecycle.mount (cognitive 23): lifecycle.mount has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/lifecycle.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a22cf88a6ca8a7f1a1a5b369fcab4738e8088b7b349472d7af97979330ca14"}},{"ruleId":"D2","level":"warning","message":{"text":"navigation.handleClick (cognitive 23): navigation.handleClick has cognitive complexity 23 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 4 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":"assets/admin/js/mobile/navigation.js"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce0c6376ae023ceb415135c877289f56dca321f89ad9af18d9fdf5a476611e36"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.normalizeKeyMap (cognitive 23): codemirror.normalizeKeyMap has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (18 pts), loops 3 (5 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":6774}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecb4bcd8a00f4586e20d577ffb83e4aeeba95f19ebcdee3cefd485cdf9a76227"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.onMouseDown (cognitive 23): codemirror.onMouseDown has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 4, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7335}}}],"partialFingerprints":{"codehealthFindingId/v1":"dce0debb025825fc02d04a1c8d2d9e424ff76acd116cc3cea35a3f2cdb7c17e0"}},{"ruleId":"D2","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).maybeoperatorNoComma (cognitive 23): javascript.CodeMirror.defineMode(\u0022javascript\u0022).maybeoperatorNoComma has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 4, ternaries 3 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff4b442f5bee7c0e4729d8cd82069327602cb3bc6c2ab36239539646f01931f"}},{"ruleId":"D2","level":"warning","message":{"text":"Card.edit (cognitive 23): Card.edit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 6, loops 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"8091287c27c622b070c555563125bf5fa44784fc7e526d6fb6d060e665943575"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.save (cognitive 23): Store.save has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6, ternaries 3, error handling 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":889}}}],"partialFingerprints":{"codehealthFindingId/v1":"1106b8e3f482d95b8411fbeb16793c412271cddeba8e0dad6ab010a0eac6169a"}},{"ruleId":"D2","level":"warning","message":{"text":"Commodity.inventory (cognitive 23): Commodity.inventory has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 2 (6 pts), error handling 1 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Shared/Commodity.php"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f026dea70e5b138ca22ca73194f25a8d0c6e3de9f516725ede5ce1b682b8895"}},{"ruleId":"D2","level":"warning","message":{"text":"Master.setCommodity (cognitive 23): Master.setCommodity has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Master.php"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c1804f32a570dcec8827d20858d2d9ebbb2bb8ce5514d3d32067af86bda5916"}},{"ruleId":"D2","level":"warning","message":{"text":"Pay.savePluginConfig (cognitive 23): Pay.savePluginConfig has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 3 (5 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Pay.php"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4db4848728280e31879f73dd54b00ef846c73231659e510ab8511d06da93df"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.headerIpCandidates (cognitive 23): Client.headerIpCandidates has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Client.php"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9dfe2e3e1c1e661f911ea1e4dae0ffcd7098ff9de80b9c20636b163ea660a94"}},{"ruleId":"D2","level":"warning","message":{"text":"Csp.extraSources (cognitive 23): Csp.extraSources has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 5 (9 pts), boolean chains 2, error handling 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Csp.php"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bf68ec49517199f7d5d0fd907b0cc33b1d0c376aae422b11437503dc80728b"}},{"ruleId":"D2","level":"warning","message":{"text":"Lang.mapTag (cognitive 23): Lang.mapTag has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 3 (10 pts), if/else 5 (9 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"19b7cc679beda6a839e14a38dba7e7095b2fe57b44db4344e15775b68e805d72"}},{"ruleId":"D2","level":"warning","message":{"text":"Lang.transObjectList (cognitive 23): Lang.transObjectList has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 6, loops 2 (3 pts), ternaries 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":1051}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba05e9d2214c9941ecf724b6525e9a2e0935b0ccc308ca271984fa55307c1598"}},{"ruleId":"D2","level":"warning","message":{"text":"sanitizeRichHtml (cognitive 23): sanitizeRichHtml has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 4, other 1 (nesting depth added 3). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 3 function items inside it that branch (a function literal at line 56, a function literal at line 72, walk). 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":"assets/common/js/component.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9dcfd326dbb0efd263604a33fab2e9ec1a65a8ac4b6f996de668c67ed3a0e58"}},{"ruleId":"D2","level":"warning","message":{"text":"markedSpansBefore (cognitive 23): markedSpansBefore has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 3 (11 pts), boolean chains 6, if/else 2 (4 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1340}}}],"partialFingerprints":{"codehealthFindingId/v1":"749b9cd59a3d792edd47362ea14642c5a779f6a81e500f1738c9b26da6e9ae63"}},{"ruleId":"D2","level":"warning","message":{"text":"calculateScrollPos (cognitive 23): calculateScrollPos has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 7 (11 pts), if/else 9 (10 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3499}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f404f00b220d100d757ed264b78828ea6cfe34ca22975e38c3057fb47e7d21"}},{"ruleId":"D2","level":"warning","message":{"text":"endOperation_finish (cognitive 23): endOperation_finish has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3910}}}],"partialFingerprints":{"codehealthFindingId/v1":"392c13aca3326ae4f7a4e0be088c11c78365217d3b852e1228673da3dd915d9e"}},{"ruleId":"D2","level":"warning","message":{"text":"CodeMirror (cognitive 23): CodeMirror has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 6, loops 2, ternaries 1 (nesting depth added 2). Of this number, 20 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7883}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb5cb5571d886e8ff7b565139bb75f3d227b158e728c93f7d05bc637868c68fe"}},{"ruleId":"D2","level":"warning","message":{"text":"domTextBetween::walk (cognitive 23): domTextBetween::walk has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9224}}}],"partialFingerprints":{"codehealthFindingId/v1":"468b9746bb4ee1619075dca4689e6415c2671a78885887eae39900a01e9d2c42"}},{"ruleId":"D2","level":"warning","message":{"text":"poll (cognitive 23): poll has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10, loops 1, ternaries 1 (nesting depth added 2). Of this number, 18 points are the body\u0027s own statements and 5 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9548}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe0513e2e1a8c23624842cd861768a4858f5a3f86c60ea95da1cd616d8798ac2"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::setParentNodeCheckBox (cognitive 23): (anonymous)::(anonymous)::setParentNodeCheckBox has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 7, loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2512}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c454fbe8b800c0e05cfa46cc7b2e5a2fa5f0a601c1514643a999d478f837189"}},{"ruleId":"D2","level":"warning","message":{"text":"definitionValue (cognitive 23): definitionValue has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 9, error handling 3 (6 pts), if/else 5, ternaries 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bfacbc88c8c4c93ab2d89963943cc70db42e4397ab363bfe64c1f543a1b5c4"}},{"ruleId":"D2","level":"warning","message":{"text":"cardOfferContent (cognitive 23): cardOfferContent has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), error handling 2 (4 pts), ternaries 3 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"efb05103c09c9bb05554264b98fbd71fa26b6f62d8acb8e137f621ad322ed772"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach (cognitive 23): (anonymous).attach has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 7, ternaries 3 (nesting depth added 1). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 1290, 1278, 1287, \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":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ec9dbb923fe88b65b4ef36b4f88fedac6f40da9a2573c4211c87c2a213e0b1"}},{"ruleId":"D2","level":"warning","message":{"text":"renderChannels (cognitive 23): renderChannels has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (14 pts), ternaries 6, boolean chains 3 (nesting depth added 3). Most of this is not in the body itself: 10 of the 23 points are its own statements and the rest belongs to 18 function items inside it that branch (a function literal at line 573, syncToggle, a function literal at line 566, \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":"assets/admin/controller/dashboard/index.js"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57be7e786177d53cce40a3621ead2e65f81356110450424645c7482fed66525"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).maybeoperatorNoComma (cognitive 23): (anonymous).maybeoperatorNoComma has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 4, ternaries 3 (4 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"6976b05337afdd3093f5ce11cbbddb2dfe42cfc42010b1506d3e8730370006fe"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).atBlock (cognitive 23): (anonymous).atBlock has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (15 pts), ternaries 2 (5 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"29e0a1500d410e5375d13cc9d5ea72c768d1599bd6576af0df00f5c418407e0b"}},{"ruleId":"D2","level":"warning","message":{"text":"findMatchingClose (cognitive 23): findMatchingClose has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (4 pts), boolean chains 3, ternaries 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/xml-fold.js"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"06081ee0a8d2d78a968cfacb569f05b3b1f2ce38bff9a3635fd467884aa3766b"}},{"ruleId":"D2","level":"warning","message":{"text":"ticket.sanitizeRichHtml (cognitive 22): ticket.sanitizeRichHtml has cognitive complexity 22 (threshold 15). Drivers by points: if/else 15 (18 pts), boolean chains 4 (nesting depth added 3). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 117, 132). 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":"assets/admin/controller/user/ticket.js"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"a69a9245af099076d796aa18f945564bb815fd8739b5936f30051244ec51d178"}},{"ruleId":"D2","level":"warning","message":{"text":"fallback.cardActionIcon (cognitive 22): fallback.cardActionIcon has cognitive complexity 22 (threshold 15). Drivers by points: if/else 19, boolean chains 2, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1777}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c6d4b78882e4af6409303de274c45c3ea6ddca42490cc8c574a23046234293"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.mount (cognitive 22): workflows.mount has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 9, ternaries 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 1342, 1327, 1323, \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":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e971ff780c5e70269877856cff975ca4afa4f5157074bb3d2e5455336068cc3"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.triggerElectric (cognitive 22): codemirror.triggerElectric has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8204}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe244409c3e72070feeb578ac738ea23f56ce4c39134052a1f0025792499166d"}},{"ruleId":"D2","level":"warning","message":{"text":"xml-fold.findMatchingOpen (cognitive 22): xml-fold.findMatchingOpen has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/xml-fold.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e4c2576b824dde390de65d6c00deea8d5ad57b37ea81fb8c0d12fbd7731062c"}},{"ruleId":"D2","level":"warning","message":{"text":"File.data (cognitive 22): File.data has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 8 (16 pts), boolean chains 4, if/else 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/File.php"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"c399657f8c4d5698f0eb15bce2793c74ec8ed15b29fb3230098b3d7dc558edad"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.remoteItemTree (cognitive 22): Store.remoteItemTree has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), boolean chains 4, error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a7cb169f649a138b4eefe00d437dcfbe180f72f422f2e6df5d57cd72c424316"}},{"ruleId":"D2","level":"warning","message":{"text":"Commodity.inventoryState (cognitive 22): Commodity.inventoryState has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Shared/Commodity.php"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0137ca1e8a7b1400bdae7d729a0e443cfbc7a377ac46d729793f4f76d6eafc"}},{"ruleId":"D2","level":"warning","message":{"text":"Order.callbackTest (cognitive 22): Order.callbackTest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 6, error handling 1, loops 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Order.php"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"e35aed478fc67a519561c2adec86ac86ab24f7f275d1d3437067eefabd46a92f"}},{"ruleId":"D2","level":"warning","message":{"text":"Bill.create (cognitive 22): Bill.create has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (14 pts), ternaries 3 (5 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/Bill.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee7204b0be0f96ebfa92004240ce5815fec6b610eaf6f60efbc4575dc6c452f"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.cleanContent (cognitive 22): Message.cleanContent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 7, loops 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d03072447ca49aed6ff1a96d00a2c317a2599ba1bea7494f6132586bae59382"}},{"ruleId":"D2","level":"warning","message":{"text":"Shop.getItemStock (cognitive 22): Shop.getItemStock has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 1 (4 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shop.php"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f4d6fdbd0738e85cc903cedc4b99a2ff47a9a8fd3cc3090f4261ff31af2e27"}},{"ruleId":"D2","level":"warning","message":{"text":"Ticket.cleanContent (cognitive 22): Ticket.cleanContent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5, loops 2, ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":750}}}],"partialFingerprints":{"codehealthFindingId/v1":"c97b39c9f0b4f951bcb2bdcd0f80642407fb6e6ba2818682558c74e4703f9aa7"}},{"ruleId":"D2","level":"warning","message":{"text":"CategoryTree.forAdmin (cognitive 22): CategoryTree.forAdmin has cognitive complexity 22 (threshold 15). Drivers by points: loops 5 (7 pts), boolean chains 5, if/else 4 (5 pts), ternaries 3 (5 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":"app/Util/CategoryTree.php"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"b771e6b2fe8b6fd47fd084d77bdf58cd4db38c628e172485977d9706707806cd"}},{"ruleId":"D2","level":"warning","message":{"text":"armAutofill (cognitive 22): armAutofill has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7, error handling 2 (4 pts) (nesting depth added 4). Of this number, 21 points are the body\u0027s own statements and 1 belongs to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/auth/login.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18415edc8b07fda00bcbeaf0ab2f5f5ca5477f253f6e7f1e31f2d97528bab77"}},{"ruleId":"D2","level":"warning","message":{"text":"findPosH::moveOnce (cognitive 22): findPosH::moveOnce has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 3 (8 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8719}}}],"partialFingerprints":{"codehealthFindingId/v1":"0518ed0b2fb469a94f541d768df17c3ffc4ba3c96c516fd7789f3379a06cabd7"}},{"ruleId":"D2","level":"warning","message":{"text":"change (cognitive 22): change has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (10 pts), boolean chains 1 (nesting depth added 13). Most of this is not in the body itself: 1 of the 22 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 594, 591). 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":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce2ae7b708c40e5f719d7ea1fb00d4acfebe9070623e95a9303046a92d3e27f"}},{"ruleId":"D2","level":"warning","message":{"text":"index.confirmFileDelete (cognitive 21): index.confirmFileDelete has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 16, if/else 5. Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 114, 148, 152). 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":"assets/admin/controller/file/index.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e92c0b105ac4c479193e24e4bdffb539189fed6d27cde5df94a112c615d952f"}},{"ruleId":"D2","level":"warning","message":{"text":"store.modal (cognitive 21): store.modal has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 6, ternaries 4 (5 pts) (nesting depth added 1). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1293, 1287, 1299, \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":"assets/admin/controller/shared/store.js"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3c2d4db92b44823c896299b63f1a3227f918125628d68e106015c0dce23c8bf"}},{"ruleId":"D2","level":"warning","message":{"text":"coupon.$(\u0022.btn-app-export\u0022).off().on() (cognitive 21): coupon.$(\u0022.btn-app-export\u0022).off().on() has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 7 (8 pts), error handling 1, ternaries 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"765102f2b34115f74136673877788947414b53c30a01886ea7f9b200adb54a0e"}},{"ruleId":"D2","level":"warning","message":{"text":"shell.handleClick (cognitive 21): shell.handleClick has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 7). Of this number, 15 points are the body\u0027s own statements and 6 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":"assets/admin/js/mobile/shell.js"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"dca7d543def9cf23189aa783dfb74fbdccbea548448e514feb2931f1c4e842f7"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.discoverActions (cognitive 21): workflows.discoverActions has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 9, error handling 1. Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 985, 1003, 975, \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":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":973}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd70f694d5a9be28337f658575b975a3dba4373e15657ae6ea1c1fc94cc85876"}},{"ruleId":"D2","level":"warning","message":{"text":"Commodity.data (cognitive 21): Commodity.data has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"a894aad9fa4d5ecc9854ac7bb5f8d43150c90c3d228d79e93adfb4ec8e29f8f7"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.emailFailureMessage (cognitive 21): Config.emailFailureMessage has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, ternaries 5 (7 pts), if/else 3 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e994f052f4fcca1d0e7413156bd6bb78d88b5662e1c925183de5f878ab94591"}},{"ruleId":"D2","level":"warning","message":{"text":"Pay.paymentDeleteImpact (cognitive 21): Pay.paymentDeleteImpact has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (8 pts), loops 2 (3 pts), ternaries 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Pay.php"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"895980167c39e97f700cab1b856951dc15b2b74bb8b3cd9589671dfea3068a34"}},{"ruleId":"D2","level":"warning","message":{"text":"PriceTemplate.computePrice (cognitive 21): PriceTemplate.computePrice has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 8, boolean chains 2, loops 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":"app/Controller/Admin/Api/PriceTemplate.php"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"505ba67d31f411b42f9a87b4baacac74eeabf769af9769c39fd06da011115143"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.index (cognitive 21): Config.index has cognitive complexity 21 (threshold 15). Drivers by points: if/else 4 (12 pts), ternaries 4 (6 pts), loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Config.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9c6dfad51a461be52c5beb3ccf93328307e779080fecf683b40f7ba0b3545a"}},{"ruleId":"D2","level":"warning","message":{"text":"Plugin.wikiRes (cognitive 21): Plugin.wikiRes has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7, loops 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":"app/Controller/Admin/Plugin.php"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b17b596081f3197a8a4cacd841a60c64b6e5bec89b0a5187a771f313db9c637"}},{"ruleId":"D2","level":"warning","message":{"text":"Authentication.password (cognitive 21): Authentication.password has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":536}}}],"partialFingerprints":{"codehealthFindingId/v1":"af637e688c90da84cad1110d6bf269e6ec3a79a32061eacb5025f2a2e2e195dd"}},{"ruleId":"D2","level":"warning","message":{"text":"Business.saveConfig (cognitive 21): Business.saveConfig has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Business.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"86c306c3937bb645101d5cb91e55f19a5a463d4720e54cc839fbf56377330a2c"}},{"ruleId":"D2","level":"warning","message":{"text":"CommodityLang.widget (cognitive 21): CommodityLang.widget has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (5 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/CommodityLang.php"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1943d0bf5c110c68675e768f624c47daa646c44b2e5876c413cfa5beee7322"}},{"ruleId":"D2","level":"warning","message":{"text":"PluginPacker.pack (cognitive 21): PluginPacker.pack has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/PluginPacker.php"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c1e71f7c9bf16d1a874d2c27bd34e4bc227db55ec4af54f1c04d43c2886f02"}},{"ruleId":"D2","level":"warning","message":{"text":"UploadPurge.inspectUploadPath (cognitive 21): UploadPurge.inspectUploadPath has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 7, loops 2, ternaries 2 (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":"app/Util/UploadPurge.php"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"e97dc579d3d862f7c759fa752ec3db4dcb6094200ebad115e823ebf8e9850817"}},{"ruleId":"D2","level":"warning","message":{"text":"ViewSafe.walk (cognitive 21): ViewSafe.walk has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), ternaries 3 (6 pts), boolean chains 4, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/ViewSafe.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f0e67a8a14e420ad09d1604f3c50c173da6539ecf46256d37a4a668d3177e0"}},{"ruleId":"D2","level":"warning","message":{"text":"Di.inject (cognitive 21): Di.inject has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (21 pts) (nesting depth added 13). 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":"kernel/Container/Di.php"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ddcea9e6c9ce180735cb4902d249a1016d4d1205c11ee580200bac1a89accf1"}},{"ruleId":"D2","level":"warning","message":{"text":"Plugin.runHookState (cognitive 21): Plugin.runHookState has cognitive complexity 21 (threshold 15). Drivers by points: if/else 3 (13 pts), loops 3 (8 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Plugin.php"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e4cff3256f3bdd18e8015ba92efa9bd80bb7a5deec3720272441dfdb4a3ee5"}},{"ruleId":"D2","level":"warning","message":{"text":"Tokens.split (cognitive 21): Tokens.split has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3, ternaries 2 (3 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Waf/Css/Tokens.php"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"b82c7602797cd7d74ba96b5a57f6112927bf064c8e60de56d00d10fdc76cf864"}},{"ruleId":"D2","level":"warning","message":{"text":"sanitizeInlineHtml (cognitive 21): sanitizeInlineHtml has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, other 3, ternaries 3, error handling 1 (nesting depth added 2). Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 132, normalizeLink, normalizeColor, \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":"assets/common/js/component.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8d7f71ff7f2a33f90ffc522ce18f3c0b20e5325644dbeb0a5ca355d42f29997"}},{"ruleId":"D2","level":"warning","message":{"text":"addChangeToHistory (cognitive 21): addChangeToHistory has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 6, loops 1 (2 pts), ternaries 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4896}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c75373d8e692fcacd67e88a6400ac3c1ee2f83d46daa353f6dc6d58c9ef7702"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::submit (cognitive 21): (anonymous)::submit has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), ternaries 5, error handling 1, other 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/card.js"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d5ea7aaf4a566fcd6da7c236b777f2617d95b05787266581c5e691e75474e0"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::formatStringFactory::tokenString (cognitive 21): (anonymous)::formatStringFactory::tokenString has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/python/python.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"8420db196405cf2e02edaad3f646f8a62c6d10f39d20332781031f97b62dfb11"}},{"ruleId":"D2","level":"warning","message":{"text":"api.showTestResult (cognitive 20): api.showTestResult has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, ternaries 7, error handling 1 (2 pts), if/else 1 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/pay/api.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7653445ece4dc8ec964d82df39b00962b1194995d394c8bff8d2ecea7a802a5"}},{"ruleId":"D2","level":"warning","message":{"text":"menu.KTScrolltop (cognitive 20): menu.KTScrolltop has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 3 (nesting depth added 4). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 3180, 3158, 3118). 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":"assets/admin/js/menu.js"},"region":{"startLine":3097}}}],"partialFingerprints":{"codehealthFindingId/v1":"20fdc282581ff605251337e1110dd45cbccd9abc2bcbab4c2b0f8386d01769ce"}},{"ruleId":"D2","level":"warning","message":{"text":"overlay.closeTransientInput (cognitive 20): overlay.closeTransientInput has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, ternaries 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"2237140eac34b182d975c549d143b4299e893355c2e71503eca05cdb44c8d9de"}},{"ruleId":"D2","level":"warning","message":{"text":"editorv2.register.destroy (cognitive 20): editorv2.register.destroy has cognitive complexity 20 (threshold 15). Drivers by points: error handling 6 (9 pts), if/else 8, boolean chains 3 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 4 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":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbcbb7eceae57f8fe44a33211b0448a5bf34e77fcc497f25f0063779af14b884"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.makeChangeSingleDocInEditor (cognitive 20): codemirror.makeChangeSingleDocInEditor has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 3 (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5469}}}],"partialFingerprints":{"codehealthFindingId/v1":"651193d2fcaea3ae7a95d13c5d15402716293acaecb8d5ceca24a42f752d27d1"}},{"ruleId":"D2","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).parseJS (cognitive 20): javascript.CodeMirror.defineMode(\u0022javascript\u0022).parseJS has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (9 pts), ternaries 2 (5 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecf2aa7e5882acf1c4103dd489f98e0562a7451cc4bc0438096483ed209e86de"}},{"ruleId":"D2","level":"warning","message":{"text":"Commodity.reorder (cognitive 20): Commodity.reorder has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), loops 8 (10 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":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a6965fb97ee236714ff9dd6541fe5e2642c79fa1a4f9c8c0553145f0dc61da"}},{"ruleId":"D2","level":"warning","message":{"text":"User.changeAccountBalance (cognitive 20): User.changeAccountBalance has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 9. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/User.php"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"baee90098116ddb2eccb350fb87a877b2e670e3cc04417876bbd451c665beeb1"}},{"ruleId":"D2","level":"warning","message":{"text":"Currency.assertConvertNoOverflow (cognitive 20): Currency.assertConvertNoOverflow has cognitive complexity 20 (threshold 15). Drivers by points: if/else 4 (7 pts), loops 3 (4 pts), ternaries 2 (4 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Currency.php"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e4a8211b5d7c8aed82263f1a571465e7f9107eb1a6fe5c1bfb2eefd571a41ad"}},{"ruleId":"D2","level":"warning","message":{"text":"Waf.wafPost (cognitive 20): Waf.wafPost has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 3 (6 pts), loops 2 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Waf.php"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"610fd9836b54525ba7b460ba5fb07648e2198326abd597b9055a8277f98b57b1"}},{"ruleId":"D2","level":"warning","message":{"text":"initTheme (cognitive 20): initTheme has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 5 (6 pts), boolean chains 4 (nesting depth added 5). Most of this is not in the body itself: 4 of the 20 points are its own statements and the rest belongs to 5 function items inside it that branch (apply, resolve, mode, \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":"assets/user/js/glass.js"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c003a49a5796f91e59410f33e11056911ab53d30a0e6d0e7f6f93cd80770a7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::popup::success::(anonymous)::render (cognitive 20): (anonymous)::popup::success::(anonymous)::render has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 13, boolean chains 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/modules/hex.js"},"region":{"startLine":1102}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5fbf93241fefcf3aa1658842e469ac3bca418051066cdc19b906b96cac8cc96"}},{"ruleId":"D2","level":"warning","message":{"text":"hideDropdowns (cognitive 20): hideDropdowns has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (14 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/menu.js"},"region":{"startLine":2361}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3911d58383880b1a30923af23a0f499e0399ad1b90c9baf2421541d2580bb12"}},{"ruleId":"D2","level":"warning","message":{"text":"normalizeSelection (cognitive 20): normalizeSelection has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 4 (12 pts), if/else 2 (5 pts), boolean chains 2, loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4646}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e7f53c61347b6d06c7e1f65f12293393d119d192a2d0c2553b89be596689b7"}},{"ruleId":"D2","level":"warning","message":{"text":"find (cognitive 20): find has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 2 (6 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5905}}}],"partialFingerprints":{"codehealthFindingId/v1":"4469af8f66eab93eae56e1103f6169e0941057c85d8211920213ee90ceb9511f"}},{"ruleId":"D2","level":"warning","message":{"text":"configureMouse (cognitive 20): configureMouse has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (13 pts), if/else 4, boolean chains 3 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7392}}}],"partialFingerprints":{"codehealthFindingId/v1":"99db1c8f5da3eb78161b7dee2a47f40b7a94fd53b885bf6730e02715507f50ab"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::appendNodes (cognitive 20): (anonymous)::(anonymous)::appendNodes has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 7, loops 1, ternaries 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6b18e866ac644800caa228211563d14edfae3ab401bf1f83250c8f0c552ef9"}},{"ruleId":"D2","level":"warning","message":{"text":"keepPageFieldVisible (cognitive 20): keepPageFieldVisible has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 8, if/else 6, ternaries 5 (6 pts) (nesting depth added 1). Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 145). 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":"assets/admin/js/mobile/viewport.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e47bf3662382639e473a089ad9f68999b9fc077682b3d20b600688a62fd9523"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach.treeHtml (cognitive 20): (anonymous).attach.treeHtml has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 3 (6 pts) (nesting depth added 4). Of this number, 17 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":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":389}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e581b8a03ae170fee88850dd57c2208288de0e690bbc7a6c7b6d1e21fee8b7"}},{"ruleId":"D2","level":"warning","message":{"text":"modal (cognitive 20): modal has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 5, other 3, ternaries 2, error handling 1. Most of this is not in the body itself: 0 of the 20 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 116, complete::(anonymous)::change, a function literal at line 127, \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":"assets/admin/controller/shared/priceTemplate.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7276e93dda1c92e0666d3692fde9a6d1d6837581e2591daf54fa58009378f8bb"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).objprop (cognitive 20): (anonymous).objprop has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ac91c8db43f283035f648a3e4863cbb180609f08d65370d9b6896182a0690f2"}},{"ruleId":"D2","level":"warning","message":{"text":"register.destroy (cognitive 20): register.destroy has cognitive complexity 20 (threshold 15). Drivers by points: error handling 6 (9 pts), if/else 8, boolean chains 3 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 4 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":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38d97afbf22a223eda81429c10624e44731c5071106787ce2813a0a3d634cd0"}},{"ruleId":"D2","level":"warning","message":{"text":"store.fitImportPopupHeight (cognitive 19): store.fitImportPopupHeight has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 6, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/shared/store.js"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"218042a2735b010cecafe192c95353eedd6cdb52aa46a11e1ba2482c809acff0"}},{"ruleId":"D2","level":"warning","message":{"text":"store.importTaskLogText (cognitive 19): store.importTaskLogText has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 3 (6 pts) (nesting depth added 3). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 823). 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":"assets/admin/controller/shared/store.js"},"region":{"startLine":821}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b94d78f68ba02bd7726ac22a65da84a46c3b40ff122956355ab72ecb6183d66"}},{"ruleId":"D2","level":"warning","message":{"text":"commodity.confirmCommodityDelete (cognitive 19): commodity.confirmCommodityDelete has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 14, if/else 5. Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 78, 119, 120). 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":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bcecbe9425f829c03a6407887a5e029a92454ad8663e0adc887000f0be551c6"}},{"ruleId":"D2","level":"warning","message":{"text":"coupon.confirmCouponDelete (cognitive 19): coupon.confirmCouponDelete has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 5, ternaries 2 (3 pts) (nesting depth added 1). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 113, 140, 126, \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":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe41cbb261998e207590972a6c122c669098ccc4ebac5fcca6e234eae704872"}},{"ruleId":"D2","level":"warning","message":{"text":"fallback.renderLedgerCard (cognitive 19): fallback.renderLedgerCard has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10, boolean chains 9. 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":728}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6ff567444b44681c502fdb4a40f15ca84fbe8516c4ef8a17c3a38c5482ca65"}},{"ruleId":"D2","level":"warning","message":{"text":"overlay.api.closeAll (cognitive 19): overlay.api.closeAll has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 4 (nesting depth added 5). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1404, 1384, 1395). 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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"42899c6343c8d6fa1fb99a8a22d33c151f5535afcb4b49b53bb84c8f88bd7d13"}},{"ruleId":"D2","level":"warning","message":{"text":"Form.validator (cognitive 19): Form.validator has cognitive complexity 19 (threshold 15). Drivers by points: if/else 3 (10 pts), ternaries 1 (4 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e34be4b5263fe5ede2cd05263727f011e4e89527525a498b8388df400f6b70"}},{"ruleId":"D2","level":"warning","message":{"text":"editorv2.register.alignLine (cognitive 19): editorv2.register.alignLine has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 5 (9 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"214b54f1ecbabe13aafd2dafad619c958c3c928f0e2bca5d3e3487ab51895967"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.getBidiPartAt (cognitive 19): codemirror.getBidiPartAt has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e088b8381f53a4d81bc93124486c72653f24ec402b28a7c82fc1a5a5db2188"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.mergeOldSpans (cognitive 19): codemirror.mergeOldSpans has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), loops 3 (8 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5016}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb017d51b66b64be0c941ccdffa000016f1b440b0c4738a82831a4f3d42386c9"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.TextareaInput.init (cognitive 19): codemirror.TextareaInput.init has cognitive complexity 19 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3 (nesting depth added 1). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 9399, 9365, 9370, \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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9353}}}],"partialFingerprints":{"codehealthFindingId/v1":"75b74ff6732e48eeba730e01a36fa7754f75550b88ca5cf5f901fc3c83cfb288"}},{"ruleId":"D2","level":"warning","message":{"text":"foldcode.doFold (cognitive 19): foldcode.doFold has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 2 (3 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/addon/fold/foldcode.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"97797c814d39d0a9cf7f2d804396a4f5ac798dd32e5fa2a4c068bb22864ff040"}},{"ruleId":"D2","level":"warning","message":{"text":"card.uploadCard (cognitive 19): card.uploadCard has cognitive complexity 19 (threshold 15). Drivers by points: loops 3 (10 pts), if/else 7 (9 pts) (nesting depth added 9). Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 42, 77, 115, \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":"assets/user/controller/business/card.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"59a87e1aa1c80ebcc64206fb9f7c08473584dac422d2a7dc27d0005a6f823d34"}},{"ruleId":"D2","level":"warning","message":{"text":"RechargeOrder.verifyExportToken (cognitive 19): RechargeOrder.verifyExportToken has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 13, if/else 5, error handling 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/RechargeOrder.php"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"f053083a0a3326a3f5cfc2c097957a49cbe52f2cea90d4ad2041c239cbd7b552"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.assertRemoteAssetDestination (cognitive 19): Store.assertRemoteAssetDestination has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 3 (4 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b8a69682786c4805f875e0bcbb368181d468277436098a2261bf2543823c03e"}},{"ruleId":"D2","level":"warning","message":{"text":"Commodity.item (cognitive 19): Commodity.item has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), error handling 1 (4 pts), loops 1 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Shared/Commodity.php"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bdd69274ca5e1572b2a7199ae3ddf1fbc21d150f5a98f1bbcb0f998130a14e"}},{"ruleId":"D2","level":"warning","message":{"text":"Mcp.pluginConfigSet (cognitive 19): Mcp.pluginConfigSet has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (8 pts), ternaries 2 (6 pts), boolean chains 3, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Mcp.php"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"088907fdd6b095bbbe05a07fe9f18dc3163bd4361e2a66ff5dcf1ec4e9e0a021"}},{"ruleId":"D2","level":"warning","message":{"text":"Ticket.normalizeTicket (cognitive 19): Ticket.normalizeTicket has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 13 (14 pts), boolean chains 3, if/else 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":"app/Service/Bind/Ticket.php"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c413adab6422b7c50bfab6cc4558268032010e6026e6f1c233788fd1191b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.normalizeTrustedProxyConfig (cognitive 19): Client.normalizeTrustedProxyConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 1 (3 pts), boolean chains 2, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Client.php"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"108cfb0d388f5328e765b76fce7f30b580bc5295d8496f686e0c7f11bef68443"}},{"ruleId":"D2","level":"warning","message":{"text":"Helper.isInstall (cognitive 19): Helper.isInstall has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Helper.php"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"6022c47323d286edb669fd32822214c7c39ef8de17c407bfc331610ca346af99"}},{"ruleId":"D2","level":"warning","message":{"text":"LinkDomainGuard.allowList (cognitive 19): LinkDomainGuard.allowList has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (4 pts), ternaries 2 (3 pts), error handling 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/LinkDomainGuard.php"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18799bed6a242d1d415d8ba1bbc068a6ef76bf2dfb8ff0aeae3e100d4a31b39"}},{"ruleId":"D2","level":"warning","message":{"text":"Lang.importPackFile (cognitive 19): Lang.importPackFile has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (7 pts), loops 4 (5 pts), boolean chains 3, ternaries 1 (3 pts), error handling 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"18731240c0f0d3942afaa42aef6686eff62c800c0a8bf36e293fc15646409558"}},{"ruleId":"D2","level":"warning","message":{"text":"redactDebugValue::clone (cognitive 19): redactDebugValue::clone has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9, boolean chains 8, error handling 1, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/util.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9be93af81ee7403fc29fb691be80ff23987b7cad501b2ac6cd4294a8c8115f"}},{"ruleId":"D2","level":"warning","message":{"text":"KTUtil.getResponsiveValue (cognitive 19): KTUtil.getResponsiveValue has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), ternaries 1 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/menu.js"},"region":{"startLine":1324}}}],"partialFingerprints":{"codehealthFindingId/v1":"a92f360ec80b8754c7becd281ad3ed095da21438099fa909fd73af39be2d41aa"}},{"ruleId":"D2","level":"warning","message":{"text":"updateSummary (cognitive 19): updateSummary has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 7 (8 pts), if/else 6, boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/recharge.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"66b5d18f7cb9411f528d6c115745563db6687502a67a48fb888486f1a8eb81be"}},{"ruleId":"D2","level":"warning","message":{"text":"save (cognitive 19): save has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, ternaries 4, if/else 3. Of this number, 13 points are the body\u0027s own statements and 6 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/security/ipwhitelist.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"5815b8bd6595a90b1302727c243797713baa6c47dd1e0fa93fbc76106639de2b"}},{"ruleId":"D2","level":"warning","message":{"text":"onKeyDown (cognitive 19): onKeyDown has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 2 (5 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7242}}}],"partialFingerprints":{"codehealthFindingId/v1":"055c8e30b48bd4a9402b25e5e1699c2689f452a47070a0ba6cfe0b3c8a1fb4b8"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach.groupBlocks (cognitive 19): (anonymous).attach.groupBlocks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, loops 1 (nesting depth added 2). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 241, isDescendantOf, a function literal at line 224, \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":"assets/admin/controller/trade/drag-sort.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd2e49aaab5061f92bb52dd11e698c4f0ad4e61da40040d8b0714f85597e22c"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), error handling 1, other 1, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":677}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5306f7838992ee6c8dd469c8fae4de51345a82dbdf0c766bb2ac8366b12de5c"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach.bindHost (cognitive 19): (anonymous).attach.bindHost has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8 (nesting depth added 2). Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 1110, 1125, 1146, \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":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"949a59b3b7fac9f736636d3bfbe5de901527f2cf5073ab6ea047ba9ff7c3cf27"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).confirmDelete (cognitive 19): (anonymous).confirmDelete has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, ternaries 5, if/else 4, other 3. Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 9 function items inside it that branch (done, a function literal at line 63, a function literal at line 23, \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":"assets/admin/controller/trade/category-actions.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9325f3262dea1572bba313991fdbdb6f44013ee835b41b91de57d252c0c2a8b5"}},{"ruleId":"D2","level":"warning","message":{"text":"renderConfigForm (cognitive 19): renderConfigForm has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, error handling 1 (2 pts), other 1 (nesting depth added 3). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 6 function items inside it that branch (renderComplete, renderComplete::pin, a function literal at line 278, \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":"assets/admin/controller/pay/plugin.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e01a1a26a34d67166d0ced46989e768c0751a3674bf8e55ec3131f32dba14ef"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).parseJS (cognitive 19): (anonymous).parseJS has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (9 pts), loops 2 (4 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d375694b5b2acaab33edcebb2429d19787333e96b4d8fc5ca28a0cae9762783"}},{"ruleId":"D2","level":"warning","message":{"text":"register.alignLine (cognitive 19): register.alignLine has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 5 (9 pts), boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"20ed0c0b24e19b6d48eabc20045c97cd6f6142181fa7e313c67d47a48d3658dd"}},{"ruleId":"D2","level":"warning","message":{"text":"Install.html.renderDb (cognitive 18): Install.html.renderDb has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 5 (nesting depth added 4). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1132, 1101, 1104, \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":"app/View/Install.html"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"747e917f7c7e8eb3c9fda56090fe67c5007f26d03fb1719cc08eb8b999757907"}},{"ruleId":"D2","level":"warning","message":{"text":"commodity.uploadCard (cognitive 18): commodity.uploadCard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9, loops 3 (7 pts), boolean chains 2 (nesting depth added 4). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 773, 809, 847, \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":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"d986047735c5efdf04dcf215afa2d02a765d5f1ad7f7ef21ed55f39312bbf2aa"}},{"ruleId":"D2","level":"warning","message":{"text":"fallback.relativeTimeTimestamp (cognitive 18): fallback.relativeTimeTimestamp has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (7 pts), boolean chains 3 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4bf5f5ddc0231654b4348d63facf19d177235c5d4e86f4968e1c31d7da972b0"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.visible (cognitive 18): workflows.visible has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 7, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb9b7a4e1a5cebeae3107dc951eb2fabbeeeafc63b8f5c5d23a577fc65286454"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.releasePageHistoryGuard (cognitive 18): workflows.releasePageHistoryGuard has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"c04b0b7731ad230531e940d28b4384df2243d6f6d2ffd626919af1b9c5d6d7b8"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.addControl (cognitive 18): workflows.addControl has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 5 (11 pts), boolean chains 5, if/else 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":947}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed72ba9f4fb91b3734a14073f27c806578ae6bc26cf0f99201889ba6e981e3d"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.prepareSelection (cognitive 18): codemirror.prepareSelection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 3, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3148}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6b39c8093aceb848268f24fb11d45e60a9128baee364f4d6183b0dce36b1fa"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.makeChange (cognitive 18): codemirror.makeChange has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 3, ternaries 1 (3 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5301}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbb83d8022cbea8eadd591c626e5bbc1151e7326068adbf95e88c9b4683078d5"}},{"ruleId":"D2","level":"warning","message":{"text":"foldgutter.updateFoldInfo (cognitive 18): foldgutter.updateFoldInfo has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7 (nesting depth added 4). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 80). 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":"assets/static/codemirror/addon/fold/foldgutter.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e3c0143484b18262e4fef5d48c6bbae575a8729c57172ed04b7092e398488ae"}},{"ruleId":"D2","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).objprop (cognitive 18): javascript.CodeMirror.defineMode(\u0022javascript\u0022).objprop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed50009bec75f332a9b52428ae18bbabca8a295ca19f253178eaa2a76c8ff80f"}},{"ruleId":"D2","level":"warning","message":{"text":"jquery.pjax.pjax (cognitive 18): jquery.pjax.pjax has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 7 (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":"assets/static/jquery.pjax.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"4546e9d4c70abc1e3617f3ea80eceabe7e149547969b0e46b97ffa1a59d41e64"}},{"ruleId":"D2","level":"warning","message":{"text":"coupon.createCoupon (cognitive 18): coupon.createCoupon has cognitive complexity 18 (threshold 15). Drivers by points: loops 3 (10 pts), if/else 6 (8 pts) (nesting depth added 9). Most of this is not in the body itself: 0 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 79, 67, 116). 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":"assets/user/controller/business/coupon.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d78da9c19e907d804438f6d6f91f7e46bab94c8fc13e0fbbad444457a11557e6"}},{"ruleId":"D2","level":"warning","message":{"text":"Order.verifyOrderExportToken (cognitive 18): Order.verifyOrderExportToken has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 12, if/else 5, error handling 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b6e792a5c4e80696c0bd82a4be91912b99c5e845db37dabd76f16ab0fa4d418"}},{"ruleId":"D2","level":"warning","message":{"text":"Install.importLanguagePacks (cognitive 18): Install.importLanguagePacks has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 3 (5 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Install.php"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39e65c21ed1efd227fceba154786002ca9ac77a21d80a987abe6ecfd750e703"}},{"ruleId":"D2","level":"warning","message":{"text":"Commodity.getItems (cognitive 18): Commodity.getItems has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (8 pts), ternaries 1 (4 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Shared/Commodity.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d9d283d7958ee00f4f57e008c287bf888237f3e8d0c062f9bba04e0063834fc"}},{"ruleId":"D2","level":"warning","message":{"text":"Ticket.applyFilters (cognitive 18): Ticket.applyFilters has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"282679a7dd44551a18feb5646e5067dfb73af7fcf3aa9e60f68150f27ae6547a"}},{"ruleId":"D2","level":"warning","message":{"text":"Lang.collect (cognitive 18): Lang.collect has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, ternaries 2 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5a13b4c429363297b3484fa5914b9514053ac893f46d9ab694b6cdf3574f53"}},{"ruleId":"D2","level":"warning","message":{"text":"Gradient.shape (cognitive 18): Gradient.shape has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), boolean chains 4, ternaries 1 (2 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Waf/Css/Gradient.php"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"236fde3b90430fe79ad772009aeaa23c8b70ab5bc5a48d3f4056ebd6b78ebe0c"}},{"ruleId":"D2","level":"warning","message":{"text":"viewCuttingPoint (cognitive 18): viewCuttingPoint has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (10 pts), ternaries 2 (5 pts), loops 2, boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3087}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e2a1c97dff2772334d853628f05e9e4621c2dbade607860ca1d9a712bf4ce06"}},{"ruleId":"D2","level":"warning","message":{"text":"update (cognitive 18): update has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 6 (7 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3646}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed29f310925dec84697110b09b35d78a38c33be5a61226673046431613867fa8"}},{"ruleId":"D2","level":"warning","message":{"text":"updateDisplayIfNeeded (cognitive 18): updateDisplayIfNeeded has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4104}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6fe3a359637691d7ba626fa98d06dfad2d876eb04e8f6987de92c09f6389e33"}},{"ruleId":"D2","level":"warning","message":{"text":"fromTextArea (cognitive 18): fromTextArea has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, error handling 1 (3 pts), ternaries 1 (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 4 belong to 6 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9699}}}],"partialFingerprints":{"codehealthFindingId/v1":"1068d613cf99a94c3b95d661f7cccde845344b773a78a0180516effa4ca191cc"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::_eventProxy (cognitive 18): (anonymous)::(anonymous)::_eventProxy has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2081}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0c51cbe9a62232ba0f122fc42a73d543164d503cacb35b011bdd64ca06156c"}},{"ruleId":"D2","level":"warning","message":{"text":"#mobileDisplayValue (cognitive 18): #mobileDisplayValue has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, if/else 5, ternaries 2 (3 pts), error handling 1 (2 pts), other 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3da85e7d832aef9b3311c65afe1635c55d6b211e729be0cb06c3fdfe9bcaca6"}},{"ruleId":"D2","level":"warning","message":{"text":"copyConfiguredField (cognitive 18): copyConfiguredField has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, boolean chains 6, error handling 2 (3 pts), ternaries 2 (nesting depth added 1). Of this number, 11 points are the body\u0027s own statements and 7 belong to 3 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"af352171c9063f4d6e76dcde4c960d492ee4f4a3f6e7bd168516cbbcffac8ffc"}},{"ruleId":"D2","level":"warning","message":{"text":"updateTreeCollapsePresentation (cognitive 18): updateTreeCollapsePresentation has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (8 pts), boolean chains 5, if/else 5 (nesting depth added 2). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to one function literal inside it that branches (line 2718). 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2716}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb0bf3fe9f5a87726cdae50ea20859003492672a9c5bf5cd3515f6692b070aef"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach (cognitive 18): (anonymous).attach has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 6, ternaries 3. Of this number, 9 points are the body\u0027s own statements and 9 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/drag-sort.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"99ea60133a40fb61f0249814ef6196a3ba5af0d0d6678492bdc1ed584e9207b9"}},{"ruleId":"D2","level":"warning","message":{"text":"change (cognitive 18): change has cognitive complexity 18 (threshold 15). Drivers by points: loops 3 (10 pts), if/else 4 (7 pts), boolean chains 1 (nesting depth added 10). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 481, 478). 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":"assets/admin/controller/trade/card.js"},"region":{"startLine":474}}}],"partialFingerprints":{"codehealthFindingId/v1":"4959ff533d94127c83908a269185150912d9b3b4352ef145020506da02df50a5"}},{"ruleId":"D2","level":"warning","message":{"text":"renderDelta (cognitive 18): renderDelta has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 5 (8 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/dashboard/index.js"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"477950648b79f1dfcb337bb831416f8c123a2ef94f8d5dc11375c3be651cecf6"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).top (cognitive 18): (anonymous).top has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14, boolean chains 4. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eea1ff03dd0b8c0ae0ff0807b445f2158bad3b5d1912efccafe2f46d0ecd2aa"}},{"ruleId":"D2","level":"warning","message":{"text":"lang.langCard (cognitive 17): lang.langCard has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 11 (15 pts), if/else 2 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/config/lang.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcf59daaf9bef09fe5fe26ddfb11a016de034c0f6516f59da04c41e4000c9d2"}},{"ruleId":"D2","level":"warning","message":{"text":"wiki.mobile.destroy (cognitive 17): wiki.mobile.destroy has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/config/wiki.mobile.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e851723d987d3bdcf0691c7b91a2649ec8bbe22ecd6f2535b66198f3eb4680"}},{"ruleId":"D2","level":"warning","message":{"text":"fallback.cardSearchText (cognitive 17): fallback.cardSearchText has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (8 pts), boolean chains 7, if/else 2 (nesting depth added 4). Of this number, 14 points are the body\u0027s own statements and 3 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"96580d9598f136540c3e75c971dd29496005290fb1328cb267f4a971acc2fe14"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.lineIsHidden (cognitive 17): codemirror.lineIsHidden has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (13 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1602}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d42a302a27bff1706fa9eeb3fccac602de5743e01160b0a11ff14444cb1efa"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.postUpdateDisplay (cognitive 17): codemirror.postUpdateDisplay has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4176}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c03b22a3e11947e5765be1475b43f431a4b9c34b6205c300ea51efe92d403bf"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.rebaseHistArray (cognitive 17): codemirror.rebaseHistArray has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (6 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":5554}}}],"partialFingerprints":{"codehealthFindingId/v1":"848aec9422563911036f1770c15072efa9263d6cb74590d3c305f668f31f8c8b"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.leftButtonStartDrag (cognitive 17): codemirror.leftButtonStartDrag has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4 (nesting depth added 3). Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 7425, 7447). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7423}}}],"partialFingerprints":{"codehealthFindingId/v1":"eecda57ea5c58862c7b63747d9469b6bc26ff9cfd6713986e92df99cc7d8b420"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.domToPos (cognitive 17): codemirror.domToPos has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":9261}}}],"partialFingerprints":{"codehealthFindingId/v1":"af636d6d9cc882e64fe914cd1911022a8ebf2362c187018fbb9e48c707a49314"}},{"ruleId":"D2","level":"warning","message":{"text":"javascript.CodeMirror.defineMode(\u0022javascript\u0022).classBody (cognitive 17): javascript.CodeMirror.defineMode(\u0022javascript\u0022).classBody has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd9ba2ae5d47a9d38fb41f4108b863e245239e8b040d3d871275784f45403d5b"}},{"ruleId":"D2","level":"warning","message":{"text":"commodity.safeItem (cognitive 17): commodity.safeItem has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (12 pts), boolean chains 3, if/else 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/business/commodity.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"03519636df57bc877200a493b2e370da43309a157ebbbcf3a46428199c2c4078"}},{"ruleId":"D2","level":"warning","message":{"text":"ticket.create.initRemoteSelect (cognitive 17): ticket.create.initRemoteSelect has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 7, ternaries 3. Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 60, 72, 77, \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":"assets/user/controller/user/ticket.create.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"94c0c9529e882f4656c15bdc1ffdd2308efbf3cfde87b580e3118a8c28ad75dc"}},{"ruleId":"D2","level":"warning","message":{"text":"Category.verifyCategoryDeleteToken (cognitive 17): Category.verifyCategoryDeleteToken has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 6, error handling 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"97100594b9f59860a923373c9e14ef85880868982499e8a6bb2eb447d2169032"}},{"ruleId":"D2","level":"warning","message":{"text":"Store.remoteItem (cognitive 17): Store.remoteItem has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5b438ae7e1eee909547059df5b32d326394ed2275eef90753135fe0bec29e34"}},{"ruleId":"D2","level":"warning","message":{"text":"User.del (cognitive 17): User.del has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 2, loops 2, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/User.php"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4075a826ac9d2c17af5325016d13dfbc886bd1e740ed7c0fb7f85602408169"}},{"ruleId":"D2","level":"warning","message":{"text":"Plugin.wiki (cognitive 17): Plugin.wiki has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 3, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Plugin.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca0e0836bb0eecb075c0e64a2b359f6d4acf7d8928c8f5eda71d51aea150135"}},{"ruleId":"D2","level":"warning","message":{"text":"ManageSSO.login (cognitive 17): ManageSSO.login has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 2, error handling 1, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/ManageSSO.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ee8b8a590173da9d6ac1432d8bdcf7b782f712a984c88a72a79388453fdd150"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.validateImage (cognitive 17): Message.validateImage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"a70d30900be9410fb7c98bb83c987f71e5a1b61f4df31502fe38cea27a58f909"}},{"ruleId":"D2","level":"warning","message":{"text":"Recharge.trade (cognitive 17): Recharge.trade has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 3, match/switch 1 (2 pts), ternaries 2 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Recharge.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef9d64299391a64bc6dc59b53091ffc6e22784391002b7574e091752ea7127b1"}},{"ruleId":"D2","level":"warning","message":{"text":"Ticket.validateImage (cognitive 17): Ticket.validateImage has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1361b6f62407b170b1a6a9d5210062711ba4df1805250f28b944d8e905ffa88"}},{"ruleId":"D2","level":"warning","message":{"text":"FileCache.clearCache (cognitive 17): FileCache.clearCache has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (15 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/FileCache.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3216ecb14a4abb90c94b1f5b76b560214d5e927e30880274a67b3d8d69442d77"}},{"ruleId":"D2","level":"warning","message":{"text":"Ini.toArray (cognitive 17): Ini.toArray has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Ini.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"55884c679a31c9123acd704a7a6cb0d1c3c132af9ae266194ff63cecf2fa2262"}},{"ruleId":"D2","level":"warning","message":{"text":"IgnoreStyleTagFilter.cssHasActiveContent (cognitive 17): IgnoreStyleTagFilter.cssHasActiveContent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Waf/IgnoreStyleTagFilter.php"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"738839f969b05b14d10615b1f6e4364fe98ee9c45cc77eee1ea8959c338ce4d9"}},{"ruleId":"D2","level":"warning","message":{"text":"KTEventHandler._triggerEvent (cognitive 17): KTEventHandler._triggerEvent has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 1 (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/menu.js"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"63976860f7cfb19fb63c769e4ba8f9837d090c44e9188499735854a9e2474082"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 17): (anonymous) has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 2, boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/material.js"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ddd4046cf4ee255e80b485688f22cbb670d22d3aca2b6c4043d5c418bc336f"}},{"ruleId":"D2","level":"warning","message":{"text":"onKeyPress (cognitive 17): onKeyPress has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 6, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7286}}}],"partialFingerprints":{"codehealthFindingId/v1":"db43286f16c6a94c8c79cdd14e8ecb362d26b611dfba81f2b56475d64f646178"}},{"ruleId":"D2","level":"warning","message":{"text":"addEditorMethods::getHelpers (cognitive 17): addEditorMethods::getHelpers has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8388}}}],"partialFingerprints":{"codehealthFindingId/v1":"391e740cda9ff1104bdc6c69efc3e494bcc79144ef303ebee39ac81c6d5aeb59"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::transformTozTreeFormat (cognitive 17): (anonymous)::(anonymous)::transformTozTreeFormat has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (11 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":712}}}],"partialFingerprints":{"codehealthFindingId/v1":"024829bb73ae5c1e771341bc4c8c2af5a6a369a9a765fa7cb225570d420c5bb4"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::asyncNode (cognitive 17): (anonymous)::(anonymous)::asyncNode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), loops 3 (5 pts), boolean chains 3, ternaries 1 (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03540493e49525981655a2b3ccd648160038e65fded9539478891ab0283a710"}},{"ruleId":"D2","level":"warning","message":{"text":"updateViewportVars (cognitive 17): updateViewportVars has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, ternaries 4, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/viewport.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f399abe1cf70cb873467587274eafd5eba0a3be5c872397384abc3c99b694da7"}},{"ruleId":"D2","level":"warning","message":{"text":"openSheet (cognitive 17): openSheet has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 2 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 2 belong to 3 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":829}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d7de763237e186cb99f6a058517a1ef121b10dfb247a064dc5cf29e9216f63c"}},{"ruleId":"D2","level":"warning","message":{"text":"openActions (cognitive 17): openActions has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, ternaries 5, if/else 3. Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 905, 916). 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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ffeaad927124976f1f9e4a71c66eb485e987c1827a502a2b172dd886a0e78b"}},{"ruleId":"D2","level":"warning","message":{"text":"controlAvailable (cognitive 17): controlAvailable has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, if/else 4 (6 pts), loops 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":936}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e2646eef6180c1c81f1560c5c3aefc248e7917e82d5dd1229b8531563b1e3a6"}},{"ruleId":"D2","level":"warning","message":{"text":"renderTreeToggle (cognitive 17): renderTreeToggle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 6, ternaries 2 (nesting depth added 1). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2744}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b863724e2f9887baeb034c14341410d6c7478378588d38d00defc793d7fbbe"}},{"ruleId":"D2","level":"warning","message":{"text":"click (cognitive 17): click has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 6, other 2, ternaries 2. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 427, (anonymous)::success::(anonymous)::(anonymous)::done, a function literal at line 445, \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":"assets/admin/controller/pay/plugin.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5949e237212ed849208fe8622fe4be44ec61f486a07755f311a421f07e7cbf1"}},{"ruleId":"D2","level":"warning","message":{"text":"click (cognitive 17): click has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7, boolean chains 6, other 2, ternaries 2. Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 304, (anonymous)::success::(anonymous)::(anonymous)::done, a function literal at line 322, \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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"06fffbdffc57369e528f674ca2595128accdc80a930ec6d6f32250b7106b12a9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::tokenBase (cognitive 17): (anonymous)::tokenBase has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (12 pts), boolean chains 5 (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":"assets/static/codemirror/mode/python/python.js"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbfb568569188dd128f1c825be7e09d0ef43d2be7679ed774b6fff52f73a66a4"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).classBody (cognitive 17): (anonymous).classBody has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9, boolean chains 8. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"15937fb332d96b746a5096203e1337dcf99273982d5753b66d152ba7bbd9fa83"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).block (cognitive 17): (anonymous).block has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), ternaries 2 (6 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"47efb6ca29454027da5454625dd8b5a2851f29330fbca2ebacc8b2cbc7c8b750"}},{"ruleId":"D2","level":"warning","message":{"text":"other.$(\u0022#currency-convert-btn\u0022).off().on() (cognitive 16): other.$(\u0022#currency-convert-btn\u0022).off().on() has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, if/else 4, ternaries 1. Of this number, 11 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/config/other.js"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"818c4fdee9837176f8fd457b5abdac446bee6daf6c9372e7420efbfd9e052173"}},{"ruleId":"D2","level":"warning","message":{"text":"plugin.$(\u0022.plugin-restart\u0022).click() (cognitive 16): plugin.$(\u0022.plugin-restart\u0022).click() has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 546, 560, 568, \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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38d038302f860fd1482c51e1bb8e26c0162ea9e89e4ca847589098c18bcc5ed"}},{"ruleId":"D2","level":"warning","message":{"text":"home.requestPurchase (cognitive 16): home.requestPurchase has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 7. Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 299, 289, 310, \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":"assets/admin/controller/store/home.js"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a62b111f3ee58fca1676b464bfead02c05ee8394b2da5f147869d7dd0790385"}},{"ruleId":"D2","level":"warning","message":{"text":"fallback.configureShellSearch (cognitive 16): fallback.configureShellSearch has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 2. Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":806}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac4ca86ef303fe188288110d6358aea2d55bf657808d469470d9efae4f7c092"}},{"ruleId":"D2","level":"warning","message":{"text":"fallback.openRecordSheet (cognitive 16): fallback.openRecordSheet has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 6, ternaries 2 (3 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1684}}}],"partialFingerprints":{"codehealthFindingId/v1":"1816ac1af130cfc91dfbe9af3f34dfc84432553bf8b310456d755f62e0686d7d"}},{"ruleId":"D2","level":"warning","message":{"text":"fallback.rebuild (cognitive 16): fallback.rebuild has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 6 (7 pts), error handling 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 3220). 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":3217}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36857b052939cadb6d36b27175b8951df203af8f62930c295009400f9627f84"}},{"ruleId":"D2","level":"warning","message":{"text":"overlay.confirmButtonIcon (cognitive 16): overlay.confirmButtonIcon has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (16 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"23cd62aa7d73b666cde45be3546cd343ecc0cf89d4d27202b27d34ca39736af3"}},{"ruleId":"D2","level":"warning","message":{"text":"overlay.finalize (cognitive 16): overlay.finalize has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6 (nesting depth added 1). 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, 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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"160b3dcac1daae75ba51746f579e753eab8a7c2f07a74abc1f19e98554a2ae43"}},{"ruleId":"D2","level":"warning","message":{"text":"Table.setColumns (cognitive 16): Table.setColumns has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 1 (3 pts) (nesting depth added 10). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 223). 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. This shape REPEATS in the file: one other method here (Table.setSearch) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d329aa5011e1345aec04935995e0f013b5f7eeab8513861871bd0390c8c3f9"}},{"ruleId":"D2","level":"warning","message":{"text":"Table.setSearch (cognitive 16): Table.setSearch has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), loops 1 (3 pts) (nesting depth added 10). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to one function literal inside it that branches (line 558). 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. This shape REPEATS in the file: one other method here (Table.setColumns) has the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written twice rather than two separate problems. Splitting this body alone leaves the other exactly as it is. Where these are variations on one operation, the change that clears both is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba4a80a4ecfb64db2e59aa9fad907dbefb01116942a106c5f7f99c8a9e16a74f"}},{"ruleId":"D2","level":"warning","message":{"text":"Util.fundVerify (cognitive 16): Util.fundVerify has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 5, ternaries 2. Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 371, 389, 416, \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":"assets/common/js/util.js"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"32e2b366335d0760d4e08ce82a96c1037dff2fcbbc4cbbd2a53fa970f315ed3d"}},{"ruleId":"D2","level":"warning","message":{"text":"codemirror.updateDoc (cognitive 16): codemirror.updateDoc has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":4754}}}],"partialFingerprints":{"codehealthFindingId/v1":"a275bd425d56b2c26b396ec4efeea3a9b9954c39b0c1d8db083b243d9dce96ba"}},{"ruleId":"D2","level":"warning","message":{"text":"ticket.create.updateSummary (cognitive 16): ticket.create.updateSummary has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, ternaries 4 (5 pts), if/else 3 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/ticket.create.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0152a07dda9f11f3e8f1b61ee717b645a5a00adb863d5517c7b1a53360ea38"}},{"ruleId":"D2","level":"warning","message":{"text":"ticket.create.submitTicket (cognitive 16): ticket.create.submitTicket has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8, boolean chains 6, if/else 2. Of this number, 10 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/ticket.create.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6ac81078ce37b005f71091eb9296c0d48752f1e5e23f499ebc6d32c6b696fb"}},{"ruleId":"D2","level":"warning","message":{"text":"Cash.decide (cognitive 16): Cash.decide has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Cash.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"30bd96de39b9d16378cad6db297a4ba8cdb1b509e0a8d85060f61a8ad7d33f78"}},{"ruleId":"D2","level":"warning","message":{"text":"Config.configHttpUrl (cognitive 16): Config.configHttpUrl has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, if/else 4, ternaries 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd398524e9e09f237f1d3a5ed19c27c815ab2d2a68a57f7e2fb54151849056cc"}},{"ruleId":"D2","level":"warning","message":{"text":"File.structuredReferenceImpact (cognitive 16): File.structuredReferenceImpact has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 3 (5 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/File.php"},"region":{"startLine":381}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d73639cbb74e09af9877adde8602ce814adc3ae13c7f1d3b35931936abe66b"}},{"ruleId":"D2","level":"warning","message":{"text":"Plugin.setConfig (cognitive 16): Plugin.setConfig has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 2 (3 pts), boolean chains 2, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Plugin.php"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"bde5e9134bb0b6fe593346e96e617e805857006e80664d7da68a0db677dea4b1"}},{"ruleId":"D2","level":"warning","message":{"text":"Commodity.draftCard (cognitive 16): Commodity.draftCard has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (12 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Shared/Commodity.php"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"1566d5ec67b1772ecb107435058ef68c65f5308ce8464783d7ba2471b16eb008"}},{"ruleId":"D2","level":"warning","message":{"text":"Authentication.totp (cognitive 16): Authentication.totp has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4 (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":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":398}}}],"partialFingerprints":{"codehealthFindingId/v1":"251709acf2476c3331dc8e846e62ae77c5868a4b365beebdc90efb0268682113"}},{"ruleId":"D2","level":"warning","message":{"text":"Promote.quote (cognitive 16): Promote.quote has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 2 (5 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Promote.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb09cf0a96ccac0949e352b78a9da827f97598db0efcc4105361e977ba5d0a2"}},{"ruleId":"D2","level":"warning","message":{"text":"Security.personal (cognitive 16): Security.personal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Security.php"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebfed50cd3a41bcb8462a99719a34182e4108f84666e0481474e7a0b8a812439"}},{"ruleId":"D2","level":"warning","message":{"text":"Save.setMap (cognitive 16): Save.setMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (7 pts), boolean chains 6, ternaries 1 (2 pts), loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Entity/Query/Save.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"124ec41d56d71d03eb808ae420c78607cff4881ad71737ab1677ae78ed14e5ff"}},{"ruleId":"D2","level":"warning","message":{"text":"Message.recipientScope (cognitive 16): Message.recipientScope has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 2 (5 pts), loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"419cdb461cb1ef5e9fe79b19d36bbd8071d87b5ddc16ab9c553c1f6fe62ed1a0"}},{"ruleId":"D2","level":"warning","message":{"text":"Pay.redactLogSecrets (cognitive 16): Pay.redactLogSecrets has cognitive complexity 16 (threshold 15). Drivers by points: if/else 3 (8 pts), loops 3 (4 pts), ternaries 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Pay.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d166373b5d6c6221470851dda12bbad0fcb720be12fcf9f9a0d9b896961e63c"}},{"ruleId":"D2","level":"warning","message":{"text":"Shared.unwrapRemoteItem (cognitive 16): Shared.unwrapRemoteItem has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff6ffa6c6cf2f82b36e20cecd9b25c5f57c25361f9df997bb5125d42a51e12a"}},{"ruleId":"D2","level":"warning","message":{"text":"Lang.rebuild (cognitive 16): Lang.rebuild has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (8 pts), error handling 2 (3 pts), loops 2 (3 pts), boolean chains 1, ternaries 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":924}}}],"partialFingerprints":{"codehealthFindingId/v1":"a994d5f5c4315aab2bc68a88189d54f128d09dc12fe92a6ad68b53e713a11abf"}},{"ruleId":"D2","level":"warning","message":{"text":"commoditys (cognitive 16): commoditys has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (7 pts), boolean chains 6, if/else 3 (nesting depth added 2). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 468, 473). 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":"assets/static/acg.js"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1e9dc02c27845ad2497cefd9585a0e659f9b73dbd70f729894f34bba99a9bc1"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::_treeToSelect (cognitive 16): (anonymous)::_treeToSelect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/modules/authtree.js"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ae778a917507754832b1a755dd11d6949df7296240582ed9239b7abe27b682c"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/csp-bind.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"f350bac42fc77e99c7113f9c4c7f8066fe50d9a0fd64b480aebc8dc8936555df"}},{"ruleId":"D2","level":"warning","message":{"text":"openMessage (cognitive 16): openMessage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (nesting depth added 1). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function items inside it that branch (done, error, done::onClose, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/message.js"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"acdf7585652e70c45abc0bcd3c4a9da28ccb371e978b5f93783b6d7398e55418"}},{"ruleId":"D2","level":"warning","message":{"text":"transposeChars (cognitive 16): transposeChars has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (15 pts), loops 1 (nesting depth added 9). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 7085). 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7085}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa63c69f0141ada29de61d00a9b4df57ee4d48fb89f42891bfd00e992a24a1c"}},{"ruleId":"D2","level":"warning","message":{"text":"addEditorMethods::getTokenTypeAt (cognitive 16): addEditorMethods::getTokenTypeAt has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 4 (7 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8362}}}],"partialFingerprints":{"codehealthFindingId/v1":"96e06ddb9ca9bb264b93e7acd2fdd63126e75d42ace127848f8df91cfad6d510"}},{"ruleId":"D2","level":"warning","message":{"text":"addEditorMethods::addWidget (cognitive 16): addEditorMethods::addWidget has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8458}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a644894ca02debebcef93020758c4c3929f87fb5bec41676cdc423fc890ad1c"}},{"ruleId":"D2","level":"warning","message":{"text":"addEditorMethods::findWordAt (cognitive 16): addEditorMethods::findWordAt has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 4, if/else 3 (4 pts), loops 2 (4 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8573}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf0adeedca43d69701163cfa9de8becc8458a8de208ace20bac63e67178e2c1"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::removeNode (cognitive 16): (anonymous)::(anonymous)::removeNode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 2, loops 1, ternaries 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"503f422a6f04f0d79509dc0aa2b98b56c90b8c7e9c36e424914ab59f350eedec"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::makeChkClass (cognitive 16): (anonymous)::(anonymous)::makeChkClass has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (10 pts), if/else 4, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2428}}}],"partialFingerprints":{"codehealthFindingId/v1":"d28b0e5867462b2106e4fe8022517657ee222e961226aa0b42c303f12434f0d9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::(anonymous)::onMousedownNode (cognitive 16): (anonymous)::(anonymous)::onMousedownNode has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, loops 1 (2 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":2921}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cae44fdaeecb3d7342e3932704eaccb6637856b9e3bb2271d02da1956ffd378"}},{"ruleId":"D2","level":"warning","message":{"text":"set (cognitive 16): set has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 3 (6 pts), if/else 4 (5 pts), boolean chains 3, other 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/search.js"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce600bb66dd5db9931d83975455d02d02d98d64bb814f3a83f110fdf83795d2"}},{"ruleId":"D2","level":"warning","message":{"text":"addAttribute (cognitive 16): addAttribute has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4, ternaries 3 (4 pts) (nesting depth added 1). Of this number, 11 points are the body\u0027s own statements and 5 belong to 4 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":603}}}],"partialFingerprints":{"codehealthFindingId/v1":"983c508907093870a88cc8bac580bfb004b966a023e02b1a30191bebbc9e1978"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::_treeToSelect (cognitive 16): (anonymous)::_treeToSelect has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), loops 2, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/authtree.js"},"region":{"startLine":409}}}],"partialFingerprints":{"codehealthFindingId/v1":"920beb96cc95db90b381fc146e8b755e78cf0565a0180bf78002f2f5f2c06634"}},{"ruleId":"D2","level":"warning","message":{"text":"setupSheetDrag::pointerDown (cognitive 16): setupSheetDrag::pointerDown has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 7, error handling 1, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca8e870dd50408cf4217684f4c1f20221fca3918cb5a96f7ba55afca9df0f29"}},{"ruleId":"D2","level":"warning","message":{"text":"setupSheetDrag::pointerEnd (cognitive 16): setupSheetDrag::pointerEnd has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, 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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"93a8e11959ccf024482609a0d27016b4c6aabd02a9840cd1825c364cdee3ff16"}},{"ruleId":"D2","level":"warning","message":{"text":"presentPopup::success (cognitive 16): presentPopup::success has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 3, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"db4c1b4710afefbc5812fa44df781afaff2315678b2113b58fb39561993905a9"}},{"ruleId":"D2","level":"warning","message":{"text":"alignReferenceCards (cognitive 16): alignReferenceCards has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6 (nesting depth added 1). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 62, 60, 78, \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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c532f90bd7821891a2f284cbf541d5c759ea3fbd3d6c85700a8583f628bf0d99"}},{"ruleId":"D2","level":"warning","message":{"text":"compactCardDefinitions (cognitive 16): compactCardDefinitions has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 6, ternaries 1. Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 5 function items inside it that branch (add, addMetrics, a function literal at line 348, \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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea6ecc8b3ef28b070cebeb5e315b03dc752f4eb6ec89e129ba862a63f2e1caf0"}},{"ruleId":"D2","level":"warning","message":{"text":"cardSubtitle (cognitive 16): cardSubtitle has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 7, if/else 5, ternaries 3 (4 pts) (nesting depth added 1). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 606, 607). 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"07a1133ada383d98e4b4d0a832d6d063715c983744ce434b017e019b517b1c82"}},{"ruleId":"D2","level":"warning","message":{"text":"applyRecipePresentation (cognitive 16): applyRecipePresentation has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 4 (8 pts), boolean chains 4, if/else 3 (4 pts) (nesting depth added 5). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 1326). 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"c49f6243fd3196007307dd868bcf41edc48432ff4d10e970ceaf2c6fa03d3911"}},{"ruleId":"D2","level":"warning","message":{"text":"click (cognitive 16): click has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 5, ternaries 3. Of this number, 9 points are the body\u0027s own statements and 7 belong to 4 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/recharge.order.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"875473ef4356a3bc7ebcc49250b9be850cc672c13acfb0338a6c1b93b52f0f8d"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach.nodesHtml (cognitive 16): (anonymous).attach.nodesHtml has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 10, boolean chains 6. Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 366). 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":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"821557a920ac3ec768aab127fd9e157989770eacc2bf275c6435b6601bad3b71"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach.dragPointerMove (cognitive 16): (anonymous).attach.dragPointerMove has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (4 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f62714093b62d9581c1169ad0a18df5f29332d757c0ad4383cb24cabe7040f"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach.endDrag (cognitive 16): (anonymous).attach.endDrag has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11, boolean chains 4, ternaries 1. Of this number, 12 points are the body\u0027s own statements and 4 belong to 6 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"3888056609dc97b2b2ce993f664d9125fd2e00aa6f9196d5c6143c11ff29bcfa"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous).attach.openActions (cognitive 16): (anonymous).attach.openActions has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7, boolean chains 6, if/else 3. Of this number, 12 points are the body\u0027s own statements and 4 belong to 11 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5e5608ab2b818d0d2c376a956a97e428bf77f4389f310686ce896371aa3d8c5"}},{"ruleId":"D2","level":"warning","message":{"text":"importItemRequest (cognitive 16): importItemRequest has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 6, if/else 5, other 2, ternaries 2, error handling 1. Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 965, 949, 998). 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":"assets/admin/controller/shared/store.js"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff4ed9062876acb1b4caaf0e1e4bc380e6e6aeb502a5ea487a7cccdf3126fd98"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 5, if/else 4 (5 pts), error handling 2 (4 pts), ternaries 1 (2 pts) (nesting depth added 4). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 127, 119, 133, \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":"assets/admin/controller/manage/passkey.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d717f7587ad318e26d85e7bd5b7bcea74595a60c2d22459ff44f2bbfdb5e044"}},{"ruleId":"D2","level":"warning","message":{"text":"renderFlow (cognitive 16): renderFlow has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (8 pts), if/else 4 (6 pts), boolean chains 2 (nesting depth added 4). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 472). 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":"assets/admin/controller/dashboard/index.js"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ae49f8fe1177cf3598ed0f7878c602ff2270ac0b64c0dd3e6cfc258b49c478"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2 (nesting depth added 4). Most of this is not in the body itself: 3 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 546, restartPlugins::(anonymous)::(anonymous)::done, restartPlugins::(anonymous)::(anonymous)::done::done, \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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8b0eb37c57c916485a65eb77e284c909e63ece0b600844ea47b57541f000cf9"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, if/else 4, ternaries 1. Of this number, 11 points are the body\u0027s own statements and 5 belong to 8 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/config/other.js"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"353a5615d541b33461257ed1af09ca2da3ba9f5673aee9b1f6cb60e59c972ae2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tree.select.layui.define(): FunctionTooLong \u2014 layui.define() runs 3019 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2919 over it, 30.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d9523b7aa7a8ba3e098ed3a1bb6c955daac57190eb1981499be55d2fd1d050"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/codemirror.js: FileTooLong \u2014 6578 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 5078 over it, 4.39\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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"daff38e446664af9c2ab731ca17071fc9a24f969684d5ffec550977870b3f708"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: hex.layui.define(): FunctionTooLong \u2014 layui.define() runs 919 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 819 over it, 9.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/modules/hex.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"277760726eefd6b26c34a2a4754388ba1c320eaa11bf01d79e57f00e5154ec47"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: component/tree.select.js: FileTooLong \u2014 3019 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 1519 over it, 2.01\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef87878d83645f4a9ef9f1512f8d69a0fb55b8ae8c9ce18bd37036b1b62d525"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mobile/fallback.js: FileTooLong \u2014 2616 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 1116 over it, 1.74\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63fa6c1e779fc8e2275d4fa93bfde51164a1cdae0daf14cb8c188dd0da53286c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: authtree.layui.define(): FunctionTooLong \u2014 layui.define() runs 481 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 381 over it, 4.81\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":"assets/common/js/component/authtree.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"00ea1e16588942b78c8d026946873fc4ea0de6a9eed1d6144733983fc3140ef1"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: authtree.layui.define(): FunctionTooLong \u2014 layui.define() runs 441 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 341 over it, 4.41\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/modules/authtree.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9ed240399313646a074c6bd6571c9a05a84c5118732937f80861e1488e4dda2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commodity.modal: FunctionTooLong \u2014 modal runs 439 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 339 over it, 4.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc25e9e8675cf5ce3eded5e85f10dd4eb0a3573bfd6514e8e309a1e900e2e3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: menu.KTMenu: FunctionTooLong \u2014 KTMenu runs 414 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 314 over it, 4.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/menu.js"},"region":{"startLine":1526}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed45826ef6d61cc756dde696405c687264b076ce75c3e175b8acd945ae4beff"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Form: ClassTooLong \u2014 1521 significant lines (blank, comment-only and punctuation-only lines excluded), 83 methods. The bar is 400 significant lines; this is 1121 over it, 3.80\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71f45aacdfa4c74e2999733d8bc4ac232fe8c3ddaa0c2541a4e6eca9779bb3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/menu.js: FileTooLong \u2014 1864 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 500 significant lines; this is 1364 over it, 3.73\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":"assets/admin/js/menu.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec034ddb0f89683eabfed2088c4f4efab5482e390e94455c225c9cedfe3f83b6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemirror.addEditorMethods: FunctionTooLong \u2014 addEditorMethods runs 322 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 222 over it, 3.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":8268}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60e9c84694a8b8032e50f6ae807dd87acaf6f30159957a48500234605cb4e62"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: fallback.render: FunctionTooLong \u2014 render runs 313 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 213 over it, 3.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2784}}}],"partialFingerprints":{"codehealthFindingId/v1":"f885c0614fce8847832b0fd5264debfdf0863e6e5ac2990475662c9ec754442a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: css.CodeMirror.defineMode(\u0022css\u0022): FunctionTooLong \u2014 CodeMirror.defineMode(\u0022css\u0022) runs 311 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 211 over it, 3.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5778e1ff9bdec808fbb8e7b51864681fdc8b536a16db7464a54fdee21cc6fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mobile/recipes.js: FileTooLong \u2014 1531 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 31 over it, 1.02\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/recipes.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"55f070429dc8f3efddb23521111805a7e8e506de6196bd057719b9de4cd29b94"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: component/form.js: FileTooLong \u2014 1521 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units), about 100% of them inside a single declaration: Form (1-2161). The bar is 1500 significant lines; this is 21 over it, 1.01\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"817a3ffae1988331f770f80b4aeaebfbd52e26c9b255a4798a78d4fbdd3331db"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: shared/store.js: FileTooLong \u2014 1494 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 994 over it, 2.99\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/shared/store.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef088280352d8387c6e4b543b54c56e43c83db4ec87fe91ea95440678d99a202"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: store.mountRemoteProductPicker: FunctionTooLong \u2014 mountRemoteProductPicker runs 291 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 191 over it, 2.91\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/shared/store.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f02c1cd3548b603ac56f8509ea61ff7af8ef7b8deaf6d1b3af00be1400f26ec"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Order.trade: MethodTooLong \u2014 trade runs 283 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 183 over it, 2.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"38cc5d481baac6e886e04f476d9a207e765d0e8f36fb4d3a052b54be5c20f4a6"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Form: TooManyMethods \u2014 83 methods. The bar is 30 methods; this is 53 over it, 2.77\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f580315866236541a8ea2a33fb3f9f505891bb8bb0aeb7e4b1b3e23d33da8c4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: xml.CodeMirror.defineMode(\u0022xml\u0022): FunctionTooLong \u2014 CodeMirror.defineMode(\u0022xml\u0022) runs 268 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 168 over it, 2.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/xml/xml.js"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c99c241e71d6a522a6fcf697c6be873b74aad2b8967b454bccae882a7cf8139"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: component/table.js: FileTooLong \u2014 1307 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 807 over it, 2.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"158662d4faf2816a7f7d8e431eb6198158bc76f2fb292be02fd049a541e542b9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Table: TooManyMethods \u2014 75 methods. The bar is 30 methods; this is 45 over it, 2.50\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae6887987d9a5eb54c78bfad1a06630c8a9c52ccbeb7a044715b9a64e7821119"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Ticket: ClassTooLong \u2014 973 significant lines (blank, comment-only and punctuation-only lines excluded), 52 methods. The bar is 400 significant lines; this is 573 over it, 2.43\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"94412e69361945058c29c9ec18e090ab30e4fc0ef20ef4fb6177769926915256"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: home._Auth: FunctionTooLong \u2014 _Auth runs 239 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 139 over it, 2.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":498}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f78ec134dffa3c91ed4f389a44ec9ecc24379bd57d84937112dd925bd7d2e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index._ThemeSetting: FunctionTooLong \u2014 _ThemeSetting runs 231 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 131 over it, 2.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/config/index.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceaad6e117e98c512857fbd57c59ac8d9c00b19407faad557a9e0b1df7d1f1a1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mobile/overlay.js: FileTooLong \u2014 1152 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 652 over it, 2.30\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":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"805737c8abdc13ec47b998e03489d673a0a41a32259651027aad309332b8ff59"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Component.popup: MethodTooLong \u2014 popup runs 228 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 128 over it, 2.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4dbc5649abac9da59df4d02a1d8b887bd4e152b38d87dbc90fa83350af0568e"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Config: ClassTooLong \u2014 898 significant lines (blank, comment-only and punctuation-only lines excluded), 41 methods. The bar is 400 significant lines; this is 498 over it, 2.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e32dce5ec7478c34d4ba260eda6efbf00fbed476bf4689a80601c4a2fcbdf040"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: store/home.js: FileTooLong \u2014 1105 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 605 over it, 2.21\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":"assets/admin/controller/store/home.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be38ae6bd838571c5eba5bd5d7d4e23aa33bf2403ac81b485fe5e0f4a52a0214"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Store: ClassTooLong \u2014 874 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 474 over it, 2.19\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72f9d6b530df1848010c992c089b353e0a9c119cb41c6854040bb66ec7eb5bd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mobile/workflows.js: FileTooLong \u2014 1089 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 589 over it, 2.18\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":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c224eeb7beb8a53ff45419337cc57411823237cc5e7d454d4828f6c2efa760f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Order: ClassTooLong \u2014 859 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 459 over it, 2.15\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19462b8af082c7b8728c2347b930eb1d2e73339270fe5a48d4d7d621c7f32d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commodity.modal: FunctionTooLong \u2014 modal runs 214 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 114 over it, 2.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/business/commodity.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec9531853437d2eb1ec39db7fe7f43f560e91893da87c82fb4313a633d515169"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: trade/commodity.js: FileTooLong \u2014 1018 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 518 over it, 2.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c936f97936f3bfa1a87fcbffae8316c9025f0be53e3d9d0a618d49e5dfd72b0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Bind/Ticket.php: FileTooLong \u2014 998 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Ticket (29-1481). The bar is 500 significant lines; this is 498 over it, 2.00\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d560aef427c2680b55eb2ce269567b378e3bfbab522d3fdd9af38a5aadf4f26b"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Util: TooManyMethods \u2014 57 methods. The bar is 30 methods; this is 27 over it, 1.90\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/util.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1757b85c5f091a029d0c6b3404ef01ac52b1f69389cf5dc804ba844982f06ee1"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Store.addItem: MethodTooLong \u2014 addItem runs 187 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 87 over it, 1.87\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":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d9a01382fc7846a1efae40e4cb48be494ec1bff53d4b243b604079947de0002"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Api/Config.php: FileTooLong \u2014 925 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Config (32-1378). The bar is 500 significant lines; this is 425 over it, 1.85\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c1c721eccb6973b25826624061f9b5fff7c2218dda71b864bca62ad0a496a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: modules/hex.js: FileTooLong \u2014 919 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 419 over it, 1.84\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/modules/hex.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e686f6fb2c4febadd11fcb5dff2e893485094d82c0d3136dd58435256638144"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: coupon.createCoupon: FunctionTooLong \u2014 createCoupon runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0410d7b130b6f15b9d37ff84a8a398d6b424fbe606c4d989719c4d608c49c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Bind/Order.php: FileTooLong \u2014 896 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: Order (41-1474). The bar is 500 significant lines; this is 396 over it, 1.79\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad4c6058ae9d9a2f3f2b5db33a9580c4c29b600db62ab3a78bf2a40382331a20"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Api/Store.php: FileTooLong \u2014 895 significant lines (blank, comment-only and punctuation-only lines excluded), about 98% of them inside a single declaration: Store (28-1425). The bar is 500 significant lines; this is 395 over it, 1.79\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8cc651e7a1c04d7d9fc1380b8beaf92e78863ea4d3687304977702343a963d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Ticket: TooManyMethods \u2014 52 methods. The bar is 30 methods; this is 22 over it, 1.73\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"306a3dee0478970ed2859e1e72c642ad4f67e05c1019d892cc9a87372dddf77f"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: acg: ClassTooLong \u2014 667 significant lines (blank, comment-only and punctuation-only lines excluded), 4 methods. The bar is 400 significant lines; this is 267 over it, 1.67\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/acg.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1e8497d006f7e70599623b16e9d3f9b79a9730fa011dbbc869067c79bc02fc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: group.CommodityGroupModal: FunctionTooLong \u2014 CommodityGroupModal runs 165 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 65 over it, 1.65\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":"assets/admin/controller/user/group.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c46b811944f81023f25592b5a6591416711bc8d1e6346a378a6ebf4b034c82"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: markdown/editorv2.js: FileTooLong \u2014 818 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 318 over it, 1.64\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a99a2e3c63e9047d1c4af92a785ac4be23103f14a8987d5e8db9582a2409f562"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: View/Install.html: FileTooLong \u2014 797 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 297 over it, 1.59\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":"app/View/Install.html"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"480c9f81c408e101f47e0dff29b6241da31e76a336abdb6745edc7d96269a950"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: static/acg.js: FileTooLong \u2014 746 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: acg (14-906). The bar is 500 significant lines; this is 246 over it, 1.49\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/acg.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"90d36d18c763d4e3c41c0f25da68b512b929457570e09d12540dc033085d2381"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: api.modal: FunctionTooLong \u2014 modal runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\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":"assets/admin/controller/pay/api.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"504f8c14ec32faf9a4f3c9c0f602b16ccf6fd15d4c0088f2d4e8585b5e2fe105"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: user/ticket.js: FileTooLong \u2014 742 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 242 over it, 1.48\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":"assets/admin/controller/user/ticket.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc767e43c3d0045bb62eb357777086fb3ea6833b3c002a039476c0bfcdb5bbaa"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/util.js: FileTooLong \u2014 735 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: util (1-1138). The bar is 500 significant lines; this is 235 over it, 1.47\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/util.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f13100b63bb99cf86b975a78dc4238025b4b08b1eda347a5b0e2a9821e38a464"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: javascript/javascript.js: FileTooLong \u2014 733 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 233 over it, 1.47\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":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e51dade5cc76be81d9267775a602d7ce133836da5fa4c77f04434cfa7eab85d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: _Dict.constructor: MethodTooLong \u2014 constructor runs 146 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 46 over it, 1.46\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":"assets/admin/js/dict.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a21c08e5dfafdc9a234280eb486bb823db0c92210d6284302cab582b9b82a5d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: css/css.js: FileTooLong \u2014 725 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 225 over it, 1.45\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":"assets/static/codemirror/mode/css/css.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5491df2f33ea6fec3289fd9a5ce26fe8f3e101d8b216b4345e366f2bced3ea5f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: menu.KTDrawer: FunctionTooLong \u2014 KTDrawer runs 145 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 45 over it, 1.45\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":"assets/admin/js/menu.js"},"region":{"startLine":3267}}}],"partialFingerprints":{"codehealthFindingId/v1":"02eab18e68163b6f8a226771233def8cb025179c16bb6d5e20ddd4d498cf1588"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: message.openComposer: FunctionTooLong \u2014 openComposer runs 142 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 42 over it, 1.42\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/message.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"251115f7bf36badff3a02b4dff623ab53b43fae76a5ab9c3b246c3dca6db3af9"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Config: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a93ac8d284608779846cbd95982761bfa78e3c65b2be2a97ebe1138280431af"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Format: TooManyMethods \u2014 41 methods. The bar is 30 methods; this is 11 over it, 1.37\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/format.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f33e9adb1bbcbc4ef6cd674e40269d3058fa7db7803d3b59bbb6d4d9b6cbedad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: menu.KTScroll: FunctionTooLong \u2014 KTScroll runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/menu.js"},"region":{"startLine":2782}}}],"partialFingerprints":{"codehealthFindingId/v1":"93869bd3022477cf74a9c062c1dfbdc113a8080b6af3dc0d3539891268fb81fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: store/developer.js: FileTooLong \u2014 677 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 177 over it, 1.35\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/developer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8238f5b7871107a7a7aae22edb1124a40bf40ae391b8c1b2721b625244af309c"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Commodity: ClassTooLong \u2014 539 significant lines (blank, comment-only and punctuation-only lines excluded), 14 methods. The bar is 400 significant lines; this is 139 over it, 1.35\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"56d40d75bc45d817666b313fb918ea6e42ff8d036492ff768f0ec99fde6911a3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: dashboard/index.js: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 170 over it, 1.34\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":"assets/admin/controller/dashboard/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3abd0bfdc03f9741b50c2a4dcbdaa026a04715bcfe10aa65a445b1a148600444"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: home._Bill: FunctionTooLong \u2014 _Bill runs 134 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 34 over it, 1.34\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"feec1d7ab5d487cfe40cfd2e0222df7ed884486440931c17524001708499b0ad"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Search: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/search.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc85d435774737a44854b0dce07d93b900c9b8b022d0cd5e71b3fca4f3b1f8d2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: card.uploadCard: FunctionTooLong \u2014 uploadCard runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/card.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdfce2227a059c932131d113c872d7ac2aa2a3c3d0f8285af35921acad0f793a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commodity.uploadCard: FunctionTooLong \u2014 uploadCard runs 129 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 29 over it, 1.29\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1067c46159d06c54213044a21325c067f6f7fc047d0ff8ffae5983b8da9c8d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Lang: ClassTooLong \u2014 512 significant lines (blank, comment-only and punctuation-only lines excluded), 36 methods. The bar is 400 significant lines; this is 112 over it, 1.28\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d696032be90b7552733f568fa2867bfffc484119510989fdfa6736e43b30c8d"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Shared: ClassTooLong \u2014 501 significant lines (blank, comment-only and punctuation-only lines excluded), 30 methods. The bar is 400 significant lines; this is 101 over it, 1.25\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"52596d280064195a0ed3ec47eae40bf133240f17ea956fed730944955ad6ffc7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Commodity.save: MethodTooLong \u2014 save runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ad50cf3f2dbe7f4cf199b7be4f53805326dd368fef389251d3c9f8c722f32d0"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Commodity.save: MethodTooLong \u2014 save runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Commodity.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f86ced7bee9f08f65dcd9d1d2e114d95057752402d13d5974ca22844fe36144"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: card.uploadCard: FunctionTooLong \u2014 uploadCard runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/business/card.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f26a39dc9210ca1919bfa608130fd8647cc03bd74636f8a7c1ab56d72999aa"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Index.commodity: MethodTooLong \u2014 commodity runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Index.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"5442f665a5e1da9435d0ec41d5c3e91744875b522805711ab2aa8d1b5711c186"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Store: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9dfb3bf5ef81cc8cbd50a44e7e10b5d03e4ce7058de8f50b7f0162ed35ca085"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Lang: TooManyMethods \u2014 36 methods. The bar is 30 methods; this is 6 over it, 1.20\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"def610b75929134ea4fffee5f60a42c09bc3f71768fb8cf6a2544078d4b7ed18"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: commodity.uploadCard: FunctionTooLong \u2014 uploadCard runs 120 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 20 over it, 1.20\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":"assets/user/controller/business/commodity.js"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d73bff699c968bf4b30533a34ef9ed8365f86f931350fa97db756e868572e96c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: pay/api.js: FileTooLong \u2014 599 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 99 over it, 1.20\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":"assets/admin/controller/pay/api.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4f43d1420e3b5dee2ff8ddead30a248d08415db2220a46364e12451bd9500d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: user/index.js: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 88 over it, 1.18\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":"assets/admin/controller/user/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87b59192363af294dc8dd5f974eac1d949e09a09a7a31d9918ec165451ab33b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/component.js: FileTooLong \u2014 588 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: component (1-842). The bar is 500 significant lines; this is 88 over it, 1.18\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e0eec31d7efc45530241608e7b24c46a4513b54b4dbfc8d6e30ab58764958e7"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Card: ClassTooLong \u2014 465 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods. The bar is 400 significant lines; this is 65 over it, 1.16\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcece1732dbeb86c11ad772f464131178d8022e0ea655abbb61e70ec1a5df532"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Form.createForm: MethodTooLong \u2014 createForm runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6831a71b983bf4cc1454a93ef528950b8e8bd0a88b0ae78421e74d4b40ad22"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemirror.defineOptions: FunctionTooLong \u2014 defineOptions runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7708}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddb29f683ece67ae19eea09c7e229f6e674276b834b58fcbf6350cb9e2a6586"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: jquery.pjax.pjax: FunctionTooLong \u2014 pjax runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/jquery.pjax.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ea6d08cb990d888edd386288052e29253273f5f6a9a9806c06d00bfc67d825"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Manage.save: MethodTooLong \u2014 save runs 114 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 14 over it, 1.14\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Manage.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"09f13fb8111d7ec978448d6019ada69a6498ab86094df6758fd3662b4af548b8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CommodityGroup.mobileCommodityTree: MethodTooLong \u2014 mobileCommodityTree runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/CommodityGroup.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"9248dc9d402b661d0c6e399cbcf1300fd92f4e4d34400f90f1ea5ca4a6977b35"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: User.save: MethodTooLong \u2014 save runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/User.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0538959da2f360cbb723492b7e91a436dc46a0e7b0e078f0789c11a4b37db2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Api/Commodity.php: FileTooLong \u2014 563 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: Commodity (30-922). The bar is 500 significant lines; this is 63 over it, 1.13\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb61a2bec0f456b11bfdbf31bcaf73b8c026200041e87feddfc22d81e3d228d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: coupon.createCoupon: FunctionTooLong \u2014 createCoupon runs 112 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 12 over it, 1.12\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/business/coupon.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5223bec6d4cc683a7964c67d5b0da71195881b1ba1999288a39bd40f789ceae"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: trade/coupon.js: FileTooLong \u2014 554 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 54 over it, 1.11\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":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5abf0ef99535c20eb331e7556bf4dc321e3bfdca9ea146602ae6d26602fe3085"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Category: ClassTooLong \u2014 439 significant lines (blank, comment-only and punctuation-only lines excluded), 13 methods. The bar is 400 significant lines; this is 39 over it, 1.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf25899099508597f9ef1910c2978f54a72ce863c53645e4231946d22c68a76"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Pay: ClassTooLong \u2014 437 significant lines (blank, comment-only and punctuation-only lines excluded), 22 methods. The bar is 400 significant lines; this is 37 over it, 1.09\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Pay.php"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"22ec4ecda249bf325f5dbed3350221193f692992fd9a23fc4812f1967a7a7de7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Category.safeCategoryDeleteImpact: MethodTooLong \u2014 safeCategoryDeleteImpact runs 109 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 9 over it, 1.09\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3dd0d1c6b007efcb50e2285a1485523845bb7cba5f999eacbedbe6bda01e18"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Mcp: ClassTooLong \u2014 433 significant lines (blank, comment-only and punctuation-only lines excluded), 20 methods. The bar is 400 significant lines; this is 33 over it, 1.08\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Mcp.php"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"054286dc155e53009b611d63d866fe9e1246ff068eb286a284a3ee9bad3c3238"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: fallback.renderToolbar: FunctionTooLong \u2014 renderToolbar runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2193}}}],"partialFingerprints":{"codehealthFindingId/v1":"efc06220c4e0d570f2792e730aa7e5dc22fd67ac5c09858f9bdb5a8067702a5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/plugin.js: FileTooLong \u2014 531 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 31 over it, 1.06\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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d24de78760147c61931b1f2727e89a99dff49f727def1a71041b0edbb75afaa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: codemirror.leftButtonSelect: FunctionTooLong \u2014 leftButtonSelect runs 106 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 6 over it, 1.06\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7475}}}],"partialFingerprints":{"codehealthFindingId/v1":"3072542c1b5a9e9ae84e696b095e3472aea1652cbc320830b7a2f38d8dcd5026"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Mcp.tools: MethodTooLong \u2014 tools runs 105 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 5 over it, 1.05\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Mcp.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"5309b7f73d7eaf9c3d3a725062eef0ea71799c602d2eee456f1b8e61753b0a10"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Commodity.commodityDeleteImpact: MethodTooLong \u2014 commodityDeleteImpact runs 104 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4 over it, 1.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"28edaaf41868f9fa5b66d1ca550582cddf26e53f84403538b356e05b1c25606f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Bind/Shared.php: FileTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded), about 97% of them inside a single declaration: Shared (20-953). The bar is 500 significant lines; this is 17 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6914f8ca51b62f9315b6130da6968f160f5fa0ccafc06f5449683d6671de2121"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: Util/Lang.php: FileTooLong \u2014 516 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: Lang (18-1137). The bar is 500 significant lines; this is 16 over it, 1.03\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8692bc12682fb0049a6fba84082c2f37c0c8bdf20d2cafdcbe0b644af406eb1e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Coupon.save: MethodTooLong \u2014 save runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcf65ec9c45e14c07470c21944f9742e04e6d8fdd33a1dd3b3f03c657d4a3fa9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: trade/card.js: FileTooLong \u2014 513 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 13 over it, 1.03\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/card.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"698f6c7369dc3e36718dcd3e3cabfb59e26050d57f377eb9cdee2a39d1814775"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (5 members, 30 shared lines): app/Util/Schema.php:64-108 | app/Util/Schema.php:131-173 | app/Util/Schema.php:182-218 | app/Util/Schema.php:235-277 | app/Util/Schema.php:286-328 \u2014 These 5 members are variants of one another: a block of 30 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 5 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 5 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Schema.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"54886a5a291308fb21302fdc6919b392d70db680697f932bc6b43288bb21aa2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (82 shared lines): app/Controller/Admin/Api/Card.php:336-441 | app/Controller/User/Api/Card.php:77-180 \u2014 These two members are variants of one another: 82 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b925a481ad7446025b70c46a5e9f1dd9836a239e9b7f1f7d9992c28bc909f4"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (77 shared lines): app/Controller/Admin/Api/BusinessLevel.php:42-150 | app/Controller/Admin/Api/Group.php:36-122 \u2014 These two members are variants of one another: 77 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa8de8692cd9f97fcad4f9140875ff5dcfdfdfb0260bc264b0447c6abd4284b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (48 shared lines): app/Controller/Admin/Api/Coupon.php:256-388 | app/Controller/User/Api/Coupon.php:64-185 \u2014 These two members are variants of one another: 48 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"652fd74a45ec3ea6f775f2af469019ae95817ba3f1f0285de43450a6e517b77d"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (41 shared lines): app/Controller/Admin/Api/Order.php:572-619 | app/Controller/Admin/Api/RechargeOrder.php:478-525 \u2014 These two members are variants of one another: 41 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"5591fe9fb6095536ddf7204f85b9cad3cf28a68812bb34d7ad721a920900152a"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (24 shared lines): app/Controller/Admin/Api/Upload.php:45-85 | app/Controller/User/Api/Upload.php:40-89 \u2014 These two members are variants of one another: 24 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Upload.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e0e40227db45d89073d8e95617e27f3102c66a184235c1406680deaff74a52"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): app/Controller/User/Api/Order.php:79-112 | app/Controller/User/Api/RechargeNotification.php:30-62 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Order.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca9df892ddaffb623c1eb4ed5f528cbe93f90909eff3f5f08fba0835bfb445c"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (9 members, 50\u002B identical tokens): app/Controller/Admin/Api/BusinessLevel.php:160-189 | app/Controller/Admin/Api/Card.php:39-64 | app/Controller/Admin/Api/Category.php:45-71 | app/Controller/Admin/Api/Commodity.php:52-77 | app/Controller/Admin/Api/Commodity.php:142-278 | app/Controller/Admin/Api/CommodityGroup.php:42-69 | app/Controller/Admin/Api/CommodityGroup.php:79-103 | app/Controller/Admin/Api/Coupon.php:36-62 | app/Controller/Admin/Api/Manage.php:37-66 \u2014 These 9 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 9 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 9 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"96d04164254395adec7f6c399c3cfb70777aed6075c182fbaafe6ff199cc48b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/Controller/Admin/Api/Bill.php:31-42 | app/Controller/Admin/Api/Card.php:239-257 | app/Controller/Admin/Api/Cash.php:36-48 | app/Controller/Admin/Api/Coupon.php:233-246 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Bill.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2d08decdb98036f98c734f3b9f9beffcc6eabcfeebaa3c1d2cc0fc93585960d"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/Controller/User/Api/Security.php:327-356 | app/Controller/User/Api/Security.php:366-388 | app/Controller/User/Api/Security.php:398-415 | app/Controller/User/Api/Security.php:449-466 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Security.php"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"5968a07f5c9cf6df037e93d4a71bb28a51ff5e6aec4a67ab537ccc4aa791e1e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): app/Service/Bind/Message.php:92-106 | app/Service/Bind/Message.php:221-230 | app/Service/Bind/Message.php:269-283 | app/Service/Bind/Ticket.php:843-868 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac3257746345ad3cf46efb450fbbbdb8b1df8a8442824e7b6a03248339f5d7a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): app/Controller/Admin/Api/BusinessLevel.php:64-96 | app/Controller/Admin/Api/Group.php:58-90 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/BusinessLevel.php\u0060 and \u0060app/Controller/Admin/Api/Group.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/BusinessLevel.php:64\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"df50dd6cf1a6fe3ad7de8a1c4e1e74c69d468d430fe4ad8c1abd74c8d97fd1ba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201333 lines \u00D7 2): app/Controller/Admin/Api/Order.php:93-125 | app/Controller/Admin/Api/RechargeOrder.php:86-107 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Order.php:93\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd24cb0c60569a571c946c269daa4178d734876b29be4d3d29e039584feec99"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): app/Controller/Admin/Api/Card.php:368-394 | app/Controller/User/Api/Card.php:114-140 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Card.php\u0060 and \u0060app/Controller/User/Api/Card.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/User/Api/Card.php:114\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d96d49783123c57ae8669b510ae1b7a1521ba0b122e33eed08e64e65231ccd4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): app/Controller/Admin/Api/Card.php:413-439 | app/Controller/User/Api/Card.php:154-179 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Card.php\u0060 and \u0060app/Controller/User/Api/Card.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/User/Api/Card.php:154\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"160422783456a783b2a38dc7078c8d9b8e4b0b830869ba76b9d869f1c1184aee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): app/Controller/Admin/Api/Order.php:141-167 | app/Controller/Admin/Api/RechargeOrder.php:119-145 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Order.php:141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f544620dd38434ce9d214880ef2dacc54e15e7b49d8032057528b4819ded443"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201327 lines \u00D7 2): app/Controller/Admin/Api/Order.php:548-561 | app/Controller/Admin/Api/RechargeOrder.php:327-353 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Order.php:548\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6659248132ee3ab9de75da305c236b6b93b62241cc169566e002d6e5bfa1b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): app/Service/Bind/Order.php:290-316 | app/Service/Bind/Order.php:1385-1411 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/Service/Bind/Order.php:287\u0060 calls \u0060JSONException\u0060 and \u0060app/Service/Bind/Order.php:1382\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8fe7d77166c80d4ece59b81d7930dc7dbeec67a1af1cdb71b0a7753e976210"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): app/Controller/Admin/Api/BusinessLevel.php:99-122 | app/Controller/Admin/Api/Group.php:93-116 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/BusinessLevel.php\u0060 and \u0060app/Controller/Admin/Api/Group.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/BusinessLevel.php:99\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"b080c5367b48c2cfd7289702d2ac5e390ee5182cfa57e1980a4935aef8c7c46e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): app/Controller/Admin/Api/Card.php:343-366 | app/Controller/User/Api/Card.php:88-111 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Card.php\u0060 and \u0060app/Controller/User/Api/Card.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Card.php:343\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"e52a426b03d9630bee2629c7d5c094607cb4bde866b323948501cc398b9227bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2): app/Controller/Admin/Api/Coupon.php:358-381 | app/Controller/User/Api/Coupon.php:156-179 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Coupon.php\u0060 and \u0060app/Controller/User/Api/Coupon.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Coupon.php:358\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/Controller/Admin/Api/Coupon.php:383\u0060 calls \u0060log\u0060, \u0060getManage\u0060 and \u0060app/Controller/User/Api/Coupon.php:181\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"afcf4644027fe32471aa3dab1c7ceba21607dcf6591d74ddbfb1f3ccf59c1cab"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22\u201323 lines \u00D7 6): app/Controller/Admin/Api/BusinessLevel.php:160-182 | app/Controller/Admin/Api/Card.php:39-60 | app/Controller/Admin/Api/Category.php:45-67 | app/Controller/Admin/Api/Commodity.php:52-73 | app/Controller/Admin/Api/Coupon.php:36-58 | app/Controller/Admin/Api/Manage.php:37-59 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 6 call sites, so a change lands once. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/Controller/Admin/Api/BusinessLevel.php:184\u0060 calls \u0060JSONException\u0060 and \u0060app/Controller/Admin/Api/Category.php:68\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2acdba6a855aeea1224af4d89c274a38ff44259f4702c7a9f892aac5099e1793"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): app/Controller/User/Api/Order.php:88-110 | app/Controller/User/Api/RechargeNotification.php:38-60 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/User/Api/Order.php:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Order.php"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"f60491fcfc91b59b0ca444f4bf1663c131bde7458a1797096fcccc150edcf97c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201322 lines \u00D7 2): app/Controller/Admin/Api/Order.php:504-512 | app/Controller/Admin/Api/RechargeOrder.php:307-328 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Order.php:504\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"8daaff275e34b7362d530bcbd0b9dd2997e7b3ad80bc5a9a37c9d5eb9b811c0e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19\u201322 lines \u00D7 2): app/Service/Bind/Order.php:950-968 | app/Service/Bind/Recharge.php:112-133 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/Order.php:950\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a74c27b9b71e7af4ee7a61abb4207a76423e14d1606b730aa45f271abd6fbb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): app/Controller/Base/View/Manage.php:24-44 | app/Controller/Base/View/ManagePlugin.php:22-42 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Base/View/Manage.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af7a153730c1ebfe8be3b3471359949656f011d633cf9519e36902fea5808f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201320 lines \u00D7 3): app/Controller/Admin/Api/Category.php:296-313 | app/Controller/Admin/Api/Order.php:280-298 | app/Controller/Admin/Api/RechargeOrder.php:262-281 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Order.php:280\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"49fc34381b3609bc4ad9b3fc1399c11fc3d0de46d8ecd5bd37ed13faef3a952f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/Controller/Admin/Api/BusinessLevel.php:43-62 | app/Controller/Admin/Api/Group.php:37-56 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/BusinessLevel.php\u0060 and \u0060app/Controller/Admin/Api/Group.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/BusinessLevel.php:43\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e31b50a735c0b6b6dddd14dea133fb339da61d48885e6c6e713f0c3d9ff938"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201320 lines \u00D7 2): app/Controller/Admin/Api/Order.php:477-483 | app/Controller/Admin/Api/RechargeOrder.php:305-324 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Order.php:477\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b0331aa6d0f431e0707db3cef663cb120945249905b5dca8047b58a0221e53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): app/Controller/User/Pay.php:46-65 | app/Controller/User/Recharge.php:106-125 \u2014 before extracting anything, compare \u0060app/Controller/User/Pay.php\u0060 and \u0060app/Controller/User/Recharge.php\u0060 as WHOLE FILES: 82% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Pay.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c956bc36c7002ad98c10330afe0e27bedc971d7b4ec99c184f71ee7c528d364"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 5): app/Util/Schema.php:64-82 | app/Util/Schema.php:131-149 | app/Util/Schema.php:182-200 | app/Util/Schema.php:235-253 | app/Util/Schema.php:286-304 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Util/Schema.php:64\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Schema.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d3fc9344dc364dc826753f1ef41cffdf118b4f829106551d0f9e1b36a66f04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): app/Util/Date.php:109-127 | kernel/Util/Date.php:124-142 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Date.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"247ca65cb3515330b662893a6de737fac279984905d154abdeaf83d8f5e38b02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 3): app/Controller/User/Api/Order.php:83-100 | app/Controller/User/Api/Order.php:148-165 | app/Controller/User/Api/RechargeNotification.php:34-50 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/User/Api/Order.php:83\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/Controller/User/Api/Order.php:166\u0060 calls \u0060patch\u0060 and \u0060app/Controller/User/Api/Order.php:101\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Order.php"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be18cb9fb53f7bf6b560795594b276c823b8a714befe3358da7e179bf5a4e47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): app/Controller/Admin/Api/Pay.php:569-584 | app/Controller/Admin/Api/Plugin.php:81-98 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Pay.php"},"region":{"startLine":569}}}],"partialFingerprints":{"codehealthFindingId/v1":"179080b3acc801261a88409ae32f3a8f43e83e41beee6741d6067c926bfc82ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17\u201318 lines \u00D7 2): app/Controller/Shared/Commodity.php:446-462 | app/Controller/User/Api/Index.php:342-359 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Shared/Commodity.php:446\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Shared/Commodity.php"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e348b5324ba3c6d31642971ca9b2f706610c4941540ad1ba46336ad86b9c86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): app/Service/ManageSessionManager.php:49-66 | app/Service/UserSessionManager.php:52-69 \u2014 before extracting anything, compare \u0060app/Service/ManageSessionManager.php\u0060 and \u0060app/Service/UserSessionManager.php\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageSessionManager.php"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"64ea8e7ce0c016c0c2a9406cc79394638249d67f1710152d835e81481786d4c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201318 lines \u00D7 2): app/Util/CallbackIpWhitelist.php:246-263 | app/Util/Client.php:389-404 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/CallbackIpWhitelist.php"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dea7943695cb40686b2f196257377ae06f06e0d0046432254d52a21cbc22bc4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201317 lines \u00D7 4): app/Controller/Admin/Api/Bill.php:33-42 | app/Controller/Admin/Api/Card.php:241-257 | app/Controller/Admin/Api/Cash.php:38-48 | app/Controller/Admin/Api/Coupon.php:235-246 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Bill.php"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6f3b262a5edab366d147e92734f991487a47061a5ffe13bf18cbc84dc6fc7b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 2): app/Controller/Admin/Api/User.php:172-188 | app/Controller/User/Api/Business.php:42-57 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/User.php"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"5af005b4d74829cdf58e7dcb944fab867b96e3181b19f74e9aa28ddec4762538"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): app/Service/Bind/ManageSSO.php:95-111 | app/Service/Bind/ManageSSO.php:148-164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/ManageSSO.php:95\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/ManageSSO.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ff17d6cd637c8dfd7668ff6b408f816822c0f8d0b6c9ce352bd372a377451e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/Controller/Admin/Api/Commodity.php:549-564 | app/Controller/User/Api/Commodity.php:280-295 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Commodity.php:549\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb25de13fa4c3a2e14acc070b7e4246798fd3f3dd197b12e1fd460e9e9b28878"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/Controller/Admin/Api/CommodityGroup.php:46-61 | app/Controller/Admin/Api/CommodityGroup.php:80-95 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/CommodityGroup.php:46\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/CommodityGroup.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbef2444f3f15c0f8b646c0ecea684a91c7fe3e2ef1220da24e362fc66a148e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/Controller/Admin/Api/Coupon.php:341-356 | app/Controller/User/Api/Coupon.php:139-154 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Coupon.php\u0060 and \u0060app/Controller/User/Api/Coupon.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Coupon.php:341\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":341}}}],"partialFingerprints":{"codehealthFindingId/v1":"45aca412cc8dd7150cfdeef93676983700178c13f388f5f0f39e94234b453663"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): app/Service/ManageSessionManager.php:91-106 | app/Service/UserSessionManager.php:91-106 \u2014 before extracting anything, compare \u0060app/Service/ManageSessionManager.php\u0060 and \u0060app/Service/UserSessionManager.php\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageSessionManager.php"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"4825059925e36468e320742ff8094e7e300168fc7913091ff6ada152fb3139d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): app/Controller/Admin/Api/Category.php:270-284 | app/Controller/Admin/Api/Order.php:252-268 | app/Controller/Admin/Api/RechargeOrder.php:233-250 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dd959754645af8b5eb0eeb00339282783a04c793286acb4cb1a11ed347e603a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201315 lines \u00D7 2): app/Controller/Admin/Api/Log.php:26-38 | app/Controller/Admin/Api/User.php:553-567 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Log.php"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae733e87a1955ad10ea2ec68ac6eb2fad81630dba7f05ede0a244c8cb053cc1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/Controller/Admin/Api/Order.php:605-619 | app/Controller/Admin/Api/RechargeOrder.php:511-525 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Order.php:605\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c00ab999faa3a75ffffd0186bdac6ca544b0503e9764cac9feb260b709b4dd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): app/Service/Bind/Email.php:419-433 | app/Service/Bind/Sms.php:158-172 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/Email.php:419\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Email.php"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00bcf99a5577ea4c05bdcbaac21d0e73692b1631ae38d75a03e9fee021928b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): app/Util/CallbackIpWhitelist.php:269-283 | app/Util/Client.php:405-418 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/CallbackIpWhitelist.php"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"374cbedd7b5ca8f1b00a2f472e133c942a191272267ca421d7632ee47ec8accc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/Service/Bind/Message.php:1046-1059 | app/Service/Bind/Ticket.php:1367-1380 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/Service/Bind/Message.php:1044\u0060 calls \u0060getimagesize\u0060, \u0060is_array\u0060, \u0060strtolower\u0060 and \u0060app/Service/Bind/Ticket.php:1366\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":1046}}}],"partialFingerprints":{"codehealthFindingId/v1":"904ae5a0baf7e33a1423376c6f3294ca80558eb26d5e4ac2eeca56cd2c58858d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13\u201314 lines \u00D7 2): app/Util/CallbackIpWhitelist.php:183-195 | app/Util/Client.php:320-333 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Util/CallbackIpWhitelist.php:183\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/CallbackIpWhitelist.php"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdae9c7bc1e011713cbead85a7ef524371a8902bf403790b88d461373f020168"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): app/Util/Tree.php:17-30 | kernel/Util/Tree.php:16-29 \u2014 before extracting anything, compare \u0060app/Util/Tree.php\u0060 and \u0060kernel/Util/Tree.php\u0060 as WHOLE FILES: 86% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Tree.php"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"95df371e78382ad9b8600b02c1418c82aec9654df1a586a0ada8753f0a3c2506"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/Controller/Admin/Api/Config.php:1245-1257 | app/Controller/Admin/Api/Config.php:1292-1304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Config.php:1245\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":1245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3859054361aa2672584bd3b17f6c7d1a99f8ede585e1d10f232fe584ccb46a22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201313 lines \u00D7 2): app/Controller/Admin/Api/File.php:55-65 | app/Controller/Admin/Api/Manage.php:75-87 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/File.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4935d06dd990d276f7e118263fc45b50124c8ae796b149bbb46bdf32824d894c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/Controller/Admin/Api/Order.php:572-584 | app/Controller/Admin/Api/RechargeOrder.php:478-490 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Order.php:572\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":572}}}],"partialFingerprints":{"codehealthFindingId/v1":"26a5077ddd6e740805a4ab0a814e70c539bae31f518a7edc49042ab6824f1b2b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/Controller/User/Api/Card.php:38-50 | app/Controller/User/Api/Coupon.php:39-54 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Card.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb10a6281be83160666cf6ec90412bc02b3abc381830e1256e1543481541e277"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/Service/Bind/Order.php:272-284 | app/Service/Bind/Order.php:1365-1377 \u2014 both copies are in the same file, so extract the block 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":"app/Service/Bind/Order.php"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b6ec40d416385e8b66270ef7a2a11aa8a7a97e7536f5f05fa89d98e7a73ed0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): app/Service/ManageSessionManager.php:298-310 | app/Util/UserAgent.php:22-34 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageSessionManager.php"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"816a8e9f0807c7511583968986d045a89a0caa3a252ff81de8994973f8f2142f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Controller/Admin/Api/Coupon.php:158-169 | app/Controller/Admin/Api/RechargeOrder.php:79-90 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Coupon.php:158\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d64674782e34ebcd7486e3bc2cf67342e646ad6d3453536c7d37827c8b8382"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Controller/Admin/Api/Order.php:44-55 | app/Controller/Admin/Api/RechargeOrder.php:45-56 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Order.php:44\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba20df0bd16cf24cb83267a378a4b395c5a553cedfc35b827eb74db8c51122a6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Controller/Admin/Api/Upload.php:45-56 | app/Controller/User/Api/Upload.php:40-51 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Upload.php\u0060 and \u0060app/Controller/User/Api/Upload.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Upload.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8116cd63113bff3cc94b8b3fe1245a109ecda1129f5ccab7412533e651293a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Service/Bind/Message.php:159-170 | app/Service/Bind/Message.php:174-185 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/Message.php:159\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f79685d8a6c5a992e2ed0c1b0de5f31ccb6bbbe43309e6c544de37792697c421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Service/Bind/Order.php:591-602 | app/Service/Bind/Shop.php:149-160 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"89356c843afef1b1b0115d19829e5b2c3adea4cce6f996f850a855bc902781f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Service/ManageSessionManager.php:77-88 | app/Service/UserSessionManager.php:77-88 \u2014 before extracting anything, compare \u0060app/Service/ManageSessionManager.php\u0060 and \u0060app/Service/UserSessionManager.php\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageSessionManager.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf73bd64891768de195eec75153cb3350eb3de194f3400c68a21e905209069e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Service/ManageSessionManager.php:262-273 | app/Service/UserSessionManager.php:271-282 \u2014 before extracting anything, compare \u0060app/Service/ManageSessionManager.php\u0060 and \u0060app/Service/UserSessionManager.php\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageSessionManager.php"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f075de1a2892f812adc27e394009085af4ca3c15d980dd69529cf45090b7954"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): app/Service/ManageWebauthnService.php:41-65 | app/Service/ManageWebauthnService.php:168-179 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageWebauthnService.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec1cff2f242b041af31acb587fb5aa63f0ed6bde95f9100f6ca54761c1d0fac2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 7): app/Controller/Admin/Api/BusinessLevel.php:163-173 | app/Controller/Admin/Api/Card.php:42-52 | app/Controller/Admin/Api/Category.php:48-58 | app/Controller/Admin/Api/Commodity.php:55-65 | app/Controller/Admin/Api/Commodity.php:215-224 | app/Controller/Admin/Api/Coupon.php:39-49 | app/Controller/Admin/Api/Manage.php:40-50 \u2014 there are 7 copies across 6 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 7 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/BusinessLevel.php:163\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca925f1852962bf8cc65023fb10adb6b054a556135a91148b0f99875d0b9734f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 5): app/Util/Schema.php:98-108 | app/Util/Schema.php:163-173 | app/Util/Schema.php:208-218 | app/Util/Schema.php:267-277 | app/Util/Schema.php:318-328 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Util/Schema.php:98\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Schema.php"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba719fa99c4ccfb131f29e21e887115f926ad71ba420679a6131772d6fc132c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/Controller/Admin/Api/Card.php:511-521 | app/Controller/Admin/Api/Card.php:530-540 \u2014 both copies are in the same file, so extract the block 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":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"772c9813947a9760269caf4ee22583c8e2e854a8bf1c31cb908c589f525e30c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/Controller/Admin/Api/Card.php:589-599 | app/Controller/User/Api/Card.php:192-202 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Card.php\u0060 and \u0060app/Controller/User/Api/Card.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":589}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2312433435dee224afa2d63d6d4937bc84e0ecb382fcdf6b48485a52c229b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): app/Controller/Admin/Api/User.php:41-50 | app/Controller/Admin/Api/User.php:90-100 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/User.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d048e0f51bfdff6dae4e47514e4bf4792ee4df8fd0a9a48145a994eed59810"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/Controller/User/Api/Master.php:94-104 | app/Controller/User/Api/Master.php:244-254 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Master.php"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8900e718cab5707f9c739da11477900e9a6b7211493a505a9b34d1d2d75661"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 2): app/Service/Bind/Pay.php:234-244 | app/Util/Theme.php:74-83 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/Pay.php:234\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Pay.php"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"62971735c2d971455ec449bbe171230d2d58a816ea3b6063da6ebe18ef727d3a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): app/Controller/Admin/Api/BusinessLevel.php:81-91 | app/Controller/Admin/Api/BusinessLevel.php:107-117 | app/Controller/Admin/Api/BusinessLevel.php:119-128 | app/Controller/Admin/Api/Group.php:75-85 | app/Controller/Admin/Api/Group.php:101-111 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/BusinessLevel.php\u0060 and \u0060app/Controller/Admin/Api/Group.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/BusinessLevel.php:81\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"46332a7647f0076f2c77cb850173f42b292a450fbc15ee55f63d2632a4782bf3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Controller/Admin/Api/BusinessLevel.php:118-127 | app/Controller/Admin/Api/Pay.php:188-197 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/BusinessLevel.php:118\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"98001c6cb20b550fe639d4fdbe5def52f792f83bc20b0264ad898f5c317ce636"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Controller/Admin/Api/BusinessLevel.php:233-242 | app/Controller/Admin/Api/Group.php:206-215 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/BusinessLevel.php\u0060 and \u0060app/Controller/Admin/Api/Group.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 98 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/BusinessLevel.php:233\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2db62684ef55892a3084d09f140b573d99de39df4a988e4c7755aae8284238d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): app/Controller/Admin/Api/Card.php:81-89 | app/Controller/Admin/Api/Coupon.php:79-88 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a51fd4f3c8e02a829e0222f9d94e48f061938934dc3f7a6b0167c3160ab3973"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Controller/Admin/Api/Manage.php:206-215 | app/Controller/Admin/Api/Manage.php:306-315 \u2014 both copies are in the same file, so extract the block 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":"app/Controller/Admin/Api/Manage.php"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"937fa48f6a76466c73642c990ef2c97ff8f30d86a8a0db0c920c3e02829c143c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): app/Controller/Admin/Api/Store.php:610-618 | app/Service/Bind/Message.php:115-124 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Store.php:610\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":610}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0a57ec24e5395436bd66401e4cef36cde3a106136c67aa27171a2445f388837"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Controller/Admin/Api/User.php:375-384 | app/Controller/Admin/Api/User.php:501-510 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/User.php:375\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/User.php"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe76a6d4b3bc62f756ba079c9fdad84374f3665169d2dfb382f3434bfaa95522"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Controller/User/Api/Authentication.php:203-212 | app/Controller/User/Api/Security.php:233-242 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/User/Api/Authentication.php:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af570a241113b171e68dbceebc65880b8a6b0ee743608b7b08d544c07246696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Controller/User/Api/Authentication.php:273-282 | app/Controller/User/Api/Security.php:254-263 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/User/Api/Authentication.php:273\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f7e5266cf0da0f5fcedb56d7a415e2efd374ceb7bcb0d8f1ec7fa41929e8370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): app/Controller/User/Api/Master.php:296-305 | app/Controller/User/Api/Master.php:341-349 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/User/Api/Master.php:296\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Master.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"6549ebf9618b7569693d2fbd859fb10c7c3fc974cbe0a4ef6e1dff8e61343261"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u201310 lines \u00D7 3): app/Service/Bind/App.php:186-195 | app/Service/Bind/App.php:256-265 | app/Service/Bind/App.php:397-401 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/App.php:186\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/App.php"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f2af6af4f6127bf9ef6e8bc44356999f635151ae59d06feab43dcdea3ce8d21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Service/Bind/Message.php:92-101 | app/Service/Bind/Message.php:272-281 \u2014 both copies are in the same file, so extract the block 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":"app/Service/Bind/Message.php"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"81a141579b92bfc90801ba667886f691168f34db5a6e4984d2431716a4309f89"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Service/Bind/Message.php:1028-1037 | app/Service/Bind/Ticket.php:1348-1357 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/Message.php:1028\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/Service/Bind/Ticket.php:1359\u0060 calls \u0060getimagesize\u0060, \u0060is_array\u0060, \u0060strtolower\u0060 and \u0060app/Service/Bind/Message.php:1038\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7efe03a3132b8562421d59085b68e437c8678746cd2176c1cd23c9339957f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): app/Util/UploadPurge.php:104-113 | app/Util/UploadPurge.php:115-124 \u2014 both copies are in the same file, so extract the block 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":"app/Util/UploadPurge.php"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e6ebf3c76f4281e195ec9584807a8a0fae88c08a72393329f5d413199eab1c5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 8): app/Controller/Admin/Api/BusinessLevel.php:167-175 | app/Controller/Admin/Api/Card.php:46-54 | app/Controller/Admin/Api/Category.php:52-60 | app/Controller/Admin/Api/Commodity.php:59-67 | app/Controller/Admin/Api/CommodityGroup.php:49-57 | app/Controller/Admin/Api/CommodityGroup.php:83-91 | app/Controller/Admin/Api/Coupon.php:43-51 | app/Controller/Admin/Api/Manage.php:44-52 \u2014 there are 8 copies across 7 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 8 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/BusinessLevel.php:167\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"38faee772196ac9e6ff4aaf2d6a064f62f497b9bdde87483b183d71874e7316f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): app/Controller/Admin/Api/Card.php:687-694 | app/Controller/Admin/Api/Card.php:738-745 | app/Controller/Admin/Api/Order.php:179-187 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":687}}}],"partialFingerprints":{"codehealthFindingId/v1":"753e28dd48072aa257af0710715539bfd2a73d7df749af5263e8ec62bcf4c125"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): app/Controller/Admin/Api/Store.php:614-622 | app/Service/Bind/Message.php:120-128 | app/Service/Bind/Ticket.php:737-745 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Store.php:614\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c92d39ba15f788d184e8ff644eb32d3cdd743ccc428801c663383565f230e72"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 3): app/Controller/Base/View/Manage.php:24-32 | app/Controller/Base/View/ManagePlugin.php:22-30 | app/Controller/Base/View/UserPlugin.php:21-28 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Base/View/Manage.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"00cd1a579de9c1d1b91291a7a37f6aee6b05977d7655fea1d81f191e552c622c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/Controller/Admin/Api/Card.php:212-219 | app/Controller/Admin/Api/Order.php:39-47 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"72000cb85736575a691867617b529df4f29a5e92a9032adcc6a2370a5c23e5df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Controller/Admin/Api/Category.php:472-480 | app/Controller/User/Api/Category.php:76-87 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":472}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fed937c1aee23e37b3d84dd1d6f310bacdee2909513274606d6ebbf79d0964a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20139 lines \u00D7 2): app/Controller/Admin/Api/Config.php:893-901 | app/Controller/Admin/Api/Config.php:967-973 \u2014 both copies are in the same file, so extract the block 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":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22c3dec222091629787c855f376a7cab3da988be2a5bc70bb6b9c153a3ede22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Controller/Admin/Api/Coupon.php:425-433 | app/Controller/Admin/Api/Coupon.php:444-452 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Coupon.php:425\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"71b25042c9418453913f2e141a64a56a55dc967231fd71f2eff057c46fe9f2f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (4\u20139 lines \u00D7 3): app/Controller/Admin/Api/File.php:495-503 | app/Service/Bind/Message.php:144-147 | app/Service/Bind/Ticket.php:1283-1291 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/File.php:495\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/Controller/Admin/Api/File.php:504\u0060 calls \u0060html_entity_decode\u0060, \u0060trim\u0060 and \u0060app/Service/Bind/Message.php:147\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/File.php"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bb10f43920a9e04defc8d640a7d8ca75d26f590be91814c82b1ecd93911eec"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Controller/Admin/Api/Upload.php:101-109 | app/Controller/User/Api/Upload.php:103-111 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Upload.php\u0060 and \u0060app/Controller/User/Api/Upload.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Upload.php"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"b412353d85f8f4b2272813c0bb16323af77fedb290e2e8040947567ad9db1596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Controller/Shared/Commodity.php:433-441 | app/Controller/User/Api/Index.php:329-337 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Shared/Commodity.php:433\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Shared/Commodity.php"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c20c34507a20e7293364de44b7ed41a0c5735bf0c56ecfe6496dba3c67cad3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/Model/Config.php:318-325 | app/Model/Config.php:375-383 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Model/Config.php:375\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/Model/Config.php:365\u0060 calls \u0060useExclusiveLock\u0060, \u0060use\u0060, \u0060decodeCache\u0060 and \u0060app/Model/Config.php:316\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/Config.php"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"78197919fa4b10df9af3f8325e75a23a36602fd842ee8acb254b77ef9206ba77"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/Service/Bind/App.php:60-68 | app/Service/Bind/App.php:582-589 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/App.php:60\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/App.php"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"365afd13b732544efd0cc22d1fd6c0e520076163760c53e1b96594cacf33af76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Service/Bind/ManageSSO.php:77-85 | app/Service/Bind/ManageSSO.php:138-146 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/ManageSSO.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cabc94c6aca8ad9bec8fe6917c91ad51cd83f9d2c8ed459d2a01d902bfde70"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Service/Bind/Ticket.php:711-719 | app/Service/Bind/Ticket.php:820-828 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":711}}}],"partialFingerprints":{"codehealthFindingId/v1":"5394112eae446593bdf8f2aea2c2fbc3a6a9f2541db4b1ec6f6ada2e843437b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u20139 lines \u00D7 2): app/Util/CallbackIpWhitelist.php:134-142 | app/Util/Client.php:203-210 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/CallbackIpWhitelist.php"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c0d45ddc4d4cd25ed6e544f86b7b49d2687c69443dadd01e786cae33d4c62b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): app/Util/SharedPayload.php:123-131 | app/Util/SharedPayload.php:184-192 \u2014 both copies are in the same file, so extract the block 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":"app/Util/SharedPayload.php"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"f22fe0aee4e04bfb2de70e863887b2c524f77056ab5a6d6da8ae3b881d9fd5ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): app/Service/Bind/Message.php:95-102 | app/Service/Bind/Message.php:222-229 | app/Service/Bind/Message.php:275-282 | app/Service/Bind/Ticket.php:854-861 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff01b5024e14005ca8ff3a7fbddbcdee8c205195215e8116a27c7e2255d8c56"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/Controller/Admin/Api/Coupon.php:274-281 | app/Controller/User/Api/Coupon.php:81-90 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Coupon.php\u0060 and \u0060app/Controller/User/Api/Coupon.php\u0060 as WHOLE FILES: this scan already matched 3 separate duplicated blocks between them, totalling at least 50 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Coupon.php:274\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee27b769a717be05321abc5a6f6c8baff37d70741fd4f9f29b79ca68534c7faa"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/Controller/Admin/Api/Manage.php:573-580 | app/Controller/Admin/Api/Manage.php:599-606 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Manage.php:573\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Manage.php"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec098abea03a1d0e0884d7fefd680f992045b0f3b1b965b4cceb983824b12cd5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/Controller/Admin/Api/Upload.php:145-152 | app/Controller/User/Api/Upload.php:145-152 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Upload.php\u0060 and \u0060app/Controller/User/Api/Upload.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Upload.php:145\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Upload.php"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37d0d444648deb6d187fc8e5d7b094208dae29a23cd2670448994893b78a72d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/Controller/User/Api/Authentication.php:199-206 | app/Controller/User/Api/Authentication.php:224-231 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/User/Api/Authentication.php:199\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"065867df5eed54cc9364d812c1c8ddd0589ba1559fa4449fd8747c136884dc3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/Controller/User/Api/Authentication.php:269-276 | app/Controller/User/Api/Authentication.php:295-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/User/Api/Authentication.php:269\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"338dc93bfa1b464db387763f8425c1065aa40f9a3cc3f45b9e5123fc8394a420"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/Model/Config.php:561-568 | app/Model/Config.php:620-627 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Model/Config.php:561\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/Config.php"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddb2096487a6d78edd623d5e404b217d5226bd4a41ebedb62eae5a12df2d6e81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/Service/ManageSessionManager.php:40-47 | app/Service/UserSessionManager.php:44-51 \u2014 before extracting anything, compare \u0060app/Service/ManageSessionManager.php\u0060 and \u0060app/Service/UserSessionManager.php\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageSessionManager.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"e765efb86bad792cfb6d630eec70ded008b1a698e319dc1f20da93541b955a81"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): app/Controller/User/Api/Authentication.php:198-204 | app/Controller/User/Api/Authentication.php:223-229 | app/Controller/User/Api/Authentication.php:268-274 | app/Controller/User/Api/Authentication.php:294-300 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba650e0b133b99074030770f02b1af4854f58003e934ac260786e2edcc35c188"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/Controller/User/Api/Authentication.php:202-208 | app/Controller/User/Api/Authentication.php:227-233 | app/Controller/User/Api/Security.php:232-238 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"707fa524de27bed97d9da70a89b04fe65dfb5ba4d83b776a400f6937e4fb3357"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): app/Controller/User/Api/Authentication.php:272-278 | app/Controller/User/Api/Authentication.php:298-304 | app/Controller/User/Api/Security.php:253-259 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dafa713794852e2cd7bc5dcc6c45f6b3667c443b333ad3090e58780bf74053e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/Controller/Admin/Api/Card.php:170-176 | app/Controller/Admin/Api/Coupon.php:197-203 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Card.php:170\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f8e18651baab242944a98cea637540a46cf7230caaa845ed3199ec15bec5fa3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): app/Controller/Admin/Api/Cash.php:57-62 | app/Controller/Admin/Api/User.php:281-287 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Cash.php"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"61eb7c7813af0cd2c37bc4648f0655ec579310b0e013aa3c0731a170be92861c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/Controller/Admin/Api/Coupon.php:516-522 | app/Controller/Admin/Api/Coupon.php:560-566 \u2014 both copies are in the same file, so extract the block 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":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"724d2042b4a937f7dd2ec25cf04e10601c2cc3deb3d8160ceb7f48bb164ba6c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/Controller/Admin/Api/Message.php:82-88 | app/Controller/User/Api/Message.php:54-60 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Message.php"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"1850893a82b6814b2b080f7578fa6542fd33715c3f5cfc44fc85f1793c26235d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/Controller/Admin/Api/Order.php:521-527 | app/Controller/Admin/Api/RechargeOrder.php:326-345 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Order.php:521\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"911dc9fe89c4e1ae1ea9c4949c276721903900b67cef2aaf7ea860c481dcf68f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/Controller/Admin/Api/Order.php:594-600 | app/Controller/Admin/Api/RechargeOrder.php:500-506 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2951fb2cbbd72942d494d9ab43b250dffff21c9503b11032b4796499f3bd47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/Controller/Admin/Api/Upload.php:71-77 | app/Controller/User/Api/Upload.php:74-80 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Upload.php\u0060 and \u0060app/Controller/User/Api/Upload.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Upload.php:71\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Upload.php"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"af74190c325a8181412f876d7926d72ac90633684f03413089d97a5b8cbf2d57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/Service/Bind/Ticket.php:386-392 | app/Service/Bind/Ticket.php:411-417 \u2014 both copies are in the same file, so extract the block 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":"app/Service/Bind/Ticket.php"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"85ff32ccf63e4903aea73cfaef97133ae08460edcfc302cf9feb817105683ca0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): app/Service/ManageWebauthnService.php:78-84 | app/Service/UserWebauthnService.php:104-110 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/ManageWebauthnService.php:78\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/Service/ManageWebauthnService.php:85\u0060 calls \u0060JSONException\u0060, \u0060getMessage\u0060, \u0060query\u0060 and \u0060app/Service/UserWebauthnService.php:111\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageWebauthnService.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"efd974f532235bd9b91a736f4a204b9a6c5f7b1f4aedfd4f6edd161e21f8a6db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5\u20136 lines \u00D7 4): app/Controller/User/Api/Security.php:330-334 | app/Controller/User/Api/Security.php:366-371 | app/Controller/User/Api/Security.php:398-403 | app/Controller/User/Api/Security.php:449-454 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/User/Api/Security.php:330\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Security.php"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d440c71ff151d735ceedf37a4fd98dace98fa252591b6780b37ac25610e8ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): app/Service/Bind/Email.php:377-382 | app/Service/Bind/Email.php:414-419 | app/Service/Bind/Email.php:438-443 \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":"app/Service/Bind/Email.php"},"region":{"startLine":377}}}],"partialFingerprints":{"codehealthFindingId/v1":"427847718d4c07ea63193059a3f447cc327583854356e7527c3a7c56cf1d860d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Controller/Admin/Api/Card.php:339-344 | app/Controller/User/Api/Card.php:80-85 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Card.php\u0060 and \u0060app/Controller/User/Api/Card.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 95 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Card.php:339\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8a779325bf11b547757754131dabc567e5127094116d66150034dd0aa60ad54"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Controller/Admin/Api/Order.php:586-591 | app/Controller/Admin/Api/RechargeOrder.php:492-497 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Order.php\u0060 and \u0060app/Controller/Admin/Api/RechargeOrder.php\u0060 as WHOLE FILES: this scan already matched 14 separate duplicated blocks between them, totalling at least 245 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ae6d3f87c3ea792fa564d1fa7dafe4b94bd7d7ccdd714e6a776deb3f567e86"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Interceptor/ManageSession.php:34-39 | app/Interceptor/UserSession.php:28-33 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Interceptor/ManageSession.php"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"52142a0184c7770d3410d72ebb71ddea198d0816be1f1451c0841e6f2796e19f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Service/Bind/Order.php:251-256 | app/Service/Bind/Order.php:389-394 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/Order.php:251\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060app/Service/Bind/Order.php:385\u0060 calls \u0060getValuationPrice\u0060, \u0060Decimal\u0060 and \u0060app/Service/Bind/Order.php:249\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bbc7101a08c1f0cb474947c4f0c4e408a0c5701ae97fe0414685414364f846b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/Controller/Admin/Api/Commodity.php:621-625 | app/Controller/Admin/Api/Commodity.php:673-679 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Controller/Admin/Api/Commodity.php:621\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":621}}}],"partialFingerprints":{"codehealthFindingId/v1":"27795ba0d1fe4ffa8c70b00b9b32549bb5e37236245cb0befb349c48a0ce93a0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/Controller/Admin/Api/Manage.php:485-489 | app/Controller/User/Api/Security.php:553-557 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Manage.php"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea8a3c39175bef06e6c1fde87aa8cf24b1fc9dea175071270601e61e7984ee9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/Controller/Admin/Api/Upload.php:58-62 | app/Controller/User/Api/Upload.php:53-57 \u2014 before extracting anything, compare \u0060app/Controller/Admin/Api/Upload.php\u0060 and \u0060app/Controller/User/Api/Upload.php\u0060 as WHOLE FILES: this scan already matched 5 separate duplicated blocks between them, totalling at least 41 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. The two sit in different directories, so one cannot simply be deleted in favour of the other while both are reached separately: hoist the shared part into a location both already depend on and have each file call it, and retire whichever file turns out to have no caller of its own left. Extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Upload.php"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff2d7a5d72029d3ae90e4003b4a8af4797ca068c54f43663d2500a74651b9cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/Controller/User/Api/Bill.php:31-35 | app/Controller/User/Api/Cash.php:153-157 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Bill.php"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"07980e5c0b78340632445af7266c094337644107248e3d54fe78b61a751fc84c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/Service/Bind/Order.php:229-233 | app/Service/Bind/Order.php:366-370 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/Order.php:229\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d5cef1f1414fb66cfb6dec3166e064e4729cc1cbaecc429f3a6766b24277b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/Service/Bind/Shared.php:727-731 | app/Service/Bind/Shared.php:744-748 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/Shared.php:727\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060app/Service/Bind/Shared.php:734\u0060 calls \u0060array_key_exists\u0060, \u0060is_array\u0060, \u0060foreach\u0060 and \u0060app/Service/Bind/Shared.php:750\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1f597cc1eb6c435de911d1321a009810d682aa896b09fe374e186c7722b59a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): app/Util/RichHtml.php:138-142 | kernel/Waf/Firewall.php:117-121 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Util/RichHtml.php:138\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/RichHtml.php"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"4193d874db340abb1880727f3a0bdd31af3cf61c5a7943f432602cb1e2265970"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): app/Model/Card.php:46-56 | app/Model/Ticket.php:77-97 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Model/Card.php:46\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/Card.php"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d07e52987b9125638c8699baaeea1a04ac533101752d69401f0ff30b306cd8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): app/Controller/Admin/Api/Category.php:259-263 | app/Controller/Admin/Api/Order.php:242-246 | app/Controller/Admin/Api/RechargeOrder.php:223-227 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3a010aff6a88a7974d28df67d35d333f75fa948c84f08742eb59b8d124faa5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Interceptor/Business.php:40-45 | app/Interceptor/Store.php:39-44 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Interceptor/Business.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd0958b2339487c36263ea02ac7a1960afd1d47f82432bda3eabbc91a2f184b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Interceptor/Owner.php:38-43 | app/Interceptor/Super.php:38-43 \u2014 before extracting anything, compare \u0060app/Interceptor/Owner.php\u0060 and \u0060app/Interceptor/Super.php\u0060 as WHOLE FILES: 93% of the shorter file\u0027s lines also appear in the other, so this reads as one file having been copied from the other rather than as a helper waiting to be extracted. The 1 duplicated block(s) this scan matched between them are fragments of that copy, not the extent of it \u2014 treat the file pair as the unit. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Interceptor/Owner.php"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bbfc36fc11e3464624f84ab940fc5e9b444f5c4ee5db641c23bfda30ffee33"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): app/Service/Bind/Currency.php:62-69 | app/Service/Bind/Pay.php:641-648 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060app/Service/Bind/Currency.php:62\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Currency.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e8d8e1600bb40dee7cba4443dcaa9352ce0180520ade9c27b3cf8df701a061"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Service/Bind/Message.php:41-46 | app/Service/Bind/Ticket.php:48-53 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09fe58fd0d160b65e9712e2c1ac436a05931f790bee02c9e2c24aa8806490a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Service/ManageSessionManager.php:147-152 | app/Service/UserSessionManager.php:152-157 \u2014 before extracting anything, compare \u0060app/Service/ManageSessionManager.php\u0060 and \u0060app/Service/UserSessionManager.php\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageSessionManager.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a20f53bb044caba7488a585deef642732623508b31b484dab9ebb62876ed7c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Util/Date.php:140-145 | kernel/Util/Date.php:155-160 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Date.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"72563fdf1f0c8419a6b4a762f25dcd6d423e1395a09313a4bf3b932ba80e21c9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Service/ManageSessionManager.php:137-142 | app/Service/UserSessionManager.php:142-147 \u2014 before extracting anything, compare \u0060app/Service/ManageSessionManager.php\u0060 and \u0060app/Service/UserSessionManager.php\u0060 as WHOLE FILES: this scan already matched 7 separate duplicated blocks between them, totalling at least 78 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageSessionManager.php"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e8001ccee9476422fd13905aae12b36414e0a8db0cdacdcc7cf29f5bb298c91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Controller/User/Api/Card.php:246-251 | app/Controller/User/Api/Card.php:259-264 \u2014 both copies are in the same file, so extract the block 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":"app/Controller/User/Api/Card.php"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f5603c3a938a99963f5da9bd88d488291856875b325df6e9a375eb760468c00"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Controller/User/Api/Security.php:155-160 | app/Controller/User/Api/Security.php:179-184 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Security.php"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b2ca50882985e1c43516d56719d50b1c11dcf6dfe7a6a89f2f0a3be9abab71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): app/Service/Bind/Shared.php:716-721 | app/Service/Bind/Shared.php:734-739 \u2014 both copies are in the same file, so extract the block 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":"app/Service/Bind/Shared.php"},"region":{"startLine":716}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c950df7be2ed6ba91e232c2b6e99114041a7d4188edbca4242d3714f839e2e"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: Format (LCOM4 21): Format\u0027s methods fall into 21 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 21 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/format.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f7facddbe473216f2f4594dbd3d3c725d93c1aa23356aaa3e920fdd6c9e2cb"}},{"ruleId":"D14","level":"error","message":{"text":"Banned license: smarty/smarty: \u0060smarty/smarty\u0060 v3.1.46 is in the production \u0060packages\u0060 list of this repository\u0027s composer.lock \u2014 what a \u0060composer install --no-dev\u0060 puts in vendor/ \u2014 and every licence it declares is one this policy bans (\u0060LGPL-3.0\u0060). Where a package declares several licences it is charged only when all of them are banned. Replace the package, or record an accepted exception."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ed1136f75051350d78ff02de3b9cdcb2dc51225ebbc65208374d627eb601978b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/common/js/component/tree.select.js: assets/common/js/component/tree.select.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 1045 in tree.select.layui.define() at line 1. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/common/js/component/tree.select.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/tree.select.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6a92154ea79fb2a9f21993bed44af90c9915f478159dec3230842f4041cdb5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Service/Bind/Order.php: app/Service/Bind/Order.php changed 16 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 125 in Order.trade at line 555. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Service/Bind/Order.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Order.php"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"242a659a53ea4c28a9c414db0adacf97a9f51b35f539a1636434d23106ab13dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/User/Api/Commodity.php: app/Controller/User/Api/Commodity.php changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 73 in Commodity.save at line 89. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/User/Api/Commodity.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Commodity.php"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"447bf6f0f81f48737f9bdb283f8a80a2a57ade59f1488ad51a23b4fc5ee22388"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/Commodity.php: app/Controller/Admin/Api/Commodity.php changed 13 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 60 in Commodity.save at line 382. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/Commodity.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Commodity.php"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6816d62cf16fee08dc99ff662ffe4d84f1ca9c386b9fc0e9002ccba47f8a94"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/common/js/component.js: assets/common/js/component.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 90 in Component.popup at line 339. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/common/js/component.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"8058b8ca22a5ca7c79681fab383ef631aa96c9e7dbd5ae39a41a374c79bb8b36"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/config/index.js: assets/admin/controller/config/index.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 72 in index._ThemeSetting at line 144. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/config/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/config/index.js"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a7392f783ae6d2696afe05c13b810e0968f441eac398855febe43dbc431854b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/Store.php: app/Controller/Admin/Api/Store.php changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in Store.addItem at line 1081. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/Store.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Store.php"},"region":{"startLine":1081}}}],"partialFingerprints":{"codehealthFindingId/v1":"b832c71d3f60063ea0b5cf6e054d487be99d864714e3932ef66f1869ac348a1c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/Config.php: app/Controller/Admin/Api/Config.php changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in Config.emailFailureMessage at line 1338. 1 of those changes was a fix/bug commit, and the other 14 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/Config.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":1338}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8232d18178efa349188cd46babcdba7b7256b94ecdf897d14199be1a21a933b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/common/js/component/table.js: assets/common/js/component/table.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in Table.#getPreprocessColumn at line 1382. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/common/js/component/table.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/table.js"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42dea967a22b04adc6a3a77e7e3457af6e232c73f476ebfa02e5e77b23de05d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/Pay.php: app/Controller/Admin/Api/Pay.php changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in Pay.paymentSaveMap at line 139. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/Pay.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Pay.php"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f30974de2a69740642d486a467575a13506241150e8618298e41c8a4cad837"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/Manage.php: app/Controller/Admin/Api/Manage.php changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in Manage.save at line 120. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/Manage.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Manage.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab49499bcb1ebeb20b59643905e69c0b5caf6de5281d92af14cf3a0252635d2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/trade/commodity.js: assets/admin/controller/trade/commodity.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in commodity.modal at line 123. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/trade/commodity.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"4160689486063e11160f724e31ceb4043c14d4245d2d6d82be61a916036f5b73"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/User/Api/Index.php: app/Controller/User/Api/Index.php changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Index.commodity at line 67. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/User/Api/Index.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Index.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4916538d1f868aaed610b0a80a37e0cc2aa16e4d31706e1eaca218a307c5dc3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/trade/coupon.js: assets/admin/controller/trade/coupon.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 49 in coupon.createCoupon at line 204. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/trade/coupon.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"e83c7fd804bf80c847a3ff79b19ab6a8bbcb7f3db2028c0ca5adfdff3ad340f5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/common/js/editor/markdown/editorv2.js: assets/common/js/editor/markdown/editorv2.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in editorv2.register at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/common/js/editor/markdown/editorv2.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"40e6093775b11094c6fd5a9e477d5167cf0c53d168df6728d40c9704c8de105b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/shared/store.js: assets/admin/controller/shared/store.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 71 in store.mountRemoteProductPicker at line 349. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/shared/store.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/shared/store.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"edd1726988589de42f9381aeec6fd63cba9b454d4b6eaafca497171e39672ed3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/User/Api/Authentication.php: app/Controller/User/Api/Authentication.php changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in Authentication.register at line 45. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/User/Api/Authentication.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b6f616060ec02db578f68b2d82acc2eb8642f845dea2c29c5a91029476a902"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/trade/order.js: assets/admin/controller/trade/order.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in order.$(\u0022.btn-app-export\u0022).off().on() at line 478. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/trade/order.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/order.js"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b4d2273e16cc69bd4de182ad81eb0c80efeca0dd8b06fa33577f3aad265d4f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/User.php: app/Controller/Admin/Api/User.php changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 48 in User.save at line 84. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/User.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/User.php"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8f5eb583a87cddee1e18744e68c60e66d4e3e8a83cb6fcf2b2bf62394fdea96"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/pay/api.js: assets/admin/controller/pay/api.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in api.confirmPayDelete at line 99. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/pay/api.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/pay/api.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f58c8dda7663ace4c2b47ed45dac872343ddc374bba5171f5da7bf15fde6c1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/user/index.js: assets/admin/controller/user/index.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in index.mobileAccountSubmit at line 44. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/user/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/index.js"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"889f9fcc12a08c7d47b1add548209a8cb8fd39f43a2ecc8fe39ff00e8c5174ab"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/store/home.js: assets/admin/controller/store/home.js changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in home._Bill at line 809. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/store/home.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c51eaf489c64d4c9c76d34d3c6df7a572e6f03657b1597fbaa0c7331ff312d0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/common/js/component/form.js: assets/common/js/component/form.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in Form.constructor at line 3. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/common/js/component/form.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component/form.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"a20590bf81aec1c6b4606d749acbfa71c8703ed49034bbfc7ebaa8b90e08469e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Service/Bind/Shared.php: app/Service/Bind/Shared.php changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in Shared.syncRemoteItem at line 852. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Service/Bind/Shared.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"76ac8bb80c38b17e888b0d9296cbbd46f9efcf7026d0a56da218ee20b28f8b6a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/user/group.js: assets/admin/controller/user/group.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 58 in group.CommodityGroupModal at line 181. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/user/group.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/group.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b88c744255e7f75d05fcacb42a704216f17e1cc093d5393a5732a9f6562d334"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/Category.php: app/Controller/Admin/Api/Category.php changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 39 in Category.save at line 431. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/Category.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0462a4a6d91de242f5522a6dc06d0ebb73a0f7441a8972d0762ce5b75110e1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/user/recharge.order.js: assets/admin/controller/user/recharge.order.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in recharge.order.$(\u0022.btn-app-export\u0022).off().on() at line 222. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/user/recharge.order.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/recharge.order.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f1772e4e197187f528faf9372dbfa1ea15481354dc6307c4916c21c1bb8414"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Service/Bind/App.php: app/Service/Bind/App.php changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in App.updatePlugin at line 216. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Service/Bind/App.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/App.php"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"653082ea2a2129977bfee7e7200fc5fc639659045138f5752adf1ab9840533b6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Service/Bind/Shop.php: app/Service/Bind/Shop.php changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Shop.getItem at line 124. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Service/Bind/Shop.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shop.php"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cebc92d6bbe699f521c014b7338a0a0cb95806409d64e4c4a8b480654294bc5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Base/View/User.php: app/Controller/Base/View/User.php changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in User.theme at line 55. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Base/View/User.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Base/View/User.php"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2c9932174f94da4270027995e31f852d49ae244b72e87ff77f17b383e0c64d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Service/Bind/ManageSSO.php: app/Service/Bind/ManageSSO.php changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in ManageSSO.login at line 39. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Service/Bind/ManageSSO.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/ManageSSO.php"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe76a20ea269fc3582c291540fcc810fbb8bc6dc2fdd4d1e403c01b7f8bc95b8"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/trade/card.js: assets/admin/controller/trade/card.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in card.$(\u0022.btn-app-export\u0022).off().on() at line 591. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/trade/card.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/card.js"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28d4a34bcab253e08df566b7860da162b771d25286d0c5b7fbbc52c20c421de"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/Card.php: app/Controller/Admin/Api/Card.php changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Card.save at line 334. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/Card.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Card.php"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"126214be89f38415b61a0d6c53a7b4cba8650cff86c13a87a5229aa2c1898768"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/Order.php: app/Controller/Admin/Api/Order.php changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in Order.orderExportQuery at line 67. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/Order.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"93dca4459317e05e1c3a7776cb9d166168587e1f44dfdb131add723ab8f5c5fa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Service/Bind/Query.php: app/Service/Bind/Query.php changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in Query.get at line 152. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Service/Bind/Query.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Query.php"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"9085b1e233cb9316b10a33b0950a5d8ce9b5e9166c3bb677ff40f79836ec3387"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/common/js/ready.js: assets/common/js/ready.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in ready.flushReadyQueue at line 72. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/common/js/ready.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/ready.js"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeb1e8bc6e6da39dab22bee7d742d1162229dcf40dfc3e451b1b50e44b70267c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Model/Config.php: app/Model/Config.php changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in Config.putManyLocked at line 528. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Model/Config.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/Config.php"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c1b42a6a54540cd45dfe1e88fd090d0768e9210d8c9fa93d77ed0f26ffe143"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/User/Api/Category.php: app/Controller/User/Api/Category.php changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in Category.save at line 54. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/User/Api/Category.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Category.php"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7792d8969939139c605486de4d399232bdbd0a61893293f7ad72ce8d1d93aca"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/common/js/util.js: assets/common/js/util.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in Util.post at line 241. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/common/js/util.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/util.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"73b2386bb2dbe23e4924603c81cab832c7bd940bb396f23e42653ae594ff398a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/js/mobile/overlay.js: assets/admin/js/mobile/overlay.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in overlay.presentPopup at line 1130. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/js/mobile/overlay.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/overlay.js"},"region":{"startLine":1130}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5258bdd13d4db66e09145e7f78ab7b8253377d596c82ca944374ab26a898661"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Service/Bind/Image.php: app/Service/Bind/Image.php changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in Image.createThumbnail at line 27. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Service/Bind/Image.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Image.php"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f54faa353305d849cfd941f94aef441cac4e4d8c696ada81da957bb25dc36bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Service/Bind/Email.php: app/Service/Bind/Email.php changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in Email.sendRecipients at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Service/Bind/Email.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Email.php"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd08545c10ad43015b465b3f9744cc60ac495135f1e53323d72698c222ef602e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/User/Api/Master.php: app/Controller/User/Api/Master.php changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Master.setCommodity at line 196. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/User/Api/Master.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Master.php"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"89815471048d967e73dcfeb838914ee0017337f2bdd09efe694999891dc73ab5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Util/Csp.php: app/Util/Csp.php changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Csp.deriveSource at line 417. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Util/Csp.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Csp.php"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ba0f6380cf75aeb735f747e16e086ec84162b1f009c813e3482bd381762c55e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/Coupon.php: app/Controller/Admin/Api/Coupon.php changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 34 in Coupon.couponExportQuery at line 115. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/Coupon.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7c580e83ee4330914c0e919245b9c8b169fe2a6315ebd604da783e5079fb46"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Service/Bind/Recharge.php: app/Service/Bind/Recharge.php changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in Recharge.trade at line 40. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Service/Bind/Recharge.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Recharge.php"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"465757510a54ed8ee96bdddc98160a00be088f9dde58b97b4418284e72ab0278"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/User/Api/Order.php: app/Controller/User/Api/Order.php changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Order.callbackTest at line 129. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/User/Api/Order.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Order.php"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc0f31670bfcd401663cfaccba0bf0f83c352f67aff687b3b2fdb9245c81171b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/View/Install.html: app/View/Install.html changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in Install.html.renderDb at line 1070. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/View/Install.html\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Install.html"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"bacfcd6b457890862ce95ee7f5257d7f97ed0bff88ada36c39322063bd202632"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/User/Api/Card.php: app/Controller/User/Api/Card.php changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Card.save at line 75. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/User/Api/Card.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Card.php"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"a816f70fe38607fff0a4003de1533d56b0b3c9796200e819b5424a8a89bc9b85"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/pay/plugin.js: assets/admin/controller/pay/plugin.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in plugin.renderConfigForm at line 236. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/pay/plugin.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/pay/plugin.js"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"7709a6926c99b8b91543bd236d7fe47c6d2437c0e27e6b0944cb767c5eca1515"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/RechargeOrder.php: app/Controller/Admin/Api/RechargeOrder.php changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in RechargeOrder.exportQuery at line 64. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/RechargeOrder.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/RechargeOrder.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"7802b8306eb439862acfcb76665079144aacf2bfb78d78c6c62e0ca48e71b1dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/Plugin.php: app/Controller/Admin/Api/Plugin.php changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in Plugin.getPlugins at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/Plugin.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Plugin.php"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"18187968b10f591477421ea989bf0a1223ba7a72fe0d079ea0d11a1c157f3ce7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/file/index.js: assets/admin/controller/file/index.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in index.confirmFileDelete at line 108. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/file/index.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/file/index.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af2c0634ab473b07ce0b97382a00b3b54e3fbe784ccaaf6f76fb0582a2ad7a1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/user/ticket.js: assets/admin/controller/user/ticket.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in ticket.sendReply at line 637. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/user/ticket.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/ticket.js"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"0900a57fb2f52f24fc66e1a94176dc189109d498a58c147a65b50fe04fdd97fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/user/message.js: assets/admin/controller/user/message.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 33 in message.openComposer at line 360. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/user/message.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/message.js"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d00954e0e7d5957cfcd5cae2c298d0cc1713803d390c1d00fd6325dd2a84e4b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/Admin/Api/App.php: app/Controller/Admin/Api/App.php changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in App.plugins at line 121. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/Admin/Api/App.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/App.php"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"abffd96605a029021c92bbef6abd90ac2862dd9ac466dc07ed600706457e1e45"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/User/Api/Cash.php: app/Controller/User/Api/Cash.php changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in Cash.submit at line 35. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/User/Api/Cash.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Cash.php"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e850de52c2cb349ccf8199dc310d5449e9bc8fc2517e9a4c959b7d609ea1b1"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Model/PriceTemplate.php: app/Model/PriceTemplate.php changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in PriceTemplate.applyToConfig at line 78. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Model/PriceTemplate.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/PriceTemplate.php"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"396d46e54e03a577f070390d133074b5dacf5896b595ee49343624267d2cdc2f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/user/controller/user/recharge.js: assets/user/controller/user/recharge.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in recharge.updateSummary at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/user/controller/user/recharge.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/recharge.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0132b3c6d661ed683fdec04be13c0569257ddf17ee1fdcab39c4caf6a35c66bb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/manage/set.js: assets/admin/controller/manage/set.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in set.saveSettings at line 159. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/manage/set.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/manage/set.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a57e668d856ab228edeb0e0d12a732dbb5599d918230c2516b61bbf7ec64dc5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/user/controller/user/message.js: assets/user/controller/user/message.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in message.renderCartoonMobile at line 231. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/user/controller/user/message.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/message.js"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"64087b90ce4310b102fff78e0d0a03faddc577b66f68c2fd6a8ec6d05163a2d9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/js/mobile/navigation.js: assets/admin/js/mobile/navigation.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in navigation.menuContent at line 125. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/js/mobile/navigation.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/navigation.js"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"773d9a2cdb392083ce248334a28f8eaf489bc7b4ad82fcbdf144cbe9c40b2ccf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/manage/manage.js: assets/admin/controller/manage/manage.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in manage.modal at line 20. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/manage/manage.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/manage/manage.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"77cff2a97df77e925e514c2bd12e31e2b6719fc38ae56cae97aba0ef86dcd520"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Controller/User/Api/Coupon.php: app/Controller/User/Api/Coupon.php changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in Coupon.save at line 62. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Controller/User/Api/Coupon.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Coupon.php"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7c2e090b23da41a1122cb2bfd69678a1d044e91a61dd1768c4aa2de92490bc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: app/Service/Bind/Pay.php: app/Service/Bind/Pay.php changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Pay.savePluginConfig at line 396. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- app/Service/Bind/Pay.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Pay.php"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ce028bda7783a1024c54c398d014b0374de794686f61aabda2d1ecc102b64db"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: assets/admin/controller/config/google2fa.js: assets/admin/controller/config/google2fa.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in google2fa.$(\u0022#g2fa-bind-btn\u0022).off().on() at line 87. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- assets/admin/controller/config/google2fa.js\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/config/google2fa.js"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eae4b9b32438359248e20dfef8baa7dac7240353afc11147be3fcbe320dbf6d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: kernel/Util/Plugin.php: kernel/Util/Plugin.php changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in Plugin.hook at line 132. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-07-05..2026-10-03, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-07-05 12:25:56 -07:00\u0027 --until=\u00272026-10-03 12:25:56 -07:00\u0027 --full-history --no-merges -- kernel/Util/Plugin.php\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Plugin.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca0c33a3520d78e2bb07c49e7b7b0153b2e686033d546f2f6b27a660996c0957"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d2bea044ff79d7d275f5a91a6e2f548586178eaf480274c33960ad020c854631"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: 1 of 1 project(s) overshoot their size bounds, lowering Project Cohesion to 0.0/10. The most over is \u0060(repository root)\u0060 (123276 LoC, 459 module-visible types across 75 directories). Review these for cohesion \u2014 draw the boundary inside the module first (group each responsibility into its own package or directory and keep the cross-boundary members non-public), since splitting a published package moves types between packages and breaks consumers."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d5a94650dc74886a0f1f08eb9fb6775f1fc395279ef7e901c970c9d26f767a72"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"21fd33fc0c3a285c5e21acde40cc1f43e3070a53d5e0b8b4aa91106579af5d66"},"properties":{"commitSha":"df26fc7143d3bd2e471591ca85fe3fe6440adaeb"}},{"ruleId":"D28","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"49b6361d50928a88f9ac50a091d01cdb391f842dab2db2e982840b9b45311f01"},"properties":{"commitSha":"4c76d57c05d6f0fefba5ffdea18b8b8359ab3a4a"}},{"ruleId":"D28","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3cdfd7beb31b791ae18dcb425e21eb157c842e7bbcd522cc330573c1a6538db1"}},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8ac37f53f35688072be70f30121830e053d170ed85047727e9354a10f697c78d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c88d04e3bdf96b80d0ed209baa625a0becff7070517e178ea5900e10a6ca98e1"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5b096d2568a0acbf2c1b40ddf829ef956e888f9590b2ba8039ed195938cf55e5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"bca05a9bdc18c46ef193272a232909d5dd93b9b992e0a3e71617612a23940b70"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"94c49e3d6d12948acbfc1cc4c3adc43ce5d48a19ecd14d364541cc0eadd887b6"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c0c89f5a72e26b6dff41b98ee1462ecb8c0c6d488e715d1b4115f0f93b0719a9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3f778e66d69bbdc8d4f99553e5c07a66da4b4f3456f1b0524ab559f5501baa2a"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a5aa347203e9264846fa1d57326a3b6e4db8b24c5cc5c40538a2c98c34909069"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"607edacc2948e636528b66d42999c6ec0282c8bace8a6cdfc30b45fab8045360"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1500d57848f5275c84bdd6c19e9692ae1150577807588cb8d1c6187cd7366852"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2a9570185ecc5d0e1226db77afa2e50d10012724eb599960d163f777d81fb2a7"},"taxa":[{"id":"CWE-522","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-829","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"11875945d9f194c35979f209612216daed9fc328f94b2e58a44b5a9abc484f08"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"828e2945a5fbc63d46a139478939fc29fed1a0282b7a729b124c9be99b891628"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d06185112f0d5502215afb8321cfbe5be5eed79c4ea8cce41be981fec9e3cb8b"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3333f6ce661d7315e49dfc98ed7d8420e2b6c51860bc1cdfc69c9e70f6acbea3"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"34fd691dfafddd36aee0ed4ceb2f772bef95c61383826f93ef27740e15e2c2d1"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"873170f7ab9745cb757b0de40aab93b1d958d282c1d1c3194cb17946b25aa694"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ce732119e7d4bca0563d22809f9e442a2988e5f3cd56475acacd82c25371eeb3"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0b8c6e4581f7205ff72a29d46e2c4d940e1c1f7a03521d7a88430a56b0aab87a"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e4f1d4be5201c1c5da67b13cd3e1fc4172d07470fd41fd3be7e7e51a20f6a147"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e2ad4d43b29dc3c9bc4e61bafa4972f47948a27b290950538579994fef16e65"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f0004cec529d043359b348673a29e42e6800ee26a318cd7ef57a4087ed31b4ad"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2250111f42c50a10d6858c49272e132928d19faff7591adf4c27d9ee48f8a1aa"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"76b3880813d82ad4ed932ecc6352441a47b10243db83a303f87c58cdc5c6e19d"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"353ba7bc3eccdc98fb1bc3adc5ea736b3225ae9922d744a194b33f245d180991"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c76b43aba359d3d0a96c40e2a4bb1e054a8a0773d8bb5079127d445f48a1d005"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f35433bf690a080bcc0080f59a31b9ac6312772b1f7c236e9a4bc4023f394d5"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fd09e946aee7d520dc7dfea0e17e56b0ad87a832f22a2784203563665679f75b"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e62ae500b75264741e2e6b41f077e62cca17ccdf9a10f1f60d5c07e35a0e9e35"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1e970e85104eacf57db5681b36a420c8da6e31bde5508b0b8977efe2127ce06d"},"taxa":[{"id":"CWE-125","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3b18a96302ba8a6b3ca3f85da240f5d6d7aa05b91dfcc495b8ee222ccdfc046c"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"155a1838fecbc09d75d5097f01a063d8b12d4b0841663fa8e6787147c20bb33d"},"taxa":[{"id":"CWE-457","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"96463a046d9ec977fbc7b46168287e7503a56f5ba1cd325f403cfe1cfbc136d6"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"51728a31d4fe94b818102edec70592e78b951226656af6fc9323aa882f2fec8f"},"taxa":[{"id":"CWE-470","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ac11872e8385402303c7c4edf9fea012b2034faf3933d6339dafa0aa43748843"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9666d11434cc9fc47586926ed7d42cdb2a39a5797a43032f1aec8d634d498e6b"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"601cab4f144d242c01fc17571f418d6e67627b54d0959f7d3f6f937db3ce6f2f"},"properties":{"dependency":{"package":"smarty/smarty","version":"v3.1.46","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"be8325c655de3173a89bc1893b2bb956d695b5a9ac5c2de641516800babe5d55"},"properties":{"dependency":{"package":"guzzlehttp/guzzle","version":"7.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1d1bd45efa851b0c277b1b84fa75b7f00f3ecfe68fdef0b298e2b23dfe86ebda"},"properties":{"dependency":{"package":"guzzlehttp/psr7","version":"2.4.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7a762e93109469f56cb8ceb38906e7b649d099d959cc197cc647ef2267cab101"},"properties":{"dependency":{"package":"nesbot/carbon","version":"2.62.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"25921fcc4c3f275b4d3d27edefaea0bfe9229bd25575ce2db9d610b20b2c9d5c"},"properties":{"dependency":{"package":"firebase/php-jwt","version":"v6.11.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D31","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fe2d688610b51e0a5a02c7c5dd1724a4986e40f2689fb84510e2ec0164c27d6a"}},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5cfed0ee4e80785ce23c7083cffdead9acc6c64f9dce56a00ca7178bd3d7bee5"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"20b99052515835a69504f818e06cfe7727ca1df65b206806022f29d404b85d25"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"f5c52fc8fa0d910e1fe9ab97354c4179591244f87053d6a3339f6595421d1048"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D31","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3df67cdfb1b809e5ea1a3c24f74325d658ff4496d078d3fc746c444786f6c148"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b213f6eedd4b140d0bc37bdf1496f72811a643f34064f12518b32e9e83bcfc7"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0e17f71490e4d120a48b2b2881ab866c93b272bef2febb673a3e8e42b2c288ab"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"eb00976a698a5d68999b7ee6d27206fd374e916853e7ff1ead5eed42386f043f"}},{"ruleId":"D36","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90f83b4fa27db32740afe9540c905f3c0499caed87f61049a8a903ecc95b41c3"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"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":"app/View/User/Theme/Cartoon/Common/Header.html"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"811a4d269d6286f347907897dd24ad33eb4c35beced7ded3cbcb6fa36497af42"}},{"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":"app/View/User/Theme/Cartoon/Common/Header.html"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f7e578f53d3a20be1443b968bc2f58f2cc7a380555fca1766e85473a5331c7"}},{"ruleId":"AC1","level":"warning","message":{"text":"\u003Ccanvas\u003E without a text alternative: A \u003Ccanvas\u003E with no aria-label/title and no inner fallback content can\u0027t be described by assistive tech. Add a name or fallback content."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Index/Closed.html"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c14171f4ace21ae4aa72d4bcdc850167f063660a4ee0a72e1e26297ec89d58e"}},{"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":"app/View/User/Theme/Cartoon/Index/Item.html"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d280574d5ed47cc11ca03f1d42ffad030c3703783586fd973dd75728880b638"}},{"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":"app/View/User/Theme/Cartoon/Index/Item.html"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"4445459e342fae049c85f3100c92e23be00a41c21e5c0c5fcda6a697482233de"}},{"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":"app/View/User/Theme/Cartoon/User/Business.html"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eda6a59989610de3fbe92984494eb5852d9ed623797cfd027d971a9f45ffc6c"}},{"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":"assets/admin/controller/store/home.js"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"e11ec9ec09dd1440f9d91b26c7723c900ef5e67d4c79970e776d1007924ecf1e"}},{"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":"assets/admin/controller/store/home.js"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dcb5fa8f7139d12a58e977700d10f00bde00fc277a6fa879cbfee16206b0621"}},{"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":"assets/admin/controller/store/home.js"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"26c1210dd7a703691f6f4d8ca071788ef1e094512b6c365745e9231b2d1c3474"}},{"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":"assets/admin/controller/store/home.js"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1cec7d7bb636236f3ad179264e67ac85e9104d11c50e353a97fcdc3875ada4"}},{"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":"assets/admin/controller/store/home.js"},"region":{"startLine":939}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b3ea77b8176403a1c414e9ccd1b88f1bab38d88dbccac297b2df4de3592f9ad"}},{"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":"assets/admin/controller/store/home.js"},"region":{"startLine":940}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a31d25cd93836343a8a8e19116b362bdfb48e048d9f0a6bf8784b315275733"}},{"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":"assets/admin/controller/store/home.js"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"7deb6ac32a867456caa35cc6fc92500a3eeb2e751dade6d1355f1069a4680e47"}},{"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":"assets/admin/controller/store/home.js"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc4e391e90de76b953c49896fc3c0e00dd5e99d9f882b4938dc4c3e28b3e886"}},{"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":"assets/common/js/component.js"},"region":{"startLine":551}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e309339692ca6ed7f2dd582f760b112fa5c8b3f91f3c59348e9868404a346c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"4966748d1df695354a074841236363d69885600746cc74616aa899cc592267b1"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"928b06df26e2b33fd50a22995192dee8cd6e44e6a279a24adafb464d637273ec"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0741cfa4f0cfae471dda6a3de9790a6615ea9940be43abb514e745c93776e09"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"877e22e518bfee6188ef90e08fc65d0a78f6dd42e59cff913eaf2acd1480e1c1"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c5db87854674d3f1a56a37a800ecb40408fdf1739d75ba767a1c3e647544cb"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b3d9fb3d5d9635dce933afef460ebdf19e241a9fb06b9a5531ff46808f54f82"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2ae9a7f3a3fa70f080adaaa34c2135e047cc7b3e6be27cb52545dae19391ec"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"460594fab281d5fdb3a0460681b8a3cf0a91b785d6425c05c60b33dc5913310b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":191}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b1025972f5c6512bd59795367e0856572765306fe35a13c4cce543570de439"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"97cb0d1ff7266242244deb69a7cd3f1d47be037ab0d968f2dbbb9f1f7eacd950"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":244}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5d92fca2d842b3a1842c2e2a9d3e13229a2a695fbbac9c3c5b9c81c3a187f20"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"b290755e26299a8c315677dd2b8692e1bf929a59d29f79eeb029ba94143ebb6f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"555bb5b941f8c403c551f040436c165b31a21516728adf38439cc58bd193e3ba"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea461482d7c157b2ca7e4a6ed4cd37c8a62cbf847ff27f4b52e2f42f17977f3f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"87dbf39d59f39415d5649e4a9e8641636995c8e9c5f16c9abed78c8a1bb0b9c0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b43931705bef884ff2cebdcfe083bdf0ddc4a04e5b5cb64f950d263dd652790"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"efe8dd068c67f111804a829ec398b364c8e933c5d029e3bf74d0e959262c747f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":298}}}],"partialFingerprints":{"codehealthFindingId/v1":"f83acd2af9bc309847ea8b5ffd3f1618c03af9cf75d6567dfd0614b76eb18f28"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"1336874449b42382efe179dcdbdaa1e3695546d796d15cd41c9e1ed274746e90"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8194224d73ed01ecc60d6413d02f0ed7c6f8a4a5f5db9d18471ca5dbd897b5d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21fb9fbd9a6263ea0775cf4148bb2c6364a842c685e6794214c7274b17775d5"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d57684756805f52e2f553bd57894766814b37b99d8274ff952558178ef8c495"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":352}}}],"partialFingerprints":{"codehealthFindingId/v1":"e229b30a6b712ab50b6d9b72e807c0cb9bc3a2ccf8362cde004568199b0b1f3d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ef21d5bd047c71253cd713c9b9f364d69d0593d62fc5d4391dba4b7e4368ec6"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":370}}}],"partialFingerprints":{"codehealthFindingId/v1":"12361dee614622fc2dbfa4c224c71c7f9fc49a354d55e62c42773a5b5dd546dd"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"204f2fdf05d987111a125147a43e2a5e2e53e75c798c663323f191a946a94c37"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddcac1390c4343e081112aa0fdf46a0174b9532ca47e007de9a4cf4544dd5f44"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"644a639ecdcfd16a228144bce12386520549b0b90c19045c750cb7c08e7b224d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1581385b2bdbae8c2e8e0639ab93c2d5ab249e436bda69d104844af4473bef9"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":406}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fb427b79182a2a4b26469925f584844aecd3a8b6c25910ab8f40e776c522518"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"67e8d03c83ccaf74e327e3a6981af5961ab9b67574a62b15145b0746a5802128"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"4249afef6f1f0244295215796a8f67e9494182976d0a83d20d21fefabe6888e0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a152c28ba1f9b1fee7f305636874bbdcbbc30af3fafb2a2243973c282e0a1b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"3203101c8f38db57d7424daa21d4b28d1fd4c3dcfa53541f4dc559639532cf68"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"43ef0550be234bdda48848cbaf100a4f9c5b8712074459055a3da0bdf668583e"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c3958ef2b80597f715c56501dc230ee08a59cbf1d795a258d115572ef70117"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":499}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f730b33630f4e0e17bc574c93c612021d947b8799a8e385dac4aead69245d34"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"658bf0ddd41fc2aa2200d7953469f7f4f4b51371fa64cb5bad16c5459bbdd1a2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"235114cc6e13dbf4f77e50396e06d1fcd2da014f8d2c340b82b32f40d5c61414"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"a270cdf89e941587afcff0e19258375f8c178b09b341a29b46356e810ea7674e"}},{"ruleId":"AC3","level":"error","message":{"text":"Malformed \u003Chtml lang\u003E value \u0022#{lang_code()}\u0022: The lang value isn\u0027t a well-formed BCP-47 language tag (use e.g. \u0022en\u0022 or \u0022en-US\u0022, not \u0022english\u0022/\u0022en_US\u0022), so assistive tech may apply the wrong language. Use a valid language subtag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Authentication/Lock.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c3f60bb9dbcb2d609658d75628fbf874f2b51894d152ed2a6eb7f15e4978310"}},{"ruleId":"AC3","level":"error","message":{"text":"Malformed \u003Chtml lang\u003E value \u0022#{lang_code()}\u0022: The lang value isn\u0027t a well-formed BCP-47 language tag (use e.g. \u0022en\u0022 or \u0022en-US\u0022, not \u0022english\u0022/\u0022en_US\u0022), so assistive tech may apply the wrong language. Use a valid language subtag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Authentication/Login.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5224f18922bf2b9c70d2d0d2c0bad05fb7f0a775aec3ba40d7b98ce461d638ac"}},{"ruleId":"AC3","level":"warning","message":{"text":"Data table has no header cells: A \u003Ctable\u003E with data cells but no \u003Cth\u003E gives assistive technology no way to associate cells with their headers. Mark the header row/column cells as \u003Cth\u003E (with a scope)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Security.html"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d96da69db644cf55217165cbaf7d9ed97a58cd737a6c5039c772717f11797d"}},{"ruleId":"AC3","level":"error","message":{"text":"Malformed \u003Chtml lang\u003E value \u0022#{lang_code()}\u0022: The lang value isn\u0027t a well-formed BCP-47 language tag (use e.g. \u0022en\u0022 or \u0022en-US\u0022, not \u0022english\u0022/\u0022en_US\u0022), so assistive tech may apply the wrong language. Use a valid language subtag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Wiki.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"a744354e5e335fae0deb49e38e28214c685745bdfff4443bdc5655aa2e8bd984"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Wiki.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ed466b2b42e12998c1eddf80705ff05d54902012fb6a86cbcc868163505e68"}},{"ruleId":"AC3","level":"error","message":{"text":"Malformed \u003Chtml lang\u003E value \u0022#{lang_code()}\u0022: The lang value isn\u0027t a well-formed BCP-47 language tag (use e.g. \u0022en\u0022 or \u0022en-US\u0022, not \u0022english\u0022/\u0022en_US\u0022), so assistive tech may apply the wrong language. Use a valid language subtag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Header.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e2537e26d7b687050f72d4f9b9da6c00683b2b977748777c81366e3aedb651"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Header.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b19323d253db949d568b5a920e281305211d0eb55307b91e307b417e08d36cb"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/LegalTerms.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"480322cef23db5fcf81257b37b5e704a6e732ab07061a808aa34bc779e7774bb"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/LegalTerms.html"},"region":{"startLine":421}}}],"partialFingerprints":{"codehealthFindingId/v1":"f881b24062ae26c6a5fa65338c8e880039af8c8df52092bdd2add45a08d83506"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Rewrite.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22c9f3e605050d735e59c247e14290c2fca992e58959963ef68a48bd35aaff0"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Rewrite.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"16e9e03cb90948cfa1e15abd415ea896146148cf9240fb844ce2bf28127ae954"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Submit.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cc4c1911e9c3a271aa10d44f799434e73b42a6945f6648bf104ec73f9568b0e"}},{"ruleId":"AC3","level":"error","message":{"text":"Viewport restricts zoom: user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Submit.html"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffdd74117be37e331d78d1d7348f99ca1ae7826636dca5be1cd59c3d9c417a1c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Authentication/Header.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"36dffaf5aa6d23733e70139899eaff87f89b316cf1212d0142e5993e8b5354a5"}},{"ruleId":"AC3","level":"error","message":{"text":"Malformed \u003Chtml lang\u003E value \u0022#{lang_code()}\u0022: The lang value isn\u0027t a well-formed BCP-47 language tag (use e.g. \u0022en\u0022 or \u0022en-US\u0022, not \u0022english\u0022/\u0022en_US\u0022), so assistive tech may apply the wrong language. Use a valid language subtag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Common/Header.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"93676d3c280b1a8a145e7b523e25868eda604fb7cb882cbb24fa0f9ec17ec736"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Common/Header.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c457949739aa91345482c2696ab995bec1e84cbec3cbb9a43fb27392496e4d9"}},{"ruleId":"AC3","level":"error","message":{"text":"Viewport restricts zoom: user-scalable=no/0 or a maximum-scale below 2 stops low-vision users zooming to 200%. Remove the zoom restriction from the viewport meta."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Common/Header.html"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"f678b57b2ce1feb3d31e64456aa4cddbc6d3a0fc5bd77d4232237237eb731b6d"}},{"ruleId":"AC3","level":"error","message":{"text":"Malformed \u003Chtml lang\u003E value \u0022#{lang_code()}\u0022: The lang value isn\u0027t a well-formed BCP-47 language tag (use e.g. \u0022en\u0022 or \u0022en-US\u0022, not \u0022english\u0022/\u0022en_US\u0022), so assistive tech may apply the wrong language. Use a valid language subtag."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Index/Header.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"d521ce4f9e2f3c1c669dcd097c42909f134cbe5a626b7f188f571fdb6aabbc19"}},{"ruleId":"AC3","level":"warning","message":{"text":"Page without a main landmark: No \u003Cmain\u003E (or role=\u0022main\u0022) means no \u0022skip to content\u0022 target and a weaker landmark map. Wrap the primary content in \u003Cmain\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Index/Header.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55844c44fb7f9c4ddc357a457b2ab59fc19bcaaf113f08df7d810916201e422"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h4 to h6: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Index/Item.html"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"0448f22de372a42ea73e07346a3a52e15edd6871310ed95ca4f1ee133c919cbc"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .image-input-wrapper with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Setting.html"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7bf85bc7e2b640cc48e7669977bdba8ae1dd9f38d8aded0994200d6cfe50dce"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .btn with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Setting.html"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec23526d785b06945f316b20ec64070b92de46cfcf729e6c29a62350ab665cea"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Header.html"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"977055477f6a482d0e4e21b4797d22a3a825bd63f0869e0fc742feea2d784be2"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .btn with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Header.html"},"region":{"startLine":348}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7500c6df39a080337a69f9dc49927ebf26035f4c3b277889f2eaf6aeb82155"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .image-input-wrapper with \u0060cursor: pointer\u0060, so this \u003Cdiv\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Manage/Set.html"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"2911d3382df033264cc87d71b13dbeb96e3ab6e9c43dc68e094ae391ec1b9aa0"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .btn with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Manage/Set.html"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8f9057cef0f11f930292233804b9185462d5fd8269a66182ef830a61d0f61c9"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .chip with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Install.html"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd03d5984669d8b11ebcc3e3ddfb5dc8b93160d9d9c3385b2f5ea421e42b96d"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .image-code with \u0060cursor: pointer\u0060, so this \u003Cimg\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Authentication/Login.html"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d3a8f91e4fc25cff7c1e32fc5b6c406a686d55bd132e993f2b39449bdf4748"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .image-code with \u0060cursor: pointer\u0060, so this \u003Cimg\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Authentication/Register.html"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"66579f54941b9e1ab5bed390e0e725fca7ee81161a393c655adb26ac93277f44"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .shared-button with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Index/Item.html"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0040c573c1a56067c8650a1eeb091ac721f1b5b0046655ab1716050937d25ce6"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .captcha-img with \u0060cursor: pointer\u0060, so this \u003Cimg\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/User/Theme/Cartoon/Index/Item.html"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"186d4ea1e64ecf01324906505e153b0f8581140d4204571bc1cf30bbfc84e203"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/shared/store.js"},"region":{"startLine":1416}}}],"partialFingerprints":{"codehealthFindingId/v1":"123a705b435d249cf9484013caa8adb1fede893867063510766ed54c8e670c98"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/developer.js"},"region":{"startLine":654}}}],"partialFingerprints":{"codehealthFindingId/v1":"20166a10cdc127ea13d851cf1c9c39002df007cd843b051660c87d1420d63219"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/developer.js"},"region":{"startLine":663}}}],"partialFingerprints":{"codehealthFindingId/v1":"4313cae3fdaaa81737ee36ca93e98b225d9dfb9bbac199ca0d4817dc798c5085"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1026}}}],"partialFingerprints":{"codehealthFindingId/v1":"94e0bf0239de89f6c8355532c45595cbdcc345d5c175905cabc7a75c10369774"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"35da5cbed3ac1c30f7c33b9965e46fbc5f41a0c79f5ed3e60413e22233f3e6af"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1034}}}],"partialFingerprints":{"codehealthFindingId/v1":"acd631d2bad6db45bd1065daa9d85595724c7803d2f4116237cbf6d546343480"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"444dacc1d9105ee10e66690a49a9650311f6125d6c4d50ffcef54c089988176f"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39cfbc44978af3cbfd5815caf23637a7ed4535f09c9dbc45b10b3da668d5e45"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1115}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8eaf164f4fa37b4f5c70504b592d27a970f96e7a5ff9ecaec9f4783d324d8e8"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdd4ee3cc54e8a059482c7237e10d52630eb758f1aec9e1d19f91a3e595dd9b"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0bf8191a31de4d8fffe328fa698c63932af7fdcc0c464e6f7ea1d9ad848ace6"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a069cdef3ca2d544f492a076e022eb494cbca3bcee92e4cc34273061fef97f"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d1d991ea4ffc5df511b8887f569cbee3ad05b0b064f6ff21908127431139db"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1327}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8702c69869401791272d95a4a17ee9a537277d29ff4a7756c177ab03cdeb1c3"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable element isn\u0027t keyboard-operable: The repo\u0027s own CSS styles .a-badge with \u0060cursor: pointer\u0060, so this \u003Cspan\u003E is a control \u2014 but it has no role, no tabindex=\u00220\u0022 and no key handler, so it can only be reached with a mouse. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/store/home.js"},"region":{"startLine":1333}}}],"partialFingerprints":{"codehealthFindingId/v1":"4674407627039fafb033aba134826b5c080f2c3108067a916df2408778aa990e"}},{"ruleId":"AC5","level":"error","message":{"text":"aria-hidden hides a focusable element: aria-hidden=\u0022true\u0022 here hides the subtree from assistive tech, but a focusable descendant stays in the tab order \u2014 a keyboard user can land on a control screen readers can\u0027t see. Add inert, take the descendants out of the tab order (tabindex=\u0022-1\u0022), or drop aria-hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Authentication/Lock.html"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2f9e03be9bfac3528931cbb7d724b1c0617cd1b080d8f9d757b3da0d4663dda"}},{"ruleId":"AC5","level":"error","message":{"text":"aria-hidden hides a focusable element: aria-hidden=\u0022true\u0022 here hides the subtree from assistive tech, but a focusable descendant stays in the tab order \u2014 a keyboard user can land on a control screen readers can\u0027t see. Add inert, take the descendants out of the tab order (tabindex=\u0022-1\u0022), or drop aria-hidden."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Authentication/Login.html"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a518dbf3fe2266d528935693cfbfdea7892cdbd0d2f585f0894a6ea88064fae"}},{"ruleId":"AC5","level":"error","message":{"text":"Invalid value \u0022#{if $config.callback_ip_whitelist == 1}true#{else}false#{/if}\u0022 for aria-expanded: \u0022#{if $config.callback_ip_whitelist == 1}true#{else}false#{/if}\u0022 is not a valid value for aria-expanded \u2014 allowed: true, false, undefined."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/View/Admin/Config/Other.html"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a9e4cd2820bb228d2a6aaa6adad7859ea66d2287b8a8891b08b5077a941be57"}},{"ruleId":"AC5","level":"error","message":{"text":"aria-hidden on a focusable element: aria-hidden=\u0022true\u0022 hides the element from assistive tech but leaves it keyboard-focusable \u2014 a confusing dead stop. Remove aria-hidden or make the element non-focusable."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/jquery.min.js"},"region":{"startLine":5339}}}],"partialFingerprints":{"codehealthFindingId/v1":"d603382862544d5fa3cbcdf15e9887ce445dcf37c1a05bf8cd33d354c97c75ef"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.4:1): \u0060.jie-row li span\u0060 sets color: #fff on background-color: #dadada \u2014 1.4:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet \u2014 editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/css/_user.css"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdec107d721323c85406d7653ef4f1f6839e29fe3eabf18479479f8576debd83"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.4:1): \u0060.jie-row li span\u0060 sets color: #fff on background-color: #DADADA \u2014 1.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/css/global.css"},"region":{"startLine":1309}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d451796426bfb5738e6d7efacceac889a5c117eaf72532c017880bc1d763b0d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.4:1): \u0060.jie-row li span\u0060 sets color: #fff on background-color: #DADADA \u2014 1.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/css/global_1.css"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"4df2bd031789cb50b699605d72153331179e33769ed808aaafe9b126ad8321d1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.4:1): \u0060.jie-row li span\u0060 sets color: #fff on background-color: #DADADA \u2014 1.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/css/global_2.css"},"region":{"startLine":1320}}}],"partialFingerprints":{"codehealthFindingId/v1":"f42026c357761c6ef59426c265556eb509e121f8cdd86745e63ca2165ea303f0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.8:1): \u0060.auth-skin-universal .auth-status \u003E .layui-form-checkbox \u003E span\u0060 sets color: #FFFFFF on background-color: #ffaaaa !important \u2014 1.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/modules/src/style/authtree/css/auth-skin-universal.css"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03607bd7d813045ef8e57a0084f498de42998c6a24189fb452a9961f7afa0fa"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.4:1): \u0060.layui-form-checked[lay-skin=primary] i\u0060 sets color: #fff on background-color: #ffccdf \u2014 1.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/layui/css/layui.css"},"region":{"startLine":2462}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2d30f753811f005840ec6d650bd7178cf68815625e2fb577da11ba2460db9d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.6:1): \u0060.anticipation thead th button\u0060 sets color: #a3a0a0 on background-color: white \u2014 2.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/css/i.css"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dc9b617e11256426298629365c16c0b457edcfa6fa3b43bdaab759683691678"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.6:1): \u0060.page-item.active .page-link\u0060 sets color: #FFFFFF on background-color: #f7bcda \u2014 1.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/bootstrap-table/css/bootstrap-table.css"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d39d717f9f802ac28a93a2372736bdeb39c0d90ddbd218e0e3830373bf46357"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.5:1): \u0060.layui-form-checkbox\u003Ediv\u0060 sets color: #fff on background-color: #d2d2d2 \u2014 1.5:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet \u2014 editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/layui/css/layui.css"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c478267eba1d6f669ebd6fed11f6aaa24feae215bcd81f7584a28f2db478a298"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.7:1): \u0060.layui-layer-title\u0060 sets color: #999 on background-color: #f6f7f9 \u2014 2.7:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/layer/theme/default/layer.css"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebbe69697a61b7899da9f73cf71f34fc76c5c2b07b99ca7a8745d9460b79c3c"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.5:1): \u0060section.cover .cover-main \u003E p:last-child a:last-child\u0060 sets color: #fff on background-color: #42b983 \u2014 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/docsify/themes/vue.css"},"region":{"startLine":575}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9344f5131828db9fa7b56eceb31adb2163de0d28afd2e84a506754de74bcb87"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.5:1): \u0060section.cover .cover-main\u003Ep:last-child a:last-child\u0060 sets color: #fff on background-color: #42b983 \u2014 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet \u2014 editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/docsify/lib/themes/vue.css"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87edff14a59a244c16b2e7b831a03e64e4485df4a309664551a7ae208c2ebb86"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.5:1): \u0060.layui-form-checkbox\u003Ediv\u0060 sets color: #fff on background-color: #d2d2d2 \u2014 1.5:1, below the 4.5:1 WCAG AA minimum for normal text. This is a MINIFIED, build-generated sheet \u2014 editing the literal here is undone by the next vendor drop or rebuild, so override the rule in your own stylesheet (or fix it upstream / in the source the bundle is built from)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/css/_.css"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"915d75529cf0607b8db9af80c4de83fb1e8530cdc00596fb10c7407a98d741b4"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.4:1): \u0060.auth-skin-universal .layui-form-checked[lay-skin=primary] i\u0060 sets color: #fff on background-color: #ffccdf \u2014 1.4:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/css/auth-skin-universal.css"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"64bf22a247e61ed01eaab3dde5918f0aac4a4440a360ed703d05dd01fc9d98a0"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.0:1): \u0060.update-badge\u0060 sets color: #ffffff on background-color: #50CD89 \u2014 2.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/css/component.css"},"region":{"startLine":2930}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b5587ced96bdf2cb871d99b5b5d0aab8fd536e4d1e9cb53e53ea0193ea1a9b"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no automated accessibility check runs over the HTML your app renders. Assert the accessibility invariants over that HTML in the test suite you already have (parse the output and assert, or drive a browser), and gate that test in CI so a regression blocks the merge. What was searched, so you can tell an absence from a miss: the 114 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"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":"M4","level":"note","message":{"text":"README/code drift: README claims a \u0027\u4E91\u66F4\u65B0\u0027 feature but the evidence shows no cloud-upgrade or versioning component \u2014 searched for: \u0060cloud update\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"9ad10dddde0f6450f34aefaac45128b46ba145c237afe4bb961a75a229727618"}},{"ruleId":"M4","level":"note","message":{"text":"README/code drift: README claims an \u0027\u5E94\u7528\u5546\u5E97\u0027 with plugins and templates but there is no app-store directory in the evidence \u2014 searched for: \u0060app store\u0060. Each was matched case- and separator-insensitively against file and directory NAMES anywhere in the tree, and against the CONTENTS of manifest files (package.json, *.csproj, *.props, *.slnx, *.yml, Dockerfile); the README\u0027s own prose never counts, so a claim is never refuted by merely being made. Nothing outside that search was read \u2014 a footprint living only in a submodule, in a file type not listed here, or under a name none of those terms matches is not seen, and this row is then wrong."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d0298518d65935af0f706356845c8919fcc3c87b18a219a0aff32998ff0506f4"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add phpstan or psalm (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 4981 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":"P5","level":"warning","message":{"text":"No DR/backup evidence: A persistence guard (data volume / purge-protection) was found, but no backup, geo-recovery or RTO/RPO controls were evidenced \u2014 a volume that survives a container recreate is not a tested restore from catastrophic loss."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5daabb38c90b07af65b8738cf94ce884e90a7d8fef810d341de5c186188c8fe0"}},{"ruleId":"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":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060new Client(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout. 2 of the 2 files that make outbound calls are unbounded; the first 2 are listed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Pay/Base.php"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"76034d96a58edf215efc68c8d26b82c60f435fd910e59ba09cfcced10254af61"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060new \\GuzzleHttp\\Client(\u0060 makes an outbound HTTP call, and nothing bounds it: no timeout, deadline, retry or circuit breaker is set for it here, and the client has no process-wide default. A slow or failing dependency will hold this service\u0027s request, thread or connection until the call gives up on its own \u2014 or never, for a client with no default timeout."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Http.php"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77834f961c102963d96fec0edb64c46ece8b550f363724b006d763fced42aab"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 130 plain JS \u2014 the untyped files are assets/admin/controller/auth/lock.js, assets/admin/controller/auth/login.js, assets/admin/controller/config/google2fa.js, assets/admin/controller/config/index.js, assets/admin/controller/config/lang.js, assets/admin/controller/config/mail.js (\u002B124 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 10 sibling directories (56 clone groups): 56 duplicated blocks under assets/admin/controller/ have copies in at least two of the sibling directories auth, config, dashboard, file, manage, pay (\u002B4 more sibling(s) not listed) \u2014 43 of them are reported below, and 13 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 56 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 56 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 56 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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7dcafff5c68104620ac01776990a9f7da93836a66b818a0c62004e7788fa4c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 4 sibling directories (51 clone groups): 51 duplicated blocks under assets/ have copies in at least two of the sibling directories admin, common, static, user \u2014 39 of them are reported below, and 12 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 51 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 51 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 51 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":"assets/common/js/component/authtree.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2336fb08d22a01bc6ba4c5ceedeacec98e6f7dbcc3a03f6c46fbc5beb6304ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 5 sibling directories (5 clone groups): 5 of the duplicated blocks reported below have copies in at least two of the sibling directories auth, business, dashboard, security, user under assets/user/controller/. That concentration is one structural fact, not 5 local ones: the siblings replicate behaviour none of them owns, which is the shape of a missing shared module \u2014 a common library every sibling imports \u2014 rather than 5 separate extractions. Check first whether the siblings are deliberately standalone deliverables (scaffold templates, demo apps that must stay copy-pasteable); where they are, the duplication is the design and the per-block rows are the ones to act on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/dashboard/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"101a239fe1b5fa7779c21b4bc4ddad79d22274b564d12b97bc4dfb0dd597a5ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (432 identical lines \u00D7 2 files): assets/common/js/component/authtree.js:9 \u00B7 assets/static/modules/authtree.js:9 \u2014 these 2 files are line-for-line copies of one another \u2014 432 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":"assets/common/js/component/authtree.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce347afef39343948de547d5ca6d6040e64a53562aaf6a1eae3e76281121e80"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (247 matched lines \u00D7 2 locations): assets/admin/controller/trade/card.js:132 \u00B7 assets/user/controller/business/card.js:43 \u2014 the two spans are one implementation copied and then locally edited \u2014 1595 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":"assets/admin/controller/trade/card.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d10431da7fed89ce0b19ae01c369226b6a808a6fa20c0018bc50b46a8ac096"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (99 matched lines \u00D7 2 locations): assets/admin/controller/config/mail.js:50 \u00B7 assets/admin/controller/config/sms.js:73 \u2014 the two spans are one implementation copied and then locally edited \u2014 668 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":"assets/admin/controller/config/mail.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c698db2d4247dfe6260f20a29ce21d7bd89f11947c2922a30cd0ba52291c8ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (89 matched lines \u00D7 2 locations): assets/admin/js/material.js:129 \u00B7 assets/user/js/glass.js:392 \u2014 the two spans are one implementation copied and then locally edited \u2014 761 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":"assets/admin/js/material.js"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d26ea76a231175d174054cdfd2a91e86f5a2cc964730d07533d3a50d5be6ba3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (79 lines \u00D7 2 locations): assets/admin/controller/config/plugin.js:296 \u00B7 assets/admin/controller/pay/plugin.js:419 \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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"0109011ea20163c6fb20079a8061aa744c4881c1e072016076858a13fdf8c05b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (65 lines \u00D7 2 locations): assets/admin/controller/trade/order.js:525 \u00B7 assets/admin/controller/user/recharge.order.js:276 \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":"assets/admin/controller/trade/order.js"},"region":{"startLine":525}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a76c59b5df0cf39c0c8a267bde9c21a229696233abf71acea527abceae7712"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (62 identical lines \u00D7 2 files): assets/user/controller/dashboard/index.js:1 \u00B7 assets/user/controller/user/purchase.record.js:1 \u2014 these 2 files are line-for-line copies of one another \u2014 62 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":"assets/user/controller/dashboard/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"45461eb6382c7ca7caf4269b2a2e80ab28e85b9a38c67232def2bd948150f63c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (60 lines \u00D7 2 locations): assets/admin/controller/trade/commodity.js:233 \u00B7 assets/user/controller/business/commodity.js:86 \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":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"f039915b5df1746b260c3b1f4f20ceccbba0d65b52af241d62f8498a6db60d7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2 locations): assets/admin/controller/trade/commodity.js:775 \u00B7 assets/user/controller/business/commodity.js:366 \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":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":775}}}],"partialFingerprints":{"codehealthFindingId/v1":"e50bd7f4d313a7632bc3158ce26bb825f336c64c7f0237a26f182f2df4c393e4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2 locations): assets/admin/controller/trade/commodity.js:294 \u00B7 assets/user/controller/business/commodity.js:147 \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":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"65502fc6c75b9ad533de8c8292daa97a0e0a284b732ef6df960cdca60c4d1fbc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (55 lines \u00D7 2 locations): assets/admin/controller/trade/commodity.js:375 \u00B7 assets/user/controller/business/commodity.js:224 \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":"assets/admin/controller/trade/commodity.js"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0f3a5630d539d75122f90e1c9aed787d53a95f8c6b25d40b21aa75b41ea356"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (47 lines \u00D7 2 locations): assets/user/controller/business/business.js:153 \u00B7 assets/user/controller/business/business.js:279 \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":"assets/user/controller/business/business.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f1a3ebbccb0ab67deeece23cdcecc59cdd6aa92559e9eb35f2f2b69a6b7f56f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (45 lines \u00D7 2 locations): assets/admin/controller/trade/coupon.js:334 \u00B7 assets/user/controller/business/coupon.js:96 \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":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a7fe698f7b7e486660af5086c2e8c3dddc9af1c3f14d869cb7ad603dc03d2c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2 locations): assets/admin/controller/user/index.js:481 \u00B7 assets/admin/controller/user/index.js:529 \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":"assets/admin/controller/user/index.js"},"region":{"startLine":481}}}],"partialFingerprints":{"codehealthFindingId/v1":"af005c3341167887241153d8cf804c1c68881088945cd4d21270681d97071941"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (44 lines \u00D7 2 locations): assets/user/controller/business/card.js:343 \u00B7 assets/user/controller/business/coupon.js:313 \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":"assets/user/controller/business/card.js"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"519881d34a0d7bb9741925fdb9ae0a60c82fb0c6157afa9558c3ca0cec1857d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 2 locations): assets/admin/controller/config/plugin.js:158 \u00B7 assets/admin/controller/pay/plugin.js:52 \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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac6d78137eda607bb852b0225c1cf18a4ab55fb8eb91ec3039df76a9d990df6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (41 lines \u00D7 4 locations): assets/admin/controller/trade/card.js:192 \u00B7 assets/admin/controller/trade/commodity.js:835 \u00B7 assets/user/controller/business/card.js:103 \u00B7 assets/user/controller/business/commodity.js:426 \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":"assets/admin/controller/trade/card.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c48ae85aae80f655b234735a333596f1bb3955da4ec832cb97f672590fe5f45"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (39 matched lines \u00D7 2 locations): assets/static/acg.js:915 \u00B7 assets/user/js/treasure.js:11 \u2014 the two spans are one implementation copied and then locally edited \u2014 317 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":"assets/static/acg.js"},"region":{"startLine":915}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fb34ef057531c4c9d2e30c7560e083c44436978b4734cf6862687625df9beb8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): assets/admin/controller/store/home.js:1030 \u00B7 assets/admin/controller/store/home.js:1323 \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":"assets/admin/controller/store/home.js"},"region":{"startLine":1030}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06178352afcee575d65319b86556a60a9da00b32ea38c4be14846d736cb73c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): assets/static/acg.js:214 \u00B7 assets/static/pay.js:24 \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":"assets/static/acg.js"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"15257a224ed5ef9a451e30c6306c48cdf6bae9b2b89d50550f03f0aa6c523fe3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): assets/admin/controller/store/developer.js:640 \u00B7 assets/admin/controller/store/home.js:1117 \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":"assets/admin/controller/store/developer.js"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ea0a8ab599d38df35dbf9f6a09288c1764eac3d78bd0d0b0cf5826634f0978"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): assets/admin/controller/trade/card.js:329 \u00B7 assets/admin/controller/trade/coupon.js:451 \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":"assets/admin/controller/trade/card.js"},"region":{"startLine":329}}}],"partialFingerprints":{"codehealthFindingId/v1":"251bd7c772c54d6cba5f4929a645a8823022e04b709b6be0425de634aa66d525"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): assets/user/controller/business/card.js:305 \u00B7 assets/user/controller/business/coupon.js:276 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a DECLARATION HEADER \u2014 the name, parameter list with its constraints and defaults, and base-type clause of a declaration \u2014 rather than statements inside a body. A header cannot be lifted into a helper: there is no expression position for a call to stand in, and the copies are frequently required to match, because one declaration passes its parameters straight through to the other. So the move is not extraction. Give the repeated pieces names \u2014 factor a long constraint or base-type expression into one named type both declarations refer to \u2014 and where the headers must stay identical, derive one from the other (a shared base declaration, or a single alias that spells the parameter set once) so that changing it once changes both. Where the language offers neither, treat the two as a pair that must be edited together: they drift apart the first time only one of them is changed, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/business/card.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d8cc8dac3b49cb749c09d285df339fc49435d8a33ecb586ea2ef0b733d00ce2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (32 lines \u00D7 3 locations): assets/common/js/component/table.js:309 \u00B7 assets/common/js/component/table.js:447 \u00B7 assets/common/js/component/table.js:1724 \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":"assets/common/js/component/table.js"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eab47b311dd64235557aeb44f25dea76a00bed9481e51548d87566893981ef1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (31 matched lines \u00D7 2 locations): assets/admin/controller/user/cash.js:5 \u00B7 assets/admin/controller/user/index.js:7 \u2014 the two spans are one implementation copied and then locally edited \u2014 218 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":"assets/admin/controller/user/cash.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"a11587bb04bb30c0057ffe5e4e7a6932e2bd55fe4f26cfdcaad3baf86de81645"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): assets/admin/js/mobile/recipes.js:1614 \u00B7 assets/admin/js/mobile/recipes.js:1728 \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":"assets/admin/js/mobile/recipes.js"},"region":{"startLine":1614}}}],"partialFingerprints":{"codehealthFindingId/v1":"e10e87dca3c8508e2aa0f43f34a9faf4723ef872b687b3cb4ad4d5ede50e4422"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): assets/admin/controller/config/plugin.js:47 \u00B7 assets/admin/controller/dashboard/index.js:711 \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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b4223410135dc389696845f9059ef31b8ffa5d56257915dc860d56ad448c9a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): assets/admin/controller/trade/card.js:43 \u00B7 assets/admin/controller/trade/coupon.js:47 \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":"assets/admin/controller/trade/card.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f40cd2df7003b51a324560eeb79aae368f7ce17304854269f8b810c930d676f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): assets/admin/js/dict.js:83 \u00B7 assets/user/js/dict.js:21 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/dict.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dbf4101ab9762f388f5e87c7521c9266cb2a176a143b351060b08e5e48ef94"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): assets/admin/controller/trade/order.js:104 \u00B7 assets/admin/controller/user/index.js:95 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/order.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"050ea87eeb1a56ea712139c4f2d686ded08a73f6be1928282935363dff8d6a0a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): assets/user/controller/security/email.js:19 \u00B7 assets/user/controller/security/phone.js:19 \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":"assets/user/controller/security/email.js"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f9593908bb2ff4bcfe5e974275fbf2f46243be5a9fe027c17d1c41eab830b63"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): assets/admin/controller/config/google2fa.js:128 \u00B7 assets/admin/controller/config/google2fa.js:180 \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":"assets/admin/controller/config/google2fa.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"49e91f1547303220d5e7a2236d86f63a87cfef6552bc548b5d89d4f31ff8534f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): assets/admin/controller/config/plugin.js:439 \u00B7 assets/admin/controller/pay/plugin.js:567 \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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":439}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14c4687aee502e144bf8d2e36efdbbc4e29438769a62e3fba03217ef397de10"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): assets/admin/controller/user/ticket.js:117 \u00B7 assets/user/controller/user/ticket.detail.js:56 \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":"assets/admin/controller/user/ticket.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"7caf58f0d82342236b5489203c7a8053b5277eabafe66e4189aecbbc3976caba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): assets/admin/js/menu.js:2671 \u00B7 assets/admin/js/menu.js:3513 \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":"assets/admin/js/menu.js"},"region":{"startLine":2671}}}],"partialFingerprints":{"codehealthFindingId/v1":"b07cf09ec9dc2bb188bdb8f66d8919fc7aa001aea7afee35c0176ec8534bedb3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): assets/common/js/component/form.js:1022 \u00B7 assets/static/modules/hex.js:603 \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":"assets/common/js/component/form.js"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de117170c4092febbaf612f44186c6d187e78f61fb013e8ae8b95311aa14db8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (25 matched lines \u00D7 2 locations): assets/common/js/component/search.js:28 \u00B7 assets/common/js/component/search.js:60 \u2014 the two spans are one implementation copied and then locally edited \u2014 100 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":"assets/common/js/component/search.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"33fae6517351caa6a548c596e61637033f99d3d706c8296561f4d063cfcf44d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _docMouseMove (cyclomatic 132, cognitive 229): _docMouseMove has cyclomatic complexity 132 and cognitive complexity 229; 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":"assets/common/js/component/tree.select.js"},"region":{"startLine":2968}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c21303fe77be1bc164d6afbd9f67bbb1c8c0a15a87f36caf3eca9869c3402db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inlineNormal (cyclomatic 121, cognitive 180): inlineNormal has cyclomatic complexity 121 and cognitive complexity 180; 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":"assets/static/codemirror/mode/markdown/markdown.js"},"region":{"startLine":414}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d35c2779ce3c0553653a7754fa8d819042ae30018e66e1479471e96e3cfcba4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 116, cognitive 135): (anonymous) has cyclomatic complexity 116 and cognitive complexity 135; 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":"assets/static/modules/hex.js"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c297401a26c6d48ab47e35752f253265c37657031ff3466dadf852735e7bcd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 78, cognitive 74): (anonymous) has cyclomatic complexity 78 and cognitive complexity 74; 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2883}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4045ed04a5e54c5f14d1710339cf43ba9a32f0bf554582d5df4e74bbbd25a64"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 69, cognitive 204): (anonymous) has cyclomatic complexity 69 and cognitive complexity 204; 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":"assets/static/acg.js"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef91031c74d845d40a84ec1654da44202f29a9ded999880d74c2308628ba7ac"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 63, cognitive 113): (anonymous) has cyclomatic complexity 63 and cognitive complexity 113; 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0d69d767b13c9af8ce543de9a98c15a3ba2dd7da90085dd6109ed92b397bc90"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function blockNormal (cyclomatic 62, cognitive 66): blockNormal has cyclomatic complexity 62 and cognitive complexity 66; 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":"assets/static/codemirror/mode/markdown/markdown.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"506cce6cc1a2a37bdb94eb5d6e458afae1cc0db59a7e6611567b34a1012c03f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function moveNode (cyclomatic 57, cognitive 75): moveNode has cyclomatic complexity 57 and cognitive complexity 75; 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":"assets/common/js/component/tree.select.js"},"region":{"startLine":3551}}}],"partialFingerprints":{"codehealthFindingId/v1":"24df12b3a3eca1e0561eeda51725b248627643e79e822be259cc53b0ad0f524b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function insertLineContent (cyclomatic 56, cognitive 147): insertLineContent has cyclomatic complexity 56 and cognitive complexity 147; 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":1921}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df74a4ea6c8b1a841060e6866083f15be78591ff44a4c3ba3e69320b7b6e233"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 49, cognitive 50): render has cyclomatic complexity 49 and cognitive complexity 50; 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":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":2784}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ac240dcd0c84b068f37b5451802e921e33e4fe76c8ee2570ddd624ed97dd0bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function popup (cyclomatic 44, cognitive 47): popup has cyclomatic complexity 44 and cognitive complexity 47; 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":"assets/common/js/component.js"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a2824572ca5a39644f5e9c8abd04da1591040981c44296c624762346a900fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function tokenBase (cyclomatic 43, cognitive 57): tokenBase has cyclomatic complexity 43 and cognitive complexity 57; 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":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"9195af0165612e293ad212e44609282b1a75e18b10b69f5bdb91e8435c0894f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 41, cognitive 40): (anonymous) has cyclomatic complexity 41 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"28098143497242920127a553373ebbc0b63cebcdce368d1ba81682b924cf0f0f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function statement (cyclomatic 40, cognitive 46): statement has cyclomatic complexity 40 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef74460df921af60f354d2b98b15137d36044eb90bf27f2f2b611377397766f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createForm (cyclomatic 40, cognitive 8): createForm has cyclomatic complexity 40 and cognitive complexity 8; 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":"assets/common/js/component/form.js"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"e934616e597fe0ffb2868cb4f00de5944506be25d1451bb16a99aac137dae94f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 39, cognitive 60): (anonymous) has cyclomatic complexity 39 and cognitive complexity 60; 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":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":3232}}}],"partialFingerprints":{"codehealthFindingId/v1":"68dc3bef0965897773e787185ffc7bcf331872a8e654db798b6def4bc08930a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 39, cognitive 52): (anonymous) has cyclomatic complexity 39 and cognitive complexity 52; 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":"assets/static/modules/hex.js"},"region":{"startLine":647}}}],"partialFingerprints":{"codehealthFindingId/v1":"28ec487df5ec2e8dc775c2e4334ea38a17d11c7b59c13ca1194b49d247755c8d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function indent (cyclomatic 36, cognitive 42): indent has cyclomatic complexity 36 and cognitive complexity 42; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/mode/javascript/javascript.js"},"region":{"startLine":895}}}],"partialFingerprints":{"codehealthFindingId/v1":"608f1a1fc5eea4060087756c535bd0acd1012544e046a0eb2cc9ba05599e0c6c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderRelated (cyclomatic 36, cognitive 33): renderRelated has cyclomatic complexity 36 and cognitive complexity 33; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/ticket.detail.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3a02b356ec8f9ae6fa3f8cf8c866477f25d35cb5955650316df59c4c204cbcd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function done (cyclomatic 36, cognitive 28): done has cyclomatic complexity 36 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"assets/admin/controller/pay/api.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6e2cd0b537cd4734193730dab85bef66d4f50ed1f85ba4d8754648a2db34308"}},{"ruleId":"R3","level":"warning","message":{"text":"Large Files: 43 file(s) over 400 lines (counted as significant lines \u2014 blank lines excluded \u2014 over production source only, tests excluded), largest first: assets/static/codemirror/lib/codemirror.js (8882), assets/common/js/component/tree.select.js (3978), assets/admin/js/mobile/fallback.js (3083), assets/admin/js/menu.js (2923), assets/common/js/component/form.js (1951), assets/admin/js/mobile/recipes.js (1906) (\u002B37 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cecee31b569df4f07e06db732f1ca037af27b5afef9023da51f9673d931a142f"}},{"ruleId":"R4","level":"warning","message":{"text":"Test Coverage: 0% of 130 production file(s) reachable from 0 test file(s) via the import graph \u2014 \u0027production\u0027 here is the RESIDUE: every source file left once tests, tooling, generated output, config, declarations and declaration-only modules, fixture corpora, type fixtures, behaviour-free data modules, re-export barrels, registration/constant data modules and service workers are set aside, so the percentage is taken over a smaller denominator than the workspace\u0027s file count"},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"64e0e3511eb969fb4720b196e7d3799e1714077217351c3c56a27b50e3e21220"}},{"ruleId":"S1","level":"note","message":{"text":"No security response headers detected: No Content-Security-Policy / X-Frame-Options / X-Content-Type-Options configuration found \u2014 defense in depth, even when a reverse proxy could set them. This is reported because \u0060nginx.conf\u0060 is committed to this repository and declares the server that serves it, so the configuration that would carry these headers is in this repository and was read in full. (\u22122.0 on this card.)"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"docker/nginx.conf"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d1145a1a686a832a906ad66bbb0ed730d42ecd93ee0711e9758821687c54020"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!Number.isInteger(count) || count \u003C 1 || !previewToken.includes(\u0027.\u0027)\u0060 appears character-identically in 2 files \u2014 assets/admin/controller/trade/order.js, assets/admin/controller/user/recharge.order.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":"assets/admin/controller/trade/order.js"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e73fbb9bb673f7fb99d86af66c0c17decb3684ee30812201a89eb6401758434"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!contentType.includes(\u0027text/csv\u0027) \u0026\u0026 !contentType.includes(\u0027application/octet-stream\u0027)\u0060 appears character-identically in 2 files \u2014 assets/admin/controller/trade/order.js, assets/admin/controller/user/recharge.order.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":"assets/admin/controller/trade/order.js"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57159fdb0cd6891b6ad952b22bc9f0010d4919f123b6a7f762d1d551cbeef3e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!label || !label.textContent.replace(/\\s\u002B/g, \u0027\u0027)\u0060 appears character-identically in 2 files \u2014 assets/admin/js/material.js, assets/user/js/glass.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":"assets/admin/js/material.js"},"region":{"startLine":148}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee790c87ab2606d35bde9e8e12378fe4690984abbdc672cc9b8809e5acaaf02f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060[\u0027http:\u0027, \u0027https:\u0027].includes(url.protocol) \u0026\u0026 !url.username \u0026\u0026 !url.password\u0060 appears character-identically in 6 files \u2014 assets/admin/controller/config/plugin.js, assets/admin/controller/manage/manage.js, assets/admin/controller/shared/store.js, assets/admin/controller/store/developer.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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcb5ed92f8242701bd14971432ace81166c4378f3b67a4aad0ba9ecc5b86523"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.target.closest \u0026\u0026 event.target.closest(\u0027a[href]\u0027)\u0060 appears character-identically in 2 files \u2014 assets/admin/controller/config/wiki.mobile.js, assets/admin/js/mobile/overlay.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":"assets/admin/controller/config/wiki.mobile.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef74e669860096a094959293ad49b0d53c1ebc06a7228870e73f763388e7bb7e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.type === \u0027keydown\u0027 \u0026\u0026 ![\u0027Enter\u0027, \u0027 \u0027].includes(event.key)\u0060 appears character-identically in 2 files \u2014 assets/common/js/component.js, assets/common/js/component/table.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":"assets/common/js/component.js"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"102fcc0c316b7955fcf745395b84f1e9e3e8ebb95babd95e01b18389c25a8c3a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060mobileAdminEnabled() \u0026\u0026 Boolean(row.web_site) \u0026\u0026 row.web_site !== \u0027#\u0027\u0060 appears character-identically in 2 files \u2014 assets/admin/controller/store/developer.js, assets/admin/controller/store/home.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":"assets/admin/controller/store/developer.js"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd690bf923cc527dbb2ded88630f2bc74d0f9aba155bc7e817300f3172210ee6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060plugin?.update_content || i18n(\u0027\u8BE5\u66F4\u65B0\u6CA1\u6709\u63D0\u4F9B\u8BF4\u660E\u0027)\u0060 appears character-identically in 2 files \u2014 assets/admin/controller/config/plugin.js, assets/admin/controller/pay/plugin.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":"assets/admin/controller/config/plugin.js"},"region":{"startLine":189}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0445304bd804e7207b3ef4bc406fae4ff80e0b8c66c567769925738fca5b5a6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.headers.get(\u0027content-type\u0027) || \u0027\u0027\u0060 appears character-identically in 4 files \u2014 assets/admin/controller/trade/card.js, assets/admin/controller/trade/coupon.js, assets/admin/controller/trade/order.js, assets/admin/controller/user/recharge.order.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":"assets/admin/controller/trade/card.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d581d992fed827921623b9cb33817836779f157d999de722a84da5728ebd6a5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060row.title || source.title || i18n(\u0027\u672A\u547D\u540D\u6D88\u606F\u0027)\u0060 appears character-identically in 2 files \u2014 assets/user/controller/user/message.js, assets/user/js/glass.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":"assets/user/controller/user/message.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cdd51a70a7c3ca06df90b6ff8f4b244e2c29d3a2ef63c6c9c203b85f93aa402"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tag === \u0027A\u0027 \u0026\u0026 [\u0027href\u0027, \u0027title\u0027].includes(name)\u0060 appears character-identically in 2 files \u2014 assets/admin/controller/user/ticket.js, assets/common/js/component.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":"assets/admin/controller/user/ticket.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c589fcc49914b92fd40331910e3ba51a9fd414629ad60988afa3ee6441ad368"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tag === \u0027CODE\u0027 \u0026\u0026 name === \u0027class\u0027 \u0026\u0026 /^language-[\\w-]\u002B$/.test(attribute.value)\u0060 appears character-identically in 2 files \u2014 assets/admin/controller/user/ticket.js, assets/common/js/component.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":"assets/admin/controller/user/ticket.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3c7a27496a59f81677d54215b4f0cbd66ddbfd5bab65fe814855bf8b1644e2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060tag === \u0027IMG\u0027 \u0026\u0026 [\u0027src\u0027, \u0027alt\u0027, \u0027title\u0027, \u0027width\u0027, \u0027height\u0027].includes(name)\u0060 appears character-identically in 2 files \u2014 assets/admin/controller/user/ticket.js, assets/common/js/component.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":"assets/admin/controller/user/ticket.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fa94566bb7cb704c649275f7933e98f31cb899a10e81a8bb96e628ac6bae46c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060target.charAt(0) === \u0022/\u0022 \u0026\u0026 target.charAt(1) !== \u0022/\u0022 \u0026\u0026 target.indexOf(\u0022\\\\\u0022) === -1 \u0026\u0026 !/[\\u0000-\\u001f\\u007f]/.test(target)\u0060 appears character-identically in 2 files \u2014 assets/admin/controller/auth/login.js, assets/user/controller/auth/login.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":"assets/admin/controller/auth/login.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"286034ffd1afb71aafa31d0c52f3bbab746cf723c19a74d7aa7cb21772032583"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060text === \u0027\u0027 || text === \u0027-\u0027 || text.startsWith(\u00270000-00-00\u0027)\u0060 appears character-identically in 2 files \u2014 assets/user/controller/dashboard/index.js, assets/user/controller/user/purchase.record.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":"assets/user/controller/dashboard/index.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f3ef1b1ef1451da69b3dbe5b2cb98331d4394ea2804020e26823901f4ae05c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof done === \u0027function\u0027 \u0026\u0026 done(res.data)\u0060 appears character-identically in 3 files \u2014 assets/common/js/util.js, assets/static/modules/hex.js, assets/static/pay.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":"assets/common/js/util.js"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd754f0f3773c480691347f24534889da98865f522a1c7d3336c137b4e4c3128"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof error === \u0027function\u0027 \u0026\u0026 error(res)\u0060 appears character-identically in 2 files \u2014 assets/common/js/util.js, assets/static/pay.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":"assets/common/js/util.js"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"1502ddea573db422f5b6de4059f532544f3592f383134094784f4d5ef9ff6501"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window.AdminMobile \u0026\u0026 typeof window.AdminMobile.isEnabled === \u0027function\u0027 \u0026\u0026 window.AdminMobile.isEnabled()\u0060 appears character-identically in 3 files \u2014 assets/admin/controller/trade/category-tree.js, assets/admin/controller/trade/drag-sort.js, assets/common/js/component.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":"assets/admin/controller/trade/category-tree.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"9288b743ec804156b3c64a22dc795f29e34abc9bc6d47af8576118a48bc9f3b6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window.matchMedia \u0026\u0026 window.matchMedia(\u0027(prefers-reduced-motion: reduce)\u0027).matches\u0060 appears character-identically in 9 files \u2014 assets/admin/controller/manage/set.js, assets/admin/controller/trade/category-tree.js, assets/admin/controller/trade/drag-sort.js, assets/admin/js/mobile/overlay.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":"assets/admin/controller/manage/set.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"487fa8648910aa9ff0231af58460d1891dfe2cf05c6b200e719ca365af9f0f9b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!$file || !isset($file[\u0027tmp_name\u0027], $file[\u0027name\u0027], $file[\u0027size\u0027], $file[\u0027error\u0027]) || (int)$file[\u0027error\u0027] !== UPLOAD_ERR_OK\u0060 appears character-identically in 2 files \u2014 app/Service/Bind/Message.php, app/Service/Bind/Ticket.php. 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":"app/Service/Bind/Message.php"},"region":{"startLine":1027}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9ed48f2f71160e86c27097ac48fe9ac4f45c791bd84cbcd6ede3943c9bde6a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!array_key_exists($field, $raw) || $raw[$field] === \u0027\u0027 || $raw[$field] === null\u0060 appears character-identically in 2 files \u2014 app/Controller/Admin/Api/BusinessLevel.php, app/Controller/Admin/Api/Group.php. 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":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"27c580e9d0c8945723da6f2e87b9ef7ed69b40677d5b3c121fe14b536b66c104"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!empty($map[\u0027sku\u0027]) \u0026\u0026 is_array($map[\u0027sku\u0027])\u0060 appears character-identically in 2 files \u2014 app/Controller/Shared/Commodity.php, app/Controller/User/Api/Index.php. 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":"app/Controller/Shared/Commodity.php"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"108e6dafa73ad8faecdc974f1adbb4cbeafe903cd6535dee0d273fa9a533b86c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!is_scalar($value) || !in_array((string)$value, [\u00270\u0027, \u00271\u0027], true)\u0060 appears character-identically in 2 files \u2014 app/Controller/Admin/Api/BusinessLevel.php, app/Controller/Admin/Api/Store.php. 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":"app/Controller/Admin/Api/BusinessLevel.php"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"a326ca8f5092098c1b8b9619de927577e138e6b68b2ec090738b62ae124bde3c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!is_string($token) || $token === \u0027\u0027 || substr_count($token, \u0027.\u0027) !== 1\u0060 appears character-identically in 3 files \u2014 app/Controller/Admin/Api/Category.php, app/Controller/Admin/Api/Order.php, app/Controller/Admin/Api/RechargeOrder.php. 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":"app/Controller/Admin/Api/Category.php"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"e49e15f8f89624f5a5eac9c624b1c070af88dc092f8914cfc72185d94965090e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!isset($_GET[\u0027_PARAMETER\u0027][0]) || !isset($_GET[\u0027_PARAMETER\u0027][1])\u0060 appears character-identically in 2 files \u2014 app/Controller/User/Pay.php, app/Controller/User/Recharge.php. 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":"app/Controller/User/Pay.php"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4868edea32b2f6ea792375b96f63e4619e54a0646006071c24c992841acdabb"}},{"ruleId":"X2","level":"note","message":{"text":"Not all async functions that make a request accept an AbortSignal: Only 3/4 async functions that make a cancellable request (fetch, axios, ky, ofetch) accept an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, an unmounted component, a timed-out job. Take a \u0060signal\u0060 (or an options object that carries one) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"bd89d014f84408f7063269aa5892ba3df7c9af3e981ecfb0752c5731bc62d406"}},{"ruleId":"X24","level":"warning","message":{"text":"Document value reaches a markup attribute unescaped: \u0060state.element.getAttribute(\u0027data-icon\u0027)\u0060 carries text this program read out of a document \u2014 an attribute or a text node, which the DOM hands back already decoded, so an entity its author wrote is a live character again \u2014 and it is written straight into the \u0060src\u0060 attribute of markup built here with nothing escaping it on the way. The value is chosen by whoever authored that document, not by this program, so it can close the attribute or element it sits in and open another \u2014 a crafted document becomes markup in what this code renders. Escape \u0060state.element.getAttribute(\u0027data-icon\u0027)\u0060 at this site, or validate it against the shape the position accepts before interpolating it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/format.js"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"777c1dc3156f478f0f79fdb394ffae34c9f4735393d76aaed95dbe9bb92e20d9"}},{"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":"app/Controller/Install.php"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"3198aa74ab14ce36691a7e4b9b6febec41674ec33cfb90efb7245c4f882bece8"}},{"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":"app/Controller/Install.php"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ebd88d21109707588633b50657f72f2c41184f1dbe5dd8a9fbf1090e43ed69f"}},{"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":"app/Controller/Install.php"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbae881eff7ea86126b6fc82a4637fd2e67bf5ebe0de64c13e8468ffea7647e3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/PriceTemplate.php"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"8722f364f32dd11637eaf4290480993031dfe9d476797a7b2d8c2d129c1955c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/PriceTemplate.php"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"f390de82548a8bb0e904706d2eaa1d61ec383aa3116429e493c27956b61f7a32"}},{"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":"app/Controller/Admin/Api/Order.php"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"656914d0b0f2d597b497f77397de8e611d0e7d26e62faf70ef8c0beb18e17759"}},{"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":"app/Controller/Admin/Api/Dashboard.php"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd5611d5bc4af17f668466013c8c82c7995699525a72df7c871beb2bd5d8f40"}},{"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":"app/Controller/Admin/Api/Dashboard.php"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"15e141c833349cdb780a76834aee7471b8daca663154240111b777da3dd76897"}},{"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":"app/Controller/Admin/Api/Dashboard.php"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fa86b3edf4b2c4ffa88d1bc59abd7834cd860c2225c8f50145ebc060883636"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Coupon.php"},"region":{"startLine":375}}}],"partialFingerprints":{"codehealthFindingId/v1":"6becde8707c694687e4b9b3fc9c9c1c411ed5d457af20d0b644fef08eeeeb68e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a82f5e9c500f33d1d9011e2674c3d5aa736f9a8d96f4f41e473d3e805550dd"}},{"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":"app/Controller/Admin/Api/Authentication.php"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"2493c96159872bdc3f4b2435a77e90184c2084dbd44b17b359b4ef02f641ba07"}},{"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":"app/Controller/Admin/Api/Authentication.php"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"25e7f49533be419ed686607fa9915bf32032c4d850baefaee26735577cb95b79"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Error | \\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Shared/Commodity.php"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee58c0ff99e1b595f0ea3f0f91e7602774650c925497be58fbc8b3fa00f7e54"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Error | \\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Shared/Commodity.php"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"c26dbffdaf9fce9143d47ce89b653195278099e48286015f6cc0659ae5bf8cb0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Promote.php"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"9631bd3bed1b7ad35239d843a20b4d27d7de601153eb439e26cab7b780450b8f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Promote.php"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e492181986f92f6a355469e52567a9b838f49a1378d786653b4a58f38789166"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Exception)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/User/Api/Coupon.php"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"16fc970ee7282a34fb74e0fd40746cef06057661f90c8baf6da9a5845c59589e"}},{"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":"app/Controller/User/Api/CommodityOrder.php"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"628ee4906239975f5da4be8d9db7d554d0e846a341fd4dea9012d047feab76b7"}},{"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":"app/Controller/User/Api/Card.php"},"region":{"startLine":339}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e53700417179163463745db734214ab361200493a1ba0f2e5d2e4e689cb792"}},{"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":"app/Controller/User/Api/Card.php"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ee451dfe6e306fe730cff4ebc0735f5a2bd4e401efcb661393b8e1f500c2aa"}},{"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":"app/Controller/User/Api/Authentication.php"},"region":{"startLine":522}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e63a24503bae6533c711f4c96795f4bcebb57caf135639f1ab09d1ee11402de"}},{"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":"app/Model/UserLog.php"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de1a9592cde91f89b2cc207f82fb8412e29486a03c196ac663528dc54397d98"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/PriceTemplate.php"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97a87397b106fae985c6f9ba702d0c64f68e80822948c7884de9933cab861f6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/PriceTemplate.php"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ca5d94b2871cd44c367e7fa609038d3a8c6d9d7af277adcee70731616f02c6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Model/Config.php"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"677337a90ca0f70e1e0f435da63cc3899a732c18c2548af2dba1e0483e8191c0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/UserSessionManager.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb12adaf77be2487e27163e84ad633ced574c432f58efe7544c4a22327962fc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/UserSessionManager.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a361591658348b458f26fba7fc4ad8351fb4c5678d1749ced1f3f33a1b1e0c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/ManageSessionManager.php"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"9948151e3b6f8d861574a76ee6e3490398753dc673e761d79df092b01ecc2201"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Ticket.php"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac0ddd1888488fcb51f42b60602caf6220e5d3b2570757544a4a47bda3d091c4"}},{"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":"app/Service/Bind/Ticket.php"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f08ba3eaa6f5dec89a2082c2eddf713e853637ae066b7ab94a636fc9ed4d59"}},{"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":"app/Service/Bind/Ticket.php"},"region":{"startLine":1035}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a8b973b28711f32a9c6c50c6383c7d9d3ed342b72c7fe4e84d5b9e1db09ea5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"0128cf25dd6f1a6dbcc1cdcbb72d285f125aeefaff11a9252b2fa9db67dd9db2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Shared.php"},"region":{"startLine":841}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac240466c69babe74c8279d2a18f25a245a90a0fd956068666112974789115c2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Query.php"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c1e6ce211f7ccaed1acda5e230416386ad41a214c003e70830838fef7c49d3"}},{"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":"app/Service/Bind/Order.php"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab5e057492a3a059c74d16759a2fa16fe6ffdc0d3ba071de8bfffac2f66a65f6"}},{"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":"app/Service/Bind/Order.php"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"95ad19def5654d3935e545f85187bc1ec194c5e8c4359ee7d84c62d6e96d28bc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"26615dcf396f75d3c5cb0fd823da755c1249b42d12d30b3ca3bc6bbd689e8079"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ba4fa2b4776fa37db838ad2402a22579eba0235cdb1400f3db2400f83d66628"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (\\Throwable)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Message.php"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bda15e0c88d5de0ba35b5bfa6dd5c967439b12da5b4821358cd217d03daff30"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/_.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a07fc8e025c1ceeeb18ba42a26d3e1d02920524e5ac6ac11fcbc99f3a128570"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/_.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e640ca4ab76760ae593be6aae2adf5ecf10e8fbbe7811ce06ff9dc6ca50fba86"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/editor.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ae8d65982bbd8d0d9da8d08cd877be4d0662b880467d4a5be8079af862ce9cb"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/editorv2.js"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b361e58dc76270a179d2095e093edc98c4617e94c9f05bbcb012afc15de9a4b"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/editor/markdown/_editorv2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"038780e7aa94af1109d22f27e369c236dab4629a9456be727049bd14487547ea"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/jquery.pjax.js"},"region":{"startLine":672}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1bb68f846cfa33f98203678bae66a526554203f843d5d591732e135d6ce4222"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/jquery.pjax.js"},"region":{"startLine":673}}}],"partialFingerprints":{"codehealthFindingId/v1":"716ef66a57bbf47280d58211f738ebc4855d19386c61002e97c70ea30c6c0116"}},{"ruleId":"X6","level":"note","message":{"text":"Hand-rolled JSON/XML parsing via regex: A regex whose pattern encodes JSON/XML syntax is parsing a structured format by hand \u2014 malformed or differently-typed content (e.g. \u0060\u0022amount\u0022: \u00225\u0022\u0060 as a string) silently mis-parses instead of failing validation. This JavaScript/TypeScript code already uses a real parser in the same package; use it here too."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/layui/lay/modules/mobile.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"76492ff89fb85040b8de2b1399aff5b109880a53536e77eb70e3fc20762755e2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060storedJsonConfig\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/Config.php"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"766462a01ac16478568dfafd53cad951810112c451543c37c66135561a83eed1"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060pricedCategoryCount\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Controller/Admin/Api/PriceTemplate.php"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"d991a5d9d8f05cf6ad40bec4daed8c53a9582e321684d2c2d98c6dc7dcb849d2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060emailConfig\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/Bind/Email.php"},"region":{"startLine":259}}}],"partialFingerprints":{"codehealthFindingId/v1":"2274da46b63f759de52fb6a30b4cae531bcf331185dfd761a91747a254d98157"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060revokeAll\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Service/UserSessionManager.php"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d9881f4a48ff74e2c780c41ff8a0f4e17dadd7f54c1c77974755ac262f6cebc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060resolveClientMode\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Client.php"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06ccea9e831dedc92d9f35668e5d1947f9947ca617cdf885ea26c4496fbe8c7"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060secret\u0060 swallows every exception into \u0060return \u0027acg\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Csp.php"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"442bc0e6414fa73fd1a1358c8bcde0dc1d5c4fc80efb39fcc3396648b6394308"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060allowList\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Csp.php"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"944b810f2e2b9b1b2750894afd659af28313c0b1f0f522e8fa7ace354f587f26"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060recentDenied\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/IpWhitelist.php"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6c26e8deb94dadaffaa8222d5afce4e1b05ca23b2a5659fab0c59457926e0f0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060release\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/LangRecycle.php"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"26ac2d706790ea3bb6e07a5a416dbafaf174853201d4c537e0c5ee798b6ad3ab"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060sanitize\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/RichHtml.php"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e7b26c08153779419473a008bb8ee03b023bfedc4a6486e7bdcde55e5fad55"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060config\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/SharedPayload.php"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2db5936f67ad6dd91bf723e234b5cd3b4db281cd287e068b7e1630abbfb6e0"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060configArray\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"app/Util/Sku.php"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f568eea68296541d59092946a4897b889a20db279af1970e20d5d5465b42fb"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060forgetExtension\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":897}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d94700faa0e6bef67afee8692d1a4b2947c6d3555a19518a6ea81e5fda2e4ad"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060version\u0060 swallows every exception into \u0060return \u00220\u0022\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":1094}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b7b65da04a921e010f93c91a6af9599af779f394424a44077a63c628c60197"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadDict\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it propagate. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment in the catch or in the docblock, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"kernel/Util/Lang.php"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b00fb034b3536dab582278d4a146abaff033eeb7e19c21164bf776cd92ebcfc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeHttpUrl\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/dashboard/index.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"0413866c2f1851d7715863e9227784d611adc0dfb8726ab93df46725f604ea4e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safePublicUrl\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/file/index.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec1e25de378282edc55596d1fad2895f1bbffae7eba01bb941d998b55d4bdd9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeImageUrl\u0060 swallows every exception into \u0060return \u0027/favicon.ico\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/manage/manage.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e187b2eb64ef4dc3e196e8f0dfada362e2e406dd3e66736a5fc4b009540d136"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeHttpUrl\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/pay/api.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ba7bd2b0acc03e605eca46b0d8835dc60ce937b1e619ff16189165d068d4ce"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeImageUrl\u0060 swallows every exception into \u0060return \u0027/favicon.ico\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/pay/plugin.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac820be4bd196b091894cc19daac95c61690069a79e634bdfd57b23b769a2dd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeImageUrl\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/coupon.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc57dee10a4a11e98582a6c5cf86bced5fb0be9064191f470eed8a59cd4e9a8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseWidget\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/trade/order.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"618860f0704d06180be42e929782a0926cf182c3709d06a775922553d28e4b33"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeImageUrl\u0060 swallows every exception into \u0060return \u0027/favicon.ico\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/business.level.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"11bef45aca6ae494b5f4219f93a02f57f4ef19d1d8e5004cabb9393dfff08618"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeImageUrl\u0060 swallows every exception into \u0060return \u0027/favicon.ico\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/group.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ba426ac01a5fc948807ace70700943e8bbb6f96e8cbb6df6a93d6ef3a264ff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeImageUrl\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/controller/user/ticket.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba30ebdeaa61ff98bbb2c72937e643f79d751d134c058318686bc37487677571"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getPref\u0060 swallows every exception into \u0060return \u0027auto\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/material.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad8e8757ad39f4b11995bb0ca78046ac400eaa241773c73eacf3344cfaafa1dc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060discoveredControls\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d60fe234f56b151a9764cbbb0bccb9de76000f3fd5e39c81c244abbb9ce02d"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060availableActions\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1016}}}],"partialFingerprints":{"codehealthFindingId/v1":"19a4fc9aa59236127663cd0d3341cfd484920fedada8edc5d95e32968281186f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060columnAvailable\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/fallback.js"},"region":{"startLine":1122}}}],"partialFingerprints":{"codehealthFindingId/v1":"922d33afe2c08a6e87debe3713f8222dd0841af34a37de0e457fec54722b748b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readTheme\u0060 swallows every exception into \u0060return \u0027auto\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/shell.js"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"94f3922a8a314ecb4b66ed1682b0c3c1444ed9acf26a2f63e77d9c7b8c2abc6a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060controlIsInlineAction\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/admin/js/mobile/workflows.js"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"de698dc40b70a8dcf1900c99947afaa7fadf93b6bd02dc925dd5b29beea48e4f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeNavigationUrl\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component.js"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a5e890e10b1db8ab647c711e33bf16fc178d0abb82a80035cd41ae48f8bd388"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060safeMessageImageUrl\u0060 swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"121f17bed6ded7406cdaa48ab17c2dcec3364035df17cdf79a87a66229cc5c7f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060normalizeLink\u0060 (in \u0060sanitizeInlineHtml\u0060) swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/common/js/component.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ae7e3bf5e4d4b40f2de4b9e30a106aa2eb0ee9bbf34d806f7d9fc08e7e946e"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060gutterEvent\u0060 swallows every exception into \u0060return false\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/static/codemirror/lib/codemirror.js"},"region":{"startLine":7655}}}],"partialFingerprints":{"codehealthFindingId/v1":"0574e7d0479a7cbb3c9b123d6dc70c9ed4e35d3683008821b85549bb52888ef9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060cleanUrl\u0060 (in \u0060sanitizeHtml\u0060) swallows every exception into \u0060return \u0027\u0027\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/user/controller/user/ticket.detail.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9610217b49dd398458de1afc978cb6074207757e965b6cad90a7911437be560"}}],"taxonomies":[{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d","organization":"MITRE","informationUri":"https://cwe.mitre.org/","isComprehensive":false,"shortDescription":{"text":"The MITRE Common Weakness Enumeration (CWE)."},"taxa":[{"id":"CWE-1032","guid":"5f21e517-68aa-a650-9a25-5771ef024637","name":"OWASP Top Ten \u2014 Security Misconfiguration category","shortDescription":{"text":"OWASP Top Ten \u2014 Security Misconfiguration category"},"helpUri":"https://cwe.mitre.org/data/definitions/1032.html"},{"id":"CWE-125","guid":"98717707-96bf-ca5b-9568-8d1d257574c1","name":"CWE-125","shortDescription":{"text":"CWE-125"},"helpUri":"https://cwe.mitre.org/data/definitions/125.html"},{"id":"CWE-1357","guid":"e4d2e772-757e-0a5c-bd7d-77052949d866","name":"Reliance on Insufficiently Trustworthy Component","shortDescription":{"text":"Reliance on Insufficiently Trustworthy Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1357.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-16","guid":"659db3ea-affc-8453-8add-c1218fbfcb92","name":"Configuration","shortDescription":{"text":"Configuration"},"helpUri":"https://cwe.mitre.org/data/definitions/16.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"CWE-353","shortDescription":{"text":"CWE-353"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-457","guid":"b62874fe-6222-8b5b-8ade-9527ad1cbb4a","name":"CWE-457","shortDescription":{"text":"CWE-457"},"helpUri":"https://cwe.mitre.org/data/definitions/457.html"},{"id":"CWE-470","guid":"cb7c8905-5e4e-8953-beaa-c539c9922a31","name":"CWE-470","shortDescription":{"text":"CWE-470"},"helpUri":"https://cwe.mitre.org/data/definitions/470.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-522","guid":"71fb233e-ce6a-ae57-9419-ef8373540b09","name":"CWE-522","shortDescription":{"text":"CWE-522"},"helpUri":"https://cwe.mitre.org/data/definitions/522.html"},{"id":"CWE-732","guid":"1da27e8f-b330-7650-ab63-bd61953eae5d","name":"Incorrect Permission Assignment for Critical Resource","shortDescription":{"text":"Incorrect Permission Assignment for Critical Resource"},"helpUri":"https://cwe.mitre.org/data/definitions/732.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-829","guid":"13c33925-97fb-5a5e-b40c-56d328b8a4d7","name":"CWE-829","shortDescription":{"text":"CWE-829"},"helpUri":"https://cwe.mitre.org/data/definitions/829.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-918","guid":"2e9b9091-5a0f-dc57-b644-7ad04bd56e64","name":"CWE-918","shortDescription":{"text":"CWE-918"},"helpUri":"https://cwe.mitre.org/data/definitions/918.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":54,"secretScannerRunsExcluded":0}},"redactionTokens":["A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."]}]}