{"$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":"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":"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":"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":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AC7","name":"A11y enforcement","shortDescription":{"text":"A11y enforcement"},"helpUri":"https://codehealth.canine.dev/dimensions/AC7"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"AXB2","name":"Runtime readiness","shortDescription":{"text":"Runtime readiness"},"helpUri":"https://codehealth.canine.dev/dimensions/AXB2"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"M4","name":"Documentation accuracy","shortDescription":{"text":"Documentation accuracy"},"helpUri":"https://codehealth.canine.dev/dimensions/M4"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P12","name":"CI test-gate honesty","shortDescription":{"text":"CI test-gate honesty"},"helpUri":"https://codehealth.canine.dev/dimensions/P12"},{"id":"P2","name":"Observability","shortDescription":{"text":"Observability"},"helpUri":"https://codehealth.canine.dev/dimensions/P2"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R11","name":"Import Boundaries","shortDescription":{"text":"Import Boundaries"},"helpUri":"https://codehealth.canine.dev/dimensions/R11"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"R5","name":"Dependency Freshness","shortDescription":{"text":"Dependency Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/R5"},{"id":"R6","name":"Tooling","shortDescription":{"text":"Tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/R6"},{"id":"R7","name":"Dead Code","shortDescription":{"text":"Dead Code"},"helpUri":"https://codehealth.canine.dev/dimensions/R7"},{"id":"R8","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/R8"},{"id":"R9","name":"Circular Imports","shortDescription":{"text":"Circular Imports"},"helpUri":"https://codehealth.canine.dev/dimensions/R9"},{"id":"SC1","name":"Supply-chain hygiene","shortDescription":{"text":"Supply-chain hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/SC1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"load-plugin.default (cyclomatic 343): load-plugin.default has cyclomatic complexity 343 (threshold 15). Most of this is not in the body itself: 11 of the 343 points are its own statements and the rest belongs to 62 function literals inside it that branch (lines 1608, 2012, 1254, \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":"lib/plugins/load-plugin.js"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c21f4ec6af3690432c0426b21e5e4479e040aed0352230c681abbe831a45f0f"}},{"ruleId":"D1","level":"warning","message":{"text":"res.default (cyclomatic 337): res.default has cyclomatic complexity 337 (threshold 15). Of this number, 123 points are the body\u0027s own statements and 214 belong to 25 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":"lib/inspectors/res.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d0ee3e4cc9ef779b2d8c79a0b3b4611d39d8917265926e518714aaf9dac5ef4"}},{"ruleId":"D1","level":"warning","message":{"text":"componentDidMount (cyclomatic 280): componentDidMount has cyclomatic complexity 280 (threshold 15). Most of this is not in the body itself: 6 of the 280 points are its own statements and the rest belongs to 113 function items inside it that branch ((anonymous), (anonymous), (anonymous), \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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"187a606f0422c710c69d920cf4581ab27b46dfe1a5feab2b8bf2703ab24bfa60"}},{"ruleId":"D1","level":"warning","message":{"text":"config.extend (cyclomatic 230): config.extend has cyclomatic complexity 230 (threshold 15). Of this number, 135 points are the body\u0027s own statements and 95 belong to 12 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":"lib/config.js"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c776675d998e54c26999babcac2585710c8c266b3ca027356700de0e081a097"}},{"ruleId":"D1","level":"warning","message":{"text":"tunnel.tunnelProxy (cyclomatic 223): tunnel.tunnelProxy has cyclomatic complexity 223 (threshold 15). Most of this is not in the body itself: 1 of the 223 points is its own statement and the rest belongs to 30 function literals inside it that branch (lines 248, 754, 44, \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":"lib/tunnel.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b46ca2e03c1b1e4911f33217e2eee5a0c0294f4605bede52a8d8b7cc626558b"}},{"ruleId":"D1","level":"warning","message":{"text":"data-server.init (cyclomatic 198): data-server.init has cyclomatic complexity 198 (threshold 15). Of this number, 141 points are the body\u0027s own statements and 57 belong to 11 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":"lib/util/data-server.js"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d59b3921f0ed7666cee78fa967f98a8c87a9462ee33cdaf2638281cebe59ea17"}},{"ruleId":"D1","level":"warning","message":{"text":"index.resolveWebsocket (cyclomatic 188): index.resolveWebsocket has cyclomatic complexity 188 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 151 belong to 24 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":"lib/https/index.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c763da030e5346b7af117d5460efa3087ff43dfa2a88a6b95f38edb3c28a51"}},{"ruleId":"D1","level":"warning","message":{"text":"data.emitDataEvents (cyclomatic 137): data.emitDataEvents has cyclomatic complexity 137 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 85 belong to 20 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":"lib/inspectors/data.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab4901de173a273d0a3625b16bedd08e6c5e7c2e2cc3acdd1f785f6744f0102"}},{"ruleId":"D1","level":"warning","message":{"text":"rules-hint.CodeMirror.registerHelper(\u0022hint\u0022,\u0022rulesHint\u0022) (cyclomatic 114): rules-hint.CodeMirror.registerHelper(\u0022hint\u0022,\u0022rulesHint\u0022) has cyclomatic complexity 114 (threshold 15). Of this number, 104 points are the body\u0027s own statements and 10 belong to 6 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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"0771aaf86b476ab5c7206b4db9d7efca78f1e9da2e2b435be7af45f5d35d111a"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 114): (anonymous) has cyclomatic complexity 114 (threshold 15). Of this number, 102 points are the body\u0027s own statements and 12 belong to 9 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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6d158d00570a3ecf3026242f4913a91b0bb3d76f628b9b2e3e8f4275c0a2b0"}},{"ruleId":"D1","level":"warning","message":{"text":"data-center.startLoadData (cyclomatic 107): data-center.startLoadData has cyclomatic complexity 107 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 85 belong to 8 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"caf9cc3a56c3d5b9e60e4b0f6d164bbe668e5b3041141ed27df286881b119f73"}},{"ruleId":"D1","level":"warning","message":{"text":"req.handleParams (cyclomatic 91): req.handleParams has cyclomatic complexity 91 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 62 belong to 9 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":"lib/inspectors/req.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f34f406f758bdc7ac69a154d49d53115d7b5c401da8b9e9fabea8a3929ee37f"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 80): render has cyclomatic complexity 80 (threshold 15). Of this number, 74 points are the body\u0027s own statements and 6 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":3942}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e34b3971d5554d1be755109960baf64e75cd505e8101f93b1c87677165faecf"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.resolveRuleList (cyclomatic 78): rules.resolveRuleList has cyclomatic complexity 78 (threshold 15). Of this number, 65 points are the body\u0027s own statements and 13 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":"lib/rules/rules.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cb1cb75d8312ef32ba48f9e8408530023d667518071e373b1de4e5c43a3d576"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.resolveMatchFilter (cyclomatic 75): rules.resolveMatchFilter has cyclomatic complexity 75 (threshold 15). Most of this is not in the body itself: 1 of the 75 points is its own statement and the rest belongs to one function literal inside it that branches (line 1547). 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":"lib/rules/rules.js"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"c949f8035f8d9c4be21e71b4684b6c6b4f09593cfbaba916850e7f402c9cdc6e"}},{"ruleId":"D1","level":"warning","message":{"text":"index.getProxy (cyclomatic 75): index.getProxy has cyclomatic complexity 75 (threshold 15). Of this number, 41 points are the body\u0027s own statements and 34 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":"lib/rules/index.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"932b84d815d3914397c82de1feb433ceac01bd6be80e60250ba003b042f3f0f5"}},{"ruleId":"D1","level":"warning","message":{"text":"rules-mode.CodeMirror.defineMode(\u0022rules\u0022) (cyclomatic 67): rules-mode.CodeMirror.defineMode(\u0022rules\u0022) has cyclomatic complexity 67 (threshold 15). Most of this is not in the body itself: 15 of the 67 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 191, 174). 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":"biz/webui/htdocs/src/js/rules-mode.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"571ad84dd6ef9994f56a38b7be2ef3c5d80d5cc10b658c72fe21108b8e5b3ac9"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 67): render has cyclomatic complexity 67 (threshold 15). Of this number, 57 points are the body\u0027s own statements and 10 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":"biz/webui/htdocs/src/js/res-detail.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd701b19e007c168e7300aac7799196bae5ce19d878238dbd40a1b1b702e2aec"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.resolveVarValue (cyclomatic 66): rules.resolveVarValue has cyclomatic complexity 66 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/rules.js"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"21fd23edd13429225f8f39faf09b829ec60faadd8c896e1bae4c6aa0e37e5e19"}},{"ruleId":"D1","level":"warning","message":{"text":"composer.handleRequest (cyclomatic 65): composer.handleRequest has cyclomatic complexity 65 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 29 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":"lib/service/composer.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"416a07fa61901a9485fc579fe2ec2caa39fd4936441bc81fba2f2ca700a6f299"}},{"ruleId":"D1","level":"warning","message":{"text":"onContextMenu (cyclomatic 64): onContextMenu has cyclomatic complexity 64 (threshold 15). Of this number, 45 points are the body\u0027s own statements and 19 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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"095e9652d83706507e09a358bd230b3c88b296408b098c10e3b06a7825966182"}},{"ruleId":"D1","level":"warning","message":{"text":"index.default (cyclomatic 62): index.default has cyclomatic complexity 62 (threshold 15). Most of this is not in the body itself: 4 of the 62 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 1176, 1226, 1148, \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":"lib/https/index.js"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"b97951f0efeab4812d7c962422d7f06883ea29920e00d7b2dd9dc416078283ff"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 62): exports has cyclomatic complexity 62 (threshold 15). Most of this is not in the body itself: 4 of the 62 points are its own statements and the rest belongs to 11 function items inside it that branch ((anonymous), (anonymous)::handleConnect, isCaptureIp, \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":"lib/https/index.js"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"52e475c079869c8df7fd3685f24d7324610b3766126e2431139db0a882ecfcec"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.matchFilter (cyclomatic 61): rules.matchFilter has cyclomatic complexity 61 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 13 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":"lib/rules/rules.js"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"b87809ba655fee46e19a4a30232554c3029a508c95da0d0ede8fa4f1dc6aee12"}},{"ruleId":"D1","level":"warning","message":{"text":"onClickContextMenu (cyclomatic 61): onClickContextMenu has cyclomatic complexity 61 (threshold 15). Of this number, 58 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"543ec81cddae90af5f4a75fa0629d2bfa70868b1527d6624f72480d6058bd2f1"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.parseRule (cyclomatic 57): rules.parseRule has cyclomatic complexity 57 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/rules.js"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1831bf9429bf3c3a25f8cdef35fe0c43760216e8944c8a47e935827b6f0afdf"}},{"ruleId":"D1","level":"warning","message":{"text":"exports::initServers (cyclomatic 55): exports::initServers has cyclomatic complexity 55 (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":"lib/plugins/load-plugin.js"},"region":{"startLine":1608}}}],"partialFingerprints":{"codehealthFindingId/v1":"826d6cc9ca278a62fa9524375ca9769f4758d640c3292925f28bfeb118b7a30f"}},{"ruleId":"D1","level":"warning","message":{"text":"service.sessionsHandler (cyclomatic 53): service.sessionsHandler has cyclomatic complexity 53 (threshold 15). Most of this is not in the body itself: 1 of the 53 points is its own statement and the rest belongs to 21 function literals inside it that branch (lines 354, 488, 548, \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":"lib/service/service.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"f24a3d52581931007e9d3b369da80d009af7343909d81fbe9143dc0cb1ec0ed4"}},{"ruleId":"D1","level":"warning","message":{"text":"is-utf8.isUtf8 (cyclomatic 52): is-utf8.isUtf8 has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/is-utf8.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8cd46246989418db1b1a803e1059b4055c68e23fef3b77341815e964d5a37d0"}},{"ruleId":"D1","level":"warning","message":{"text":"is-utf8.isUtf8 (cyclomatic 52): is-utf8.isUtf8 has cyclomatic complexity 52 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/is-utf8.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ce31d762078487951bcc51f35ab057db291ed2b8d3be1fcc5ed256de93b9bb"}},{"ruleId":"D1","level":"warning","message":{"text":"index.getRulesFromPlugins (cyclomatic 51): index.getRulesFromPlugins has cyclomatic complexity 51 (threshold 15). Most of this is not in the body itself: 1 of the 51 points is its own statement and the rest belongs to 6 function literals inside it that branch (lines 982, 920, 893, \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":"lib/plugins/index.js"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e81e2d4b4fc8320788d55a862360a99d7594658306ecb4b83677ba90ddcde2c"}},{"ruleId":"D1","level":"warning","message":{"text":"data-center.setReqData (cyclomatic 46): data-center.setReqData has cyclomatic complexity 46 (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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"20f5681473e4f2f89eff187ddf5e4a4c4e56ab9e3fdd721341977eb6122c6d80"}},{"ruleId":"D1","level":"warning","message":{"text":"index.default (cyclomatic 45): index.default has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/index.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5b953426693423210af11673675f1b2b7b135c2927736fe8958e79869f52d3"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 45): exports has cyclomatic complexity 45 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/index.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc07776036db0de436b78c75b0a49056d18925ff1524499ae978e82a3266d19c"}},{"ruleId":"D1","level":"warning","message":{"text":"network-modal.checkItem (cyclomatic 44): network-modal.checkItem has cyclomatic complexity 44 (threshold 15). To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Where every arm is uniform \u2014 the same kind of value, with no behaviour of its own \u2014 a table keyed by the case is the shorter form; wherever the arms carry different data or different behaviour, keep them as cases, because collapsing those trades an explicit, reviewable set of cases for nothing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"6968e702e05ca9e8ad768f44bb51177b97f594d5024de0ee12ea440d3e3a8fc2"}},{"ruleId":"D1","level":"warning","message":{"text":"exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request (cyclomatic 44): exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request has cyclomatic complexity 44 (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":"lib/inspectors/res.js"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"306d6516a7fd671f98ab549df6af461202efa3ea00c66584972b42dd2b4423e3"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 44): render has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 8 of the 44 points are its own statements and the rest belongs to one function literal inside it that branches (line 146). 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":"biz/webui/htdocs/src/js/overview.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"741d00fc60cf374fd941ef13c46ea5694623d0b1349bc956430ddfbbbf742b91"}},{"ruleId":"D1","level":"warning","message":{"text":"data-center.getAppName (cyclomatic 43): data-center.getAppName 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdcd8c67fd0175db65e2f74ed3f06ff7917684624cafdc862df8e12fdc396e71"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 43): render has cyclomatic complexity 43 (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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"e14b412ca6ba4df708221751b3d15336ea782fe756469664d95ea50e0464c8cb"}},{"ruleId":"D1","level":"warning","message":{"text":"log.patchJSON (cyclomatic 42): log.patchJSON has cyclomatic complexity 42 (threshold 15). Of this number, 35 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/js/log.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"254e0819fde422572e78061b542818decfe350f129ca1a34af653ae3183a70a1"}},{"ruleId":"D1","level":"warning","message":{"text":"index.readRuleList (cyclomatic 42): index.readRuleList has cyclomatic complexity 42 (threshold 15). Most of this is not in the body itself: 13 of the 42 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1344, 1313, 1378, \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":"lib/util/index.js"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"4847d331227e6aed421839d56608530d7614dd450ca8428a34e1af1310d12c34"}},{"ruleId":"D1","level":"warning","message":{"text":"socket-mgr.handleWsSend (cyclomatic 41): socket-mgr.handleWsSend has cyclomatic complexity 41 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 22 belong to 7 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 shape REPEATS in the file: one other method here (socket-mgr.handleWsReceive) 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":"lib/socket-mgr.js"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c7c992d1d19d921e6c013946ece89fdeb447c125bf4d60db7f09c9622462159"}},{"ruleId":"D1","level":"warning","message":{"text":"socket-mgr.handleWsReceive (cyclomatic 41): socket-mgr.handleWsReceive has cyclomatic complexity 41 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 22 belong to 7 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 shape REPEATS in the file: one other method here (socket-mgr.handleWsSend) 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":"lib/socket-mgr.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf3e9003b0723dd88862e106b67f647cd08a299fe742432a9f0e6857532d32cd"}},{"ruleId":"D1","level":"warning","message":{"text":"exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request::retry (cyclomatic 41): exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request::retry 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":"lib/inspectors/res.js"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"32577ebe2275f867194b73d7384be07168f7da00edc5c452907234ed222c49c3"}},{"ruleId":"D1","level":"warning","message":{"text":"file-proxy.default (cyclomatic 40): file-proxy.default has cyclomatic complexity 40 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 22 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":"lib/handlers/file-proxy.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9c3e92350d778a5c02148d68897ec80253887d881a5504a947c1799f7384f5"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 40): exports has cyclomatic complexity 40 (threshold 15). Most of this is not in the body itself: 13 of the 40 points are its own statements and the rest belongs to 5 function items inside it that branch ((anonymous), render, (anonymous)::(anonymous), \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":"lib/handlers/file-proxy.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d7297cf95bba39519ae90bde5cae4a2d982d660e87bf1e2954229316fc6cbb0"}},{"ruleId":"D1","level":"warning","message":{"text":"req.default (cyclomatic 38): req.default has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 474, 547, 590). 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":"lib/inspectors/req.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"16f526da73eccf454cf4941ec5b714255d330fea49e968ea2f1d6915e64f1038"}},{"ruleId":"D1","level":"warning","message":{"text":"extract-saz.default (cyclomatic 38): extract-saz.default has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 1 of the 38 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 196, 155, 119, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/service/extract-saz.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2540279cf73772b0610c23f390db524b6028e0091a2b8289aa5b447ed568718"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 38): exports has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 474, 547, 590). 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":"lib/inspectors/req.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"215268ea651fa609f09cf200033bb223d9a785d378ad5bc19dc52daf0aec41f3"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 38): exports has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 1 of the 38 points is its own statement and the rest belongs to 12 function items inside it that branch ((anonymous)::(anonymous), (anonymous), execCallback::(anonymous), \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":"lib/service/extract-saz.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b59f96ff833476452f9f15fb3aee9343aa355dbe14a63360d1ecdf829a566cdc"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 38): render has cyclomatic complexity 38 (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":"biz/webui/htdocs/src/js/req-detail.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0d1966550461ee076d6feecbec7ff8aca3074bae7acbd0c7403ce102eaf6ea"}},{"ruleId":"D1","level":"warning","message":{"text":"updateServerInfo (cyclomatic 37): updateServerInfo has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 15 of the 37 points are its own statements and the rest belongs to 9 function items inside it that branch ((anonymous), toggleDns, addInfo, \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":"biz/webui/htdocs/src/js/online.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f10f155c5a1ba6996f16acc18b0054d6e52799665f6785ab0ccbe9cf4186a4c"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 37): render has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 8 of the 37 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 389, 446). 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":"biz/webui/htdocs/src/js/frame-list.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90f8cefc99f6afcc8f417cd6d01c2e9f08ae3760050aaf4f828823daee16d3b"}},{"ruleId":"D1","level":"warning","message":{"text":"componentDidUpdate (cyclomatic 36): componentDidUpdate has cyclomatic complexity 36 (threshold 15). Of this number, 29 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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"30bc8ca1491fb72948e322ba3899846e638cc8278513b0ad9781c524232a1ccd"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 36): render has cyclomatic complexity 36 (threshold 15). Most of this is not in the body itself: 14 of the 36 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 137, 121, 158, \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":"biz/webui/htdocs/src/js/matched-rule.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ea7d0d9a55c89f9713d990419a504c67ac2a5e607a3e03940863c680973708"}},{"ruleId":"D1","level":"warning","message":{"text":"componentDidMount (cyclomatic 35): componentDidMount has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 22 function items inside it that branch ((anonymous), importRemoteUrl, (anonymous), \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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"069013393668cf91f51daea7a7821eb791a3d230745eeaa3e1ae6dd4e0fbb6f0"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 35): render has cyclomatic complexity 35 (threshold 15). Most of this is not in the body itself: 3 of the 35 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 40, 21, 15). 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":"biz/webui/htdocs/src/js/timeline.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a725b95da4cdc145379ecf126cd84e899e37423ca8e638ac098e224ad72f20"}},{"ruleId":"D1","level":"warning","message":{"text":"init.default (cyclomatic 34): init.default has cyclomatic complexity 34 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/init.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"450b2af8c46125e061f1aa25875c325a79213362c09b736df7fecc4e0e74eec8"}},{"ruleId":"D1","level":"warning","message":{"text":"init::getData (cyclomatic 34): init::getData 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":"lib/util/data-server.js"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac036fddd88152bc846c70335f673cb997f122bd141f66f624f5315c2364bb9"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 34): exports has cyclomatic complexity 34 (threshold 15). Of this number, 30 points are the body\u0027s own statements and 4 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":"lib/init.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"c32a6726cc1f0e0902dd541f4b94793389c119c8ce1c3cb46e16997d936df5c1"}},{"ruleId":"D1","level":"warning","message":{"text":"index.proxy (cyclomatic 32): index.proxy has cyclomatic complexity 32 (threshold 15). Most of this is not in the body itself: 13 of the 32 points are its own statements and the rest belongs to 9 function literals inside it that branch (lines 96, 197, 50, \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":"lib/index.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"300dd27fe0325e9edb4308a6120161510be35b9016a322176a3858cad1e3497a"}},{"ruleId":"D1","level":"warning","message":{"text":"getInitialState (cyclomatic 32): getInitialState has cyclomatic complexity 32 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 6 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"48edbe227aba40c57d42b4a395575f13a7ad53f7aef8f852d4993e52c490d8bd"}},{"ruleId":"D1","level":"warning","message":{"text":"api.createPattern (cyclomatic 31): api.createPattern has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 7 of the 31 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 564, 558). 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":"bin/api.js"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c825da55bc949572690ce380e75469802a2d7b9ed1aefcc79197b8bfda0f1ef"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.isRegUrl (cyclomatic 31): rules.isRegUrl has cyclomatic complexity 31 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/rules.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ddafef62fe41437dcfb1678d38312aa088dff3cd5234ec5270dae107ff057d9"}},{"ruleId":"D1","level":"warning","message":{"text":"getHeaderRules (cyclomatic 31): getHeaderRules has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 7 of the 31 points are its own statements and the rest belongs to one function literal inside it that branches (line 92). 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":"biz/webui/htdocs/src/js/rule-mixin.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6eb08afc8ff89495284d2486c20444da7a11967ce9a79b02f1ac1752a05781"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 31): render has cyclomatic complexity 31 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 8 belong to 3 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":"biz/webui/htdocs/src/js/detail.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"317852b020cb7e9d58aca97df40ee0e321bd05ac613b8d2b85aac96a2fbd4f4c"}},{"ruleId":"D1","level":"warning","message":{"text":"dns.lookupDNS (cyclomatic 30): dns.lookupDNS has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 9 of the 30 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 75, 93, 148). 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":"lib/rules/dns.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3400e396a00c12e896d9ded23c0f70bfe3928395a04239595d380d056a7d1f"}},{"ruleId":"D1","level":"warning","message":{"text":"extract-saz.parseMetaInfo (cyclomatic 30): extract-saz.parseMetaInfo has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/service/extract-saz.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc11269e3b0a0cfe41f69f01b9f53d3879a9d5508fb2ad3787bb904b9a02b1e9"}},{"ruleId":"D1","level":"warning","message":{"text":"init::formatFilter (cyclomatic 30): init::formatFilter has cyclomatic complexity 30 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/data-server.js"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d7ce79457f34d1c8714c91a5e9ef29d9c6fdb1d183dad55e700d4c1ffcf9e94"}},{"ruleId":"D1","level":"warning","message":{"text":"setSettings (cyclomatic 30): setSettings has cyclomatic complexity 30 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 12 belong to 3 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":"biz/webui/htdocs/src/js/network-settings.js"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"772665ae3bc6152b3864b4a1be0d2cb089e4c8fd5260296b761fef2ed3c696cb"}},{"ruleId":"D1","level":"warning","message":{"text":"componentDidMount (cyclomatic 30): componentDidMount has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 3 of the 30 points are its own statements and the rest belongs to 6 function items inside it that branch ((anonymous), initTextArea, initTextArea::onkeydown, \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":"biz/webui/htdocs/src/js/editor-dialog.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"691794b90a88fbaea48817bd313c421e95b5c6aa61651bb21b5411a259df4258"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 30): exports has cyclomatic complexity 30 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 13 belong to 9 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":"index.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"979e81d0505f8cb49156db7ad2643b559c7eb0191dfa44ac953cfbb6bedd71d0"}},{"ruleId":"D1","level":"warning","message":{"text":"index.getClientCert (cyclomatic 29): index.getClientCert 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 5 function literals inside it that branch (lines 749, 792, 826, \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":"lib/rules/index.js"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"77b0714b362d8934593b560cf9de0d34fd66bd1e6f13798a8882a6c9d178c22e"}},{"ruleId":"D1","level":"warning","message":{"text":"index.default (cyclomatic 29): index.default has cyclomatic complexity 29 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 13 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":"index.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2d6cdd2cd2ebb58af20eb21d131068e3106ed36fd82baca44cdb9947a8e2e7e"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy.default (cyclomatic 29): proxy.default 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 9 function literals inside it that branch (lines 187, 134, 142, \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":"lib/plugins/proxy.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"b39c067ee9fbd9fe1f36bdab8190d96915fe3b5235b14ed282dc4173782df4f6"}},{"ruleId":"D1","level":"warning","message":{"text":"exports::normalizeArgs (cyclomatic 29): exports::normalizeArgs 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":"lib/plugins/load-plugin.js"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"0734fa0313f14dd7e4c1d1df534d72e0ff775bc3abe3229a5b67ae02a2ee7032"}},{"ruleId":"D1","level":"warning","message":{"text":"onClickContextMenu (cyclomatic 29): onClickContextMenu has cyclomatic complexity 29 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 3 belong to one function item 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":"biz/webui/htdocs/src/js/list.js"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4cd24d5ecf144d13511bdbeaee177dc2a80feeafa221475426aa96baf612728"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::patchJSON::str (cyclomatic 29): (anonymous)::patchJSON::str 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/js/log.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"5842c1dae9d9230903a7b499be406ffab5aff0a1d7467d0ca69a17f14e69c5ff"}},{"ruleId":"D1","level":"warning","message":{"text":"getBodyRules (cyclomatic 29): getBodyRules 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 2 function items inside it that branch ((anonymous), addRule). 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":"biz/webui/htdocs/src/js/response-rule.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"714839ba57db27a22c8cf4f470e6b32289b7558c08945d9ebde4deb6e7f10398"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 29): exports 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 12 function items inside it that branch ((anonymous)::request, (anonymous)::connect, (anonymous)::request::createConnection, \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":"lib/plugins/proxy.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81e7a760b7709afa3b5988d347d93ae8156e47d4703794e240bb26606a69ec8"}},{"ruleId":"D1","level":"warning","message":{"text":"http-mgr.updateBody (cyclomatic 28): http-mgr.updateBody has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 5 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 375). 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":"lib/util/http-mgr.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0e23c0e8c5705b65fe12fcfcbb59ea5b84dbe6968eb1a73d2f8e174901fbab9"}},{"ruleId":"D1","level":"warning","message":{"text":"util.harToSession (cyclomatic 28): util.harToSession has cyclomatic complexity 28 (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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"d82061e2fd3d471a589a39b39ef42ece5dd7ad69660d877dc0926e525b78b85f"}},{"ruleId":"D1","level":"warning","message":{"text":"h2.request (cyclomatic 27): h2.request has cyclomatic complexity 27 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 8 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":"lib/https/h2.js"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"25adcfb81a4766b036f5ea118bfd049f7b077cf06b5707d060d5a20be5324207"}},{"ruleId":"D1","level":"warning","message":{"text":"index.authReq (cyclomatic 27): index.authReq 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 4 function literals inside it that branch (lines 834, 865, 822, \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":"lib/plugins/index.js"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ab9b8c98ef3249dc4976254cb975d9f49088e9ef18b598fd679a184b31781a"}},{"ruleId":"D1","level":"warning","message":{"text":"data-center.updateServerInfo (cyclomatic 27): data-center.updateServerInfo 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1940}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39039151f4c7c1ca91aa7565b6006c7802fa90dce8cec886a1c778b304049a7"}},{"ruleId":"D1","level":"warning","message":{"text":"rules-hint.handleRemoteHints (cyclomatic 27): rules-hint.handleRemoteHints has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 11 of the 27 points are its own statements and the rest belongs to one function literal inside it that branches (line 424). 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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"3816fc1519358730372b8fa5db686ef2e10426c7ea6a989608799fcf58e99592"}},{"ruleId":"D1","level":"warning","message":{"text":"onCompose (cyclomatic 27): onCompose has cyclomatic complexity 27 (threshold 15). Of this number, 24 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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"84656307364aba7a40a5698561c2bef5268e7438c72fb17f360349081650c295"}},{"ruleId":"D1","level":"warning","message":{"text":"index.readPackages (cyclomatic 26): index.readPackages has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 2 of the 26 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 362, 357, 352). 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":"lib/plugins/index.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"05473646bf487d9b70a7e313c0ace65b8857daeebab5860a81cfcc38aab94c73"}},{"ruleId":"D1","level":"warning","message":{"text":"index.getCookieItem (cyclomatic 25): index.getCookieItem 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":"lib/util/index.js"},"region":{"startLine":3095}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9adc29ff0d852a11693f54496701dfbfc59232d37e11cce2acdab00f4ce802b"}},{"ruleId":"D1","level":"warning","message":{"text":"util.addRules (cyclomatic 25): util.addRules 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 one function literal inside it that branches (line 618). 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":"lib/rules/util.js"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"36bc2de5de81f8ced47203e3d644bea87b5816634d2f0558077c40f33f15a3c2"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.parseWildcard (cyclomatic 25): rules.parseWildcard 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":"lib/rules/rules.js"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a43de6c1dc7d42d25ecc04c975309a3bc63dba2bab61e772590c7ea90f9608f"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 25): render has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 6 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 397). 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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf55f60a692ec18495300a293819b5a608b44f9882f26743df95e6cd4702f999"}},{"ruleId":"D1","level":"warning","message":{"text":"getPopup (cyclomatic 25): getPopup has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 4 of the 25 points are its own statements and the rest belongs to 6 function items inside it that branch ((anonymous), (anonymous)::(anonymous), update, \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":"biz/webui/htdocs/src/js/context-menu.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fbaa7392bfc02315061afb1741f28dc02b96ceabf64bc526dada77c575a79df"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 25): render has cyclomatic complexity 25 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 10 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":"biz/webui/htdocs/src/js/menu-item.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6298473ad05fe48e741b7dd7501cc43d1e34e3b6c3abb4c4b1d8cab639d8b9"}},{"ruleId":"D1","level":"warning","message":{"text":"storage.Storage (cyclomatic 24): storage.Storage has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 5 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 81, 163, 148). 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":"lib/rules/storage.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a0fdd902ff76ab2b869500d6d46ff8f6e376b8fc4c253ba9e255464fb50363e"}},{"ruleId":"D1","level":"warning","message":{"text":"get-plugins-sync.default (cyclomatic 24): get-plugins-sync.default has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to one function literal inside it that branches (line 96). 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":"lib/plugins/get-plugins-sync.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"d026cbba869b42e63ffcd7906f85b428d1481342758ffca1841e08a5d25a5fb1"}},{"ruleId":"D1","level":"warning","message":{"text":"socket-mgr.handleConnect (cyclomatic 24): socket-mgr.handleConnect has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 11 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 800, 775, 798). 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":"lib/socket-mgr.js"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef6491119574a93438e85b81d02781e4325c020f97a47aa32403fb56ea2ea35"}},{"ruleId":"D1","level":"warning","message":{"text":"upgrade.getPluginNameByReq (cyclomatic 24): upgrade.getPluginNameByReq has cyclomatic complexity 24 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 6 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":"lib/upgrade.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3349e21e151e3a47a4a706e75b57d2b4d183917ea0a7ddc987cdbc8781e19ba"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 24): exports has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 96, 91). 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":"lib/plugins/get-plugins-sync.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f0e9a920df48679b14e13364fb1101fc4ab635ffc4eb15836f8936add096ad"}},{"ruleId":"D1","level":"warning","message":{"text":"plugin.installPlugins (cyclomatic 23): plugin.installPlugins has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 224, 229, 247, \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":"bin/plugin.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d5a55ff054372f64003dc79fcc33cea4166312fb64636d5f2552e7f8430b198"}},{"ruleId":"D1","level":"warning","message":{"text":"index.parsePathReplace (cyclomatic 23): index.parsePathReplace has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 6 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":"lib/util/index.js"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a85edb3b56e8a432fcb156e3af797acdf956eda69073a4578ac77926a05290b"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.resolveResCookiesVar (cyclomatic 23): rules.resolveResCookiesVar has cyclomatic complexity 23 (threshold 15). 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, 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":"lib/rules/rules.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"723501bba1ed857a0b310ad6d457513ebb5aa43e9c3456a1a1110fc4aa5c5403"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.resolveTplVar (cyclomatic 23): rules.resolveTplVar 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 one function literal inside it that branches (line 716). 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":"lib/rules/rules.js"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3227b3d3645fe40821ae96ad639616d5d48043f02c6ea8d418f7e6fa46b783"}},{"ruleId":"D1","level":"warning","message":{"text":"parse-curl.default (cyclomatic 23): parse-curl.default has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 92, 130). 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":"biz/webui/htdocs/src/js/parse-curl.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec4d721d0c9b3dcc31e70201eb3ea5fc39bff2c9b9ad32a615ae52d4c0dd75a6"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 23): exports has cyclomatic complexity 23 (threshold 15). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 92, 130). 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":"biz/webui/htdocs/src/js/parse-curl.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fcc2d2d5f10c8563b7eb59e4e42a74c7b02b1b0771a97a0fcd60cd2afc02fec"}},{"ruleId":"D1","level":"warning","message":{"text":"use.getConfig (cyclomatic 22): use.getConfig has cyclomatic complexity 22 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 9 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":"bin/use.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5b86d04e47916f2cae913477b1ed0b2dbd6189ea9da67d621d2656c346ddb13"}},{"ruleId":"D1","level":"warning","message":{"text":"cli.default (cyclomatic 22): cli.default 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 one function literal inside it that branches (line 56). 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":"bin/ca/cli.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1df649ead0d7eaf29b884658cd7b52ae059fd8a852799741c3a92740faf2ac"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.resolveFilterPattern (cyclomatic 22): rules.resolveFilterPattern 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":"lib/rules/rules.js"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc51504ac1dd0a2a54ea2ba18bfcab0c8e9bdddf60bd63332c535c86ebd95daf"}},{"ruleId":"D1","level":"warning","message":{"text":"ca.loadCustomCerts (cyclomatic 22): ca.loadCustomCerts has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 344, 375). 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":"lib/https/ca.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"5030c8061504834ca25e52c85c5e3111f1d5fce5bac67b45c910209b467871aa"}},{"ruleId":"D1","level":"warning","message":{"text":"index.getPipe (cyclomatic 22): index.getPipe 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 5 function literals inside it that branch (lines 1210, 1258, 1240, \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":"lib/plugins/index.js"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d94dbfb7d246dcb48288403cc3b5c135af114c044d50eda820c2a92134b356"}},{"ruleId":"D1","level":"warning","message":{"text":"data-center.handleHashFilterChanged (cyclomatic 22): data-center.handleHashFilterChanged 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ead28d315d12c84377f842b3816c0e9d7d5ea526ef7d7984a966836a7e202fc"}},{"ruleId":"D1","level":"warning","message":{"text":"index.toHttp1 (cyclomatic 22): index.toHttp1 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 1056, 1015, 1058, \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":"lib/https/index.js"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd8f2dc927de60f5cf044dfaba6942af9ea498a36b5cf5110efe630a7f19d0d8"}},{"ruleId":"D1","level":"warning","message":{"text":"upgrade.upgradeHandler (cyclomatic 22): upgrade.upgradeHandler has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 9 of the 22 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 125, 105, 147). 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":"lib/upgrade.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ef1a3dfed3df4d90f91ada56dc80affef918d87d272fb97f66475ca36b63de"}},{"ruleId":"D1","level":"warning","message":{"text":"composer.handleHttp (cyclomatic 22): composer.handleHttp has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 5 of the 22 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 309, 252, 274, \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":"lib/service/composer.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc1166a2ba38119fc9312901e5087c05eee3e62dd39927f528a2f0e8cbab2510"}},{"ruleId":"D1","level":"warning","message":{"text":"addParserApi (cyclomatic 22): addParserApi 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 8 function items inside it that branch ((anonymous), on, emitDisconnect, \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":"lib/plugins/load-plugin.js"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d67a629e67c4e365422895b33f279180a34a0dd6597525ab8ac75f9b055b3f"}},{"ruleId":"D1","level":"warning","message":{"text":"execute (cyclomatic 22): execute 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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2050c177721c9513cfb1b51cdd8bd5a3ed5fec89b4e7500353e3293b348b344"}},{"ruleId":"D1","level":"warning","message":{"text":"onContextMenu (cyclomatic 22): onContextMenu 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":"biz/webui/htdocs/src/js/list.js"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"11e10e74a9856b638e1e0176bfa8a342e03c7e34d159d6241bf78665e5e88449"}},{"ruleId":"D1","level":"warning","message":{"text":"init::checkType (cyclomatic 22): init::checkType 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":"lib/util/data-server.js"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e04aeb99ec4f3f15e5c6fb0bb4c8b294854a9a31f31936060236b829b1ad79"}},{"ruleId":"D1","level":"warning","message":{"text":"getProxy::resolvePacRule (cyclomatic 22): getProxy::resolvePacRule 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":"lib/rules/index.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"72137cd903b260619d8ff8a6e7eaa497bfa496bd6b5e426086b140daca63c494"}},{"ruleId":"D1","level":"warning","message":{"text":"handleParams::getChunk (cyclomatic 22): handleParams::getChunk 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":"lib/inspectors/req.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7f0aa1197035e4f08a6572c36e83def949f9944684d30be748d8c1ccfd930ea"}},{"ruleId":"D1","level":"warning","message":{"text":"onSave (cyclomatic 22): onSave has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 7 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 282, 337, 272, \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":"biz/webui/htdocs/src/js/editor-dialog.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"71e436a18ecfae2ec3f11ee1ff0fe9cf27de8a296257bcc215658c6a4da6c0c2"}},{"ruleId":"D1","level":"warning","message":{"text":"renderKey::render (cyclomatic 22): renderKey::render 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":"biz/webui/htdocs/src/js/properties.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8d9bfefc591142c7f92f947cad8876bb7ebc37a37602e8602cbdd75896a39cf"}},{"ruleId":"D1","level":"warning","message":{"text":"http-mgr.request (cyclomatic 21): http-mgr.request 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 6 function literals inside it that branch (lines 205, 232, 202, \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":"lib/util/http-mgr.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d0cb5314ec1a8a07170cc67b554ee8bf7b4ed74419959f6e4b3ef029cfac09"}},{"ruleId":"D1","level":"warning","message":{"text":"createRules (cyclomatic 21): createRules has cyclomatic complexity 21 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 8 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":2792}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbdb4e9a0125e689e19b01213df5622cf9da6bab80e539e2365b3d6a6282432a"}},{"ruleId":"D1","level":"warning","message":{"text":"startLoadData::load (cyclomatic 21): startLoadData::load 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"618a05910b3d1b90e7fa57788173c46d0b35625ce7120cffdafa632c20b4d8ca"}},{"ruleId":"D1","level":"warning","message":{"text":"getRulesFromPlugins::(anonymous)::(anonymous)::(anonymous)::handleRules (cyclomatic 21): getRulesFromPlugins::(anonymous)::(anonymous)::(anonymous)::handleRules 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":"lib/plugins/index.js"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ebfed9260e866cf980170a1a5b33839f8a2f8ef20f378e8207c858c2b71496"}},{"ruleId":"D1","level":"warning","message":{"text":"formatFiles (cyclomatic 21): formatFiles has cyclomatic complexity 21 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 4 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":"biz/webui/htdocs/src/js/certs-info-dialog.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"138e609b962b016f105fc28aad9267dabde9019d0e75ad5c7e68fdbabb8ad514"}},{"ruleId":"D1","level":"warning","message":{"text":"use.default (cyclomatic 20): use.default 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 6 function literals inside it that branch (lines 278, 266, 253, \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":"bin/use.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"04ae9480f69d016d4e066da85bd82269f7d9dcb393d143091abd3b147aeec660"}},{"ruleId":"D1","level":"warning","message":{"text":"plugin.install (cyclomatic 20): plugin.install 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 2 function literals inside it that branch (lines 146, 194). 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":"bin/plugin.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b9c9d698b6a0080efae4fdad41b34a666450886760109863a3004baf6b658d7"}},{"ruleId":"D1","level":"warning","message":{"text":"index.replaceQueryString (cyclomatic 20): index.replaceQueryString has cyclomatic complexity 20 (threshold 15). Of this number, 11 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":"lib/util/index.js"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e9ca6812785ff26d7a4c6be31db624db8995d735bb3e4588fa118dcdb1d6add"}},{"ruleId":"D1","level":"warning","message":{"text":"index.getHintList (cyclomatic 20): index.getHintList 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 one function literal inside it that branches (line 2550). 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":"lib/util/index.js"},"region":{"startLine":2543}}}],"partialFingerprints":{"codehealthFindingId/v1":"822e7d15800d3eeb77efa41efa7832d53950b16e96dcb1b9c4a719b0d9227878"}},{"ruleId":"D1","level":"warning","message":{"text":"index.setResCors (cyclomatic 20): index.setResCors 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":"lib/util/index.js"},"region":{"startLine":2924}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd521933708f821d11ac218b6b8e21b2528375afce4bf30a97ffb0fff1983480"}},{"ruleId":"D1","level":"warning","message":{"text":"storage.proto.moveTo (cyclomatic 20): storage.proto.moveTo 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":"lib/rules/storage.js"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"648b7e05480fd598c81db32f340fd3ad5ca297dae64a5fadec717769869d8a0c"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.resolveRuleValue (cyclomatic 20): rules.resolveRuleValue 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":"lib/rules/rules.js"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fd29032c61f943cbf51226f44f924701b6fd648c82c25869518decce35732a"}},{"ruleId":"D1","level":"warning","message":{"text":"network-modal.checkFilterType (cyclomatic 20): network-modal.checkFilterType 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":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe2252def95e724c2d386b510b7b2cc2654fed8ed54c57846596d11601f63c89"}},{"ruleId":"D1","level":"warning","message":{"text":"network-modal.proto.filter (cyclomatic 20): network-modal.proto.filter 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 2 function literals inside it that branch (lines 344, 329). 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":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"82afb4dbb45af1b3599484e4787fc72b4112fbecb2f7dc350e1d3cef9ef128df"}},{"ruleId":"D1","level":"warning","message":{"text":"rules-hint.getHints (cyclomatic 20): rules-hint.getHints has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 9 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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc4ba46ccec7ec2abef61366c128f648a755a159d90e3261b9ab86ac99f6f6e8"}},{"ruleId":"D1","level":"warning","message":{"text":"load-cert.default (cyclomatic 20): load-cert.default has cyclomatic complexity 20 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 10 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":"lib/https/load-cert.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fddff1f33e85f7a396bd8ee1d0f6ec77c1081c11c8a4ae2a143097059bbae0a"}},{"ruleId":"D1","level":"warning","message":{"text":"init.addErrorEvents (cyclomatic 20): init.addErrorEvents has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 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":"lib/init.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9297f1b91173843866b38e6ee6b4bd4ce2487e365508146db416070d0b895e"}},{"ruleId":"D1","level":"warning","message":{"text":"log.default (cyclomatic 20): log.default 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 3 function literals inside it that branch (lines 32, 52, 56). 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":"lib/inspectors/log.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f99bcdb40390837ac28c06e1b7b094e8268a84f17c435faf69fcebf2a160d36"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy.createSocket (cyclomatic 20): proxy.createSocket has cyclomatic complexity 20 (threshold 15). Of this number, 14 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":"lib/plugins/proxy.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"118c3670b09d519ba86dd2176faa20d6614e294d4a6aef9fae97802543399d46"}},{"ruleId":"D1","level":"warning","message":{"text":"componentDidMount (cyclomatic 20): componentDidMount 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 9 function items inside it that branch ((anonymous), (anonymous), (anonymous)::updateComposer, \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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"de81a9b071d1890c21bd09f69f98a41c73a60d6b98b0bedfc2e58654e1948d9a"}},{"ruleId":"D1","level":"warning","message":{"text":"sendRequest (cyclomatic 20): sendRequest has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 918, 912). 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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"1de3c20e1a3a7376c62f36414dd4659ac5c1736cc3c9371a4a006296400ff5e0"}},{"ruleId":"D1","level":"warning","message":{"text":"exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request::send (cyclomatic 20): exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request::send 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":"lib/inspectors/res.js"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25ac72a23adb02bea527ec869e0ac17260990029f2019f2db4f4717efde6329"}},{"ruleId":"D1","level":"warning","message":{"text":"componentDidMount (cyclomatic 20): componentDidMount 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 13 function items inside it that branch ((anonymous), (anonymous), (anonymous), \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":"biz/webui/htdocs/src/js/list.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7340de011d44364c9245d1a055d22e4f5854c7d6ac05c45212a558368b1bb9"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 20): (anonymous) has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs 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":"biz/webui/htdocs/src/js/list.js"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"c40bb4a3a3830d5850c7a1d33bee0e8b9fe86483c54944e59b45b8cbc11f9759"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 20): exports 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 3 function items inside it that branch ((anonymous), (anonymous)::_transform::(anonymous), (anonymous)::_transform). 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":"lib/inspectors/log.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"33c443ef3fb074bbaab371149b1e73a378076d9a6514958ce6e9c2c32123ac17"}},{"ruleId":"D1","level":"warning","message":{"text":"exports (cyclomatic 20): exports has cyclomatic complexity 20 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 10 belong to 3 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":"lib/https/load-cert.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f5c3370f6b946d236e70f0fc5934728374ccb2a58187220935b5c0a35c5883"}},{"ruleId":"D1","level":"warning","message":{"text":"common.readStream (cyclomatic 19): common.readStream has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 737, 769, 746, \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":"lib/util/common.js"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"234c97363471051a837037cad53e4bed41bd8409ff298e227373f1a3a98a3917"}},{"ruleId":"D1","level":"warning","message":{"text":"proxy.default (cyclomatic 19): proxy.default 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 one function literal inside it that branches (line 56). 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":"bin/proxy.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae855f2fb38491a85d3860bbfd0d9b6e2d6a24b3b87c62c4ce20da4c919f4c70"}},{"ruleId":"D1","level":"warning","message":{"text":"index.setResponseFor (cyclomatic 19): index.setResponseFor has cyclomatic complexity 19 (threshold 15). Of this number, 18 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":"lib/util/index.js"},"region":{"startLine":3215}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c3909ef575e0f4b39079859f9b6b3a0b3d54c448cbb75bd6cbb8a2a4efb8f7c"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.resolveRules (cyclomatic 19): rules.resolveRules has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 2242, 2255, 2263). 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":"lib/rules/rules.js"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc2732b07f27be6db3727fcab4965a8ce410916e6e1ede913058ff18a3f0443"}},{"ruleId":"D1","level":"warning","message":{"text":"index.pluginMgr.loadCert (cyclomatic 19): index.pluginMgr.loadCert has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 244, 229). 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":"lib/plugins/index.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2421cc107bf71f22b957571782477a32640f9575acf153a23e7c9a8228edb3f"}},{"ruleId":"D1","level":"warning","message":{"text":"index.pluginMgr.getResRules (cyclomatic 19): index.pluginMgr.getResRules has cyclomatic complexity 19 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 4 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":"lib/plugins/index.js"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"0adc3c206e60774da92ebcb5d5741248e9e8e852d414ef99564d010e93fc2395"}},{"ruleId":"D1","level":"warning","message":{"text":"index.app.use() (cyclomatic 19): index.app.use() 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":"biz/webui/lib/index.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe95856d15568a01bee871708f6ec36a0489cc5f8a8ed47131027a41dbe46249"}},{"ruleId":"D1","level":"warning","message":{"text":"list-modal.proto.moveTo (cyclomatic 19): list-modal.proto.moveTo 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":"biz/webui/htdocs/src/js/list-modal.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c62c4d8b7215b068df4030eff299eca82e183d476a55113675be94f296cc248"}},{"ruleId":"D1","level":"warning","message":{"text":"req-data.getValue (cyclomatic 19): req-data.getValue 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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"923d2951a3a7129d0dcf45e5d7521820f8778edf5383e3228a4402c988e0767d"}},{"ruleId":"D1","level":"warning","message":{"text":"load-plugin.setContext (cyclomatic 19): load-plugin.setContext 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. This is NOT this file\u0027s highest cyclomatic complexity: load-plugin.addParserApi (cyclomatic 22) 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":"lib/plugins/load-plugin.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee175edde9b3f223dd3fd2435dca98c225337ed6f8647092ec575f3ced988dd8"}},{"ruleId":"D1","level":"warning","message":{"text":"createValues (cyclomatic 19): createValues has cyclomatic complexity 19 (threshold 15). Of this number, 12 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":2858}}}],"partialFingerprints":{"codehealthFindingId/v1":"559e87b74e2f3f0f2bf0e7961d777439cc8fca6b4b392e3be9d0177735a6a6c9"}},{"ruleId":"D1","level":"warning","message":{"text":"showCookiesDialog (cyclomatic 19): showCookiesDialog 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 one function literal inside it that branches (line 1017). 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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dad5d1f3c150a230c52700db3289db1e255258f3d51f9c327bfbaecc3cec3a8"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 19): (anonymous) 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":"biz/webui/lib/index.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd5a2f8967997242201799664c513c9bdeedfc894e5fa3ec3b70aa708d564312"}},{"ruleId":"D1","level":"warning","message":{"text":"emitDataEvents::handleResBody (cyclomatic 19): emitDataEvents::handleResBody 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":"lib/inspectors/data.js"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7b994f37cc566b459a35b1cd2ce19925c44b40a8681c0bb46fb44ed5bae46b4"}},{"ruleId":"D1","level":"warning","message":{"text":"getBodyRules (cyclomatic 19): getBodyRules 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 2 function items inside it that branch ((anonymous), addRule). 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":"biz/webui/htdocs/src/js/request-rule.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"34df7ce26e652b0b761401fd973c884e24ab1d30be48249deac9eed70b761c23"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::token (cyclomatic 19): (anonymous)::token 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":"biz/webui/htdocs/src/js/rules-mode.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea637bd3aa8ea86304cd0525aa120a91b62eafc44d96396f2ce5b61b7ce66d27"}},{"ruleId":"D1","level":"warning","message":{"text":"common.readWhistleRc (cyclomatic 18): common.readWhistleRc 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 one function literal inside it that branches (line 1400). 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":"lib/util/common.js"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4bfc1fb2ef1ecb28f35924cc70d6986dd9e66f2c198337be4953a79e4377306"}},{"ruleId":"D1","level":"warning","message":{"text":"index.setReqCookies (cyclomatic 18): index.setReqCookies has cyclomatic complexity 18 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 7 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/index.js"},"region":{"startLine":3054}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbac4551485129b509c75db7bf4f6eaa7fe6d40d1f87c013897769e242a827f4"}},{"ruleId":"D1","level":"warning","message":{"text":"index.pluginMgr.on(\u0022updateRules\u0022) (cyclomatic 18): index.pluginMgr.on(\u0022updateRules\u0022) 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 5 function literals inside it that branch (lines 172, 198, 163, \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":"lib/plugins/index.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"8502a11bd831ea042566fc1fae84aae56dce73d9c5b463b0bc56fdd247e1efa4"}},{"ruleId":"D1","level":"warning","message":{"text":"util.parseUploadBody (cyclomatic 18): util.parseUploadBody 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"557716c8e703e661bfbd1611d601c83e0f778d4d599cb40f61e9af5081d8adaa"}},{"ruleId":"D1","level":"warning","message":{"text":"list-modal.proto.filter (cyclomatic 18): list-modal.proto.filter 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 one function literal inside it that branches (line 468). 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":"biz/webui/htdocs/src/js/list-modal.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"d530b262138601f089b802b92c39e16386320d4d63536836a06789cd1a42ca61"}},{"ruleId":"D1","level":"warning","message":{"text":"socket-mgr.handleFrame (cyclomatic 18): socket-mgr.handleFrame 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":"lib/socket-mgr.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f18a287366149896f793d65b7cbd8f4d4a2c51a42ce492de0f16f236a0d0149"}},{"ruleId":"D1","level":"warning","message":{"text":"req.toMultipart (cyclomatic 18): req.toMultipart 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":"lib/inspectors/req.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac21a81f0c296fab153ddcfadd4c18c795c2e50c54a6aea139daa9be98e082c2"}},{"ruleId":"D1","level":"warning","message":{"text":"composer.handleComposerHistory (cyclomatic 18): composer.handleComposerHistory 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":"lib/service/composer.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"032f51ba133db5631de4e41f35b192ef389a55abd381110064901df50b24f32c"}},{"ruleId":"D1","level":"warning","message":{"text":"startLoadData (cyclomatic 18): startLoadData 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 7 function items inside it that branch (update, atBottom, scrollToBottom, \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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":2205}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2fab272849a8af0c352b8753cde22cc47aabf4e2f1cfe8600f69626ac005ea"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 18): (anonymous) 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 5 function literals inside it that branch (lines 198, 172, 163, \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":"lib/plugins/index.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"51119980a3e0c7d711ff722b23adade58c970ae7f9aad309ccddd9f134e0de56"}},{"ruleId":"D1","level":"warning","message":{"text":"onContextMenu (cyclomatic 18): onContextMenu 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":"biz/webui/htdocs/src/js/plugins.js"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce1b8820b7cfbbc6c2ef51c3522a9fb8fce3955654f78604f3243e122c7b86e"}},{"ruleId":"D1","level":"warning","message":{"text":"componentDidMount::find (cyclomatic 18): componentDidMount::find 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":"biz/webui/htdocs/src/js/editor.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50daf451e235a02baf494a19e4f742f2d0b19dfe23f88961691eb458dfaa7e3"}},{"ruleId":"D1","level":"warning","message":{"text":"handlePatternChange (cyclomatic 18): handlePatternChange 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":"biz/webui/htdocs/src/js/create-rule.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a221761ec818225dfec34e585cb0e2a6add9fc02027b7304e3ee946c284d32a"}},{"ruleId":"D1","level":"warning","message":{"text":"common.getPeerPlugins (cyclomatic 17): common.getPeerPlugins 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 330, 335). 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":"lib/util/common.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b2fb295974af6ab62eb782d3e4e666000e756620f71edf3410fe49900854429"}},{"ruleId":"D1","level":"warning","message":{"text":"common.compareVersion (cyclomatic 17): common.compareVersion 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":"lib/util/common.js"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"88dc3fc1eb7ff323f0b2d4274389be6eeb443dcf6bfe996642daa65c7d37a420"}},{"ruleId":"D1","level":"warning","message":{"text":"util.showUsage (cyclomatic 17): util.showUsage 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":"bin/util.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bcbe49aa7c1166134402c352907006f8b73584b8301b862b6a2882c65caa53"}},{"ruleId":"D1","level":"warning","message":{"text":"whistle-transform.proto._transform (cyclomatic 17): whistle-transform.proto._transform has cyclomatic complexity 17 (threshold 15). Of this number, 11 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":"lib/util/whistle-transform.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fc41cfdb6bb50beb905f581a4432358b68facc503f30795ed5a93a1ff2a981"}},{"ruleId":"D1","level":"warning","message":{"text":"index.getMatcherJson (cyclomatic 17): index.getMatcherJson 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":"lib/util/index.js"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e78f041148e07b92cf1b04438362c4877aefd6c39be3fac427000ad5f327e589"}},{"ruleId":"D1","level":"warning","message":{"text":"index.ignoreRules (cyclomatic 17): index.ignoreRules 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 2 function literals inside it that branch (lines 2089, 2109). 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":"lib/util/index.js"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"5635c44827f07dd79539cb3ff977301a216ceb0a218160cbae50b0a5329e4d16"}},{"ruleId":"D1","level":"warning","message":{"text":"index.initHeaderRules (cyclomatic 17): index.initHeaderRules has cyclomatic complexity 17 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/index.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"670025963fa7b333057911e6cede281bb646adc4b7a43b8cc68406fa23c10998"}},{"ruleId":"D1","level":"warning","message":{"text":"index.notEqual (cyclomatic 17): index.notEqual 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":"lib/service/index.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"42dd882a37fa5ce90218157e57ad94b325a061322033324f0f73a1aa30445f50"}},{"ruleId":"D1","level":"warning","message":{"text":"util.addPluginMenus (cyclomatic 17): util.addPluginMenus 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2394}}}],"partialFingerprints":{"codehealthFindingId/v1":"e510aa7adbed407f4bdf167892225c985f1cef441cf50bfd2d2636f8417c6c8a"}},{"ruleId":"D1","level":"warning","message":{"text":"util.parseImportData (cyclomatic 17): util.parseImportData 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 3 function literals inside it that branch (lines 2464, 2496, 2506). 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2461}}}],"partialFingerprints":{"codehealthFindingId/v1":"7db1427fa1ee6c8a385d42b073d5c67724244ef9408826467dd6e375f1a91d95"}},{"ruleId":"D1","level":"warning","message":{"text":"util.filterJson (cyclomatic 17): util.filterJson has cyclomatic complexity 17 (threshold 15). Of this number, 12 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":3181}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc690d24b06c5a6c9a4672954e399c2ebde3e2b382497f8a9f99253beae3f4aa"}},{"ruleId":"D1","level":"warning","message":{"text":"protocols.getHelpUrl (cyclomatic 17): protocols.getHelpUrl 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":"biz/webui/htdocs/src/js/protocols.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"58793121cf29cf972ea40d796edfd365123ccc423e18465071f7eceed583d9d2"}},{"ruleId":"D1","level":"warning","message":{"text":"req-data.getStatusClass (cyclomatic 17): req-data.getStatusClass 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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5933da00c7e79c2791d56bb7504464964c016217dd84378da7f26651b6f9646"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 17): render has cyclomatic complexity 17 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 8 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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":1551}}}],"partialFingerprints":{"codehealthFindingId/v1":"cda15b1630e30d5f91fa63762e0ac8862244b08130b0f54047f056a4bb0406fb"}},{"ruleId":"D1","level":"warning","message":{"text":"init::checkClientIp (cyclomatic 17): init::checkClientIp 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":"lib/util/data-server.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8c05e88e584b079020d44a40c5da5acbf79ff115eec613ae107d24881cf37e"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 17): (anonymous) 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, 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":"lib/rules/util.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1630fdc305d3e7c70ab068987d91cd7708b6ff0b72f2407d2f22e50c707468dd"}},{"ruleId":"D1","level":"warning","message":{"text":"onFilterKeyDown (cyclomatic 17): onFilterKeyDown 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":"biz/webui/htdocs/src/js/filter-input.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"25b68fe6d62bc9f0b8c0864aa0d09645b5150e4adaa2f8a33e6bfe108146e295"}},{"ruleId":"D1","level":"warning","message":{"text":"replace-pattern-transform.replacePattern (cyclomatic 16): replace-pattern-transform.replacePattern 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 one function literal inside it that branches (line 67). 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":"lib/util/replace-pattern-transform.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"950ffd9af89f2c41111f10eff6eee837b6087fb762983e3b3849f63211f16e27"}},{"ruleId":"D1","level":"warning","message":{"text":"index.resolveIgnore (cyclomatic 16): index.resolveIgnore 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 2 function literals inside it that branch (lines 1910, 1947). 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":"lib/util/index.js"},"region":{"startLine":1905}}}],"partialFingerprints":{"codehealthFindingId/v1":"5378721350c6edf72f977c689afd764d3e2672f1497e1ca2b03a095bff3089f4"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.resolveUrlVar (cyclomatic 16): rules.resolveUrlVar 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":"lib/rules/rules.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d40bee7328ee1fabaf25091a8c5837e36be446e9e69c52a6edee11ff4db1eba"}},{"ruleId":"D1","level":"warning","message":{"text":"rules.parseText (cyclomatic 16): rules.parseText 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 2 function literals inside it that branch (lines 1742, 1778). 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":"lib/rules/rules.js"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"3929859a8d221aa354da919642be08e3def1f90139b18d0e0d7a0d3441a3f4bd"}},{"ruleId":"D1","level":"warning","message":{"text":"h2.requestH2 (cyclomatic 16): h2.requestH2 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 4 function literals inside it that branch (lines 294, 319, 281, \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":"lib/https/h2.js"},"region":{"startLine":269}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b01d5db569999b89445afb8959d38900cbf48403613745abd2a642c6d4d23c5"}},{"ruleId":"D1","level":"warning","message":{"text":"data-center.checkFilter (cyclomatic 16): data-center.checkFilter 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"565ce73e7eac11fa99ab753f6933fdc4ce889c1ce0bd9355dc0802be8e08bdef"}},{"ruleId":"D1","level":"warning","message":{"text":"frame-modal.proto.filter (cyclomatic 16): frame-modal.proto.filter 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 2 function literals inside it that branch (lines 65, 94). 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":"biz/webui/htdocs/src/js/frame-modal.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"e228b3e820c137b17259be0ef5a5746e2fa63a958616cd0443a91e86880646ca"}},{"ruleId":"D1","level":"warning","message":{"text":"index.handleGlobalException (cyclomatic 16): index.handleGlobalException 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":"lib/index.js"},"region":{"startLine":243}}}],"partialFingerprints":{"codehealthFindingId/v1":"8294e55807d269b7692703117eefeb397b46b76195823c4136b1e3cebd8bec1e"}},{"ruleId":"D1","level":"warning","message":{"text":"formatHistory (cyclomatic 16): formatHistory has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 4 of the 16 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 434, 474, 476). 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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5ff5a29f762792ef8ee32f0428ec8cda3017d70561df101cbd2d1b7e254f871"}},{"ruleId":"D1","level":"warning","message":{"text":"resolveWebsocket::pipeData (cyclomatic 16): resolveWebsocket::pipeData 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":"lib/https/index.js"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bd2140e8e794d4d9c12ebf61c1f4d7a1534a4c09a8bdd41e862a8fb4e917bf"}},{"ruleId":"D1","level":"warning","message":{"text":"componentDidMount (cyclomatic 16): componentDidMount has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 12 function literals inside it that branch (lines 208, 163, 203, \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":"biz/webui/htdocs/src/js/plugins.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29d7013638f5a4867c4718217fa43d8e63dedb3ba177439c8ae168493b9ece8"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 16): render has cyclomatic complexity 16 (threshold 15). 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: 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":"biz/webui/htdocs/src/js/plugins.js"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb732dcbf79a12ec21c94837cdad52a333347e7fc2b6f2e126fd06ae341edb0b"}},{"ruleId":"D1","level":"warning","message":{"text":"tunnelProxy::(anonymous)::(anonymous)::(anonymous)::emitError (cyclomatic 16): tunnelProxy::(anonymous)::(anonymous)::(anonymous)::emitError 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":"lib/tunnel.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e74807a52c283a076df1be8a1be21cd464ca1e41239187eb146a30707bcf262"}},{"ruleId":"D1","level":"warning","message":{"text":"handleParams::_transform (cyclomatic 16): handleParams::_transform 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":"lib/inspectors/req.js"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21441dc9d9015df69b4082d78a0564b539dca4a758213175633138a6e6e6bce"}},{"ruleId":"D1","level":"warning","message":{"text":"onNetworkSettingsChange (cyclomatic 16): onNetworkSettingsChange 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":"biz/webui/htdocs/src/js/network-settings.js"},"region":{"startLine":86}}}],"partialFingerprints":{"codehealthFindingId/v1":"130e53b054377591efa34738a3794049ba57dc00a44430cd604d9ce225668346"}},{"ruleId":"D1","level":"warning","message":{"text":"handleRequest::getBody (cyclomatic 16): handleRequest::getBody 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":"lib/service/composer.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7bfdadb2f2125e0c784621092b74f8a15c7e0eb5a9916c8b71b434e1264066"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 16): render has cyclomatic complexity 16 (threshold 15). Of this number, 12 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":"biz/webui/htdocs/src/js/props-editor.js"},"region":{"startLine":303}}}],"partialFingerprints":{"codehealthFindingId/v1":"aadcfcb3fa8c447360449ccf29954fb85d9ac7660a134df1e07ade7df920f0f8"}},{"ruleId":"D1","level":"warning","message":{"text":"render (cyclomatic 16): render 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, 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":"biz/webui/htdocs/src/js/dropdown.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"10017cf64556a1a7245916107b6b0c800952bda51ef03f22a5e1e8652c362b9e"}},{"ruleId":"D2","level":"warning","message":{"text":"componentDidMount (cognitive 373): componentDidMount has cognitive complexity 373 (threshold 15). Drivers by points: if/else 166 (244 pts), boolean chains 76, ternaries 18 (47 pts), error handling 3 (4 pts), loops 1 (2 pts) (nesting depth added 109). Most of this is not in the body itself: 5 of the 373 points are its own statements and the rest belongs to 113 function items inside it that branch ((anonymous), (anonymous), (anonymous), \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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":967}}}],"partialFingerprints":{"codehealthFindingId/v1":"650c32b0ccdb9f561f3e3871fa39bdb85fee8a3664d9eddbe399d8f9fa86dee6"}},{"ruleId":"D2","level":"warning","message":{"text":"load-plugin.default (cognitive 276): load-plugin.default has cognitive complexity 276 (threshold 15). Drivers by points: if/else 105 (160 pts), boolean chains 96, ternaries 4 (10 pts), error handling 4 (7 pts), match/switch 3 (nesting depth added 64). Most of this is not in the body itself: 10 of the 276 points are its own statements and the rest belongs to 62 function literals inside it that branch (lines 2012, 1254, 1721, \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":"lib/plugins/load-plugin.js"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c629c819dc932ded1803ebffc74f01a8b7df1bd7a9823d0f5450ecb7de232a2"}},{"ruleId":"D2","level":"warning","message":{"text":"extend (cognitive 268): extend has cognitive complexity 268 (threshold 15). Drivers by points: if/else 145 (181 pts), boolean chains 65, ternaries 9 (14 pts), error handling 2 (5 pts), match/switch 1 (3 pts) (nesting depth added 46). Of this number, 162 points are the body\u0027s own statements and 106 belong to 15 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":"lib/config.js"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"b11343c2a0718fc631dcbca2f9b2d05553000822c3faa4a23c20fa6cfd5a1659"}},{"ruleId":"D2","level":"warning","message":{"text":"tunnel.tunnelProxy (cognitive 253): tunnel.tunnelProxy has cognitive complexity 253 (threshold 15). Drivers by points: if/else 116 (152 pts), boolean chains 84, ternaries 9 (13 pts), error handling 2 (4 pts) (nesting depth added 42). Most of this is not in the body itself: 0 of the 253 points are its own statements and the rest belongs to 30 function literals inside it that branch (lines 248, 754, 343, \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":"lib/tunnel.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"237cd70f377393cab2575ec8e69a60a65dc745c38e9d1f712d2e2083495210d8"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 250): (anonymous) has cognitive complexity 250 (threshold 15). Drivers by points: if/else 63 (187 pts), boolean chains 43, ternaries 6 (18 pts), loops 2 (nesting depth added 136). Of this number, 198 points are the body\u0027s own statements and 52 belong to 9 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a994ba68a0f7b44f0e3afbf965a0236abdfc537ab39c0601f4e99f23a42a951"}},{"ruleId":"D2","level":"warning","message":{"text":"index.resolveWebsocket (cognitive 242): index.resolveWebsocket has cognitive complexity 242 (threshold 15). Drivers by points: if/else 112 (174 pts), boolean chains 56, ternaries 6 (8 pts), error handling 2 (4 pts) (nesting depth added 66). Of this number, 38 points are the body\u0027s own statements and 204 belong to 24 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":"lib/https/index.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea5468b20d90e3f8de4fe3192019eb4908aa6f93771937723d4a1cd6edebed9"}},{"ruleId":"D2","level":"warning","message":{"text":"rules-hint.CodeMirror.registerHelper(\u0022hint\u0022,\u0022rulesHint\u0022) (cognitive 198): rules-hint.CodeMirror.registerHelper(\u0022hint\u0022,\u0022rulesHint\u0022) has cognitive complexity 198 (threshold 15). Drivers by points: if/else 54 (148 pts), boolean chains 43, ternaries 2 (5 pts), loops 2 (nesting depth added 97). Of this number, 187 points are the body\u0027s own statements and 11 belong to 6 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"233483daf9de26c3a16d48d33b7afe39b36b5af9bb60902550f865351efb1546"}},{"ruleId":"D2","level":"warning","message":{"text":"data-server.init (cognitive 166): data-server.init has cognitive complexity 166 (threshold 15). Drivers by points: if/else 62 (82 pts), boolean chains 68, ternaries 4 (9 pts), loops 5 (7 pts) (nesting depth added 27). Of this number, 156 points are the body\u0027s own statements and 10 belong to 11 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":"lib/util/data-server.js"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"877a2a7563cf7b54bf366b018e6afc08644a8dada944ab9576592f8937cfaf9b"}},{"ruleId":"D2","level":"warning","message":{"text":"req.handleParams (cognitive 157): req.handleParams has cognitive complexity 157 (threshold 15). Drivers by points: if/else 34 (115 pts), boolean chains 30, ternaries 4 (9 pts), loops 1 (3 pts) (nesting depth added 88). Of this number, 31 points are the body\u0027s own statements and 126 belong to 9 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/inspectors/req.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6e68a4d824366b54b96fdf1765471ce2f25ca4cfd20ad4c706609af5bbe1c99"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveRuleList (cognitive 147): resolveRuleList has cognitive complexity 147 (threshold 15). Drivers by points: if/else 30 (87 pts), boolean chains 30, ternaries 8 (20 pts), loops 3 (10 pts) (nesting depth added 76). Of this number, 134 points are the body\u0027s own statements and 13 belong to 5 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/rules.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9b2a7614870cd13b057351ad599a5963350587aaaabd747569d1ddeeceae30"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveMatchFilter (cognitive 137): resolveMatchFilter has cognitive complexity 137 (threshold 15). Drivers by points: if/else 41 (77 pts), ternaries 10 (33 pts), boolean chains 23, match/switch 1 (4 pts) (nesting depth added 62). Most of this is not in the body itself: 0 of the 137 points are its own statements and the rest belongs to one function literal inside it that branches (line 1547). 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":"lib/rules/rules.js"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bec248d6e5a9f98fb82b8dae0d7b9714d6240f03995f76b2991100e5d659485"}},{"ruleId":"D2","level":"warning","message":{"text":"data-center.startLoadData (cognitive 133): data-center.startLoadData has cognitive complexity 133 (threshold 15). Drivers by points: if/else 64 (91 pts), boolean chains 37, ternaries 5 (nesting depth added 27). Of this number, 24 points are the body\u0027s own statements and 109 belong to 8 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a84db946cade36a9e918519dd33b6a8999d7276e8af1e9a4071a76b587e3797"}},{"ruleId":"D2","level":"warning","message":{"text":"res.default (cognitive 122): res.default has cognitive complexity 122 (threshold 15). Drivers by points: boolean chains 120, if/else 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":"lib/inspectors/res.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f29d09ab5582236e9c025b195eea25e5b3f0c8087708d93a3664d87674ec1f"}},{"ruleId":"D2","level":"warning","message":{"text":"data.emitDataEvents (cognitive 120): data.emitDataEvents has cognitive complexity 120 (threshold 15). Drivers by points: if/else 51 (60 pts), boolean chains 51, ternaries 6 (7 pts), error handling 1, loops 1 (nesting depth added 10). Of this number, 52 points are the body\u0027s own statements and 68 belong to 20 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":"lib/inspectors/data.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"131a349fecc3549826c7fb872994f044e387738fd88b8bda3e8f9c4089ded494"}},{"ruleId":"D2","level":"warning","message":{"text":"rules.matchFilter (cognitive 96): rules.matchFilter has cognitive complexity 96 (threshold 15). Drivers by points: if/else 41 (55 pts), ternaries 9 (26 pts), boolean chains 11, loops 1 (4 pts) (nesting depth added 34). Of this number, 81 points are the body\u0027s own statements and 15 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":"lib/rules/rules.js"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"74375a982d514bd3d8429a6ce21749b95e892387eea99ccfcb9b480d63811332"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 93): exports has cognitive complexity 93 (threshold 15). Drivers by points: if/else 35 (70 pts), ternaries 4 (13 pts), boolean chains 10 (nesting depth added 44). 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":"biz/index.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaee7699d0714e1f3546f6f47f8461b2f5a81af841ca4790aeb42a680f301d6d"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 89): render has cognitive complexity 89 (threshold 15). Drivers by points: ternaries 36 (37 pts), boolean chains 28, if/else 13 (20 pts), loops 2 (4 pts) (nesting depth added 10). Of this number, 79 points are the body\u0027s own statements and 10 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":3942}}}],"partialFingerprints":{"codehealthFindingId/v1":"af666f76ffd2201ddd9ed983eacb7643e3c708483aac9815618e5cb15efb70f5"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 86): render has cognitive complexity 86 (threshold 15). Drivers by points: if/else 22 (41 pts), boolean chains 19, ternaries 14 (19 pts), match/switch 1 (4 pts), loops 1 (3 pts) (nesting depth added 29). Of this number, 74 points are the body\u0027s own statements and 12 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":"biz/webui/htdocs/src/js/res-detail.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"42661ad2264b54532a4e0fc52969ade3fab60b6a1f67c818bde5ab044b274545"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 83): exports has cognitive complexity 83 (threshold 15). Drivers by points: if/else 27 (43 pts), boolean chains 28, ternaries 4 (8 pts), error handling 1 (4 pts) (nesting depth added 23). Most of this is not in the body itself: 3 of the 83 points are its own statements and the rest belongs to 11 function items inside it that branch ((anonymous), (anonymous)::handleConnect, (anonymous)::handleRequest, \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":"lib/https/index.js"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"593002877f9fa4e002bf7ccc6f8d10cad0975cb9cf09c414b82c82991e699bf8"}},{"ruleId":"D2","level":"warning","message":{"text":"extract-saz.default (cognitive 82): extract-saz.default has cognitive complexity 82 (threshold 15). Drivers by points: if/else 35 (79 pts), boolean chains 3 (nesting depth added 44). Most of this is not in the body itself: 0 of the 82 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 196, 155, 119, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/service/extract-saz.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bd8229e64b6259e07837a6da9fe86aef9589586577091c74dfd83480eeac85d"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 82): exports has cognitive complexity 82 (threshold 15). Drivers by points: if/else 35 (79 pts), boolean chains 3 (nesting depth added 44). Most of this is not in the body itself: 0 of the 82 points are its own statements and the rest belongs to 12 function items inside it that branch ((anonymous)::(anonymous), (anonymous), execCallback::(anonymous), \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":"lib/service/extract-saz.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e4b5048420002c2720691abdd689d789aa0798345e3b669ca9424f17e945e4"}},{"ruleId":"D2","level":"warning","message":{"text":"index.default (cognitive 80): index.default has cognitive complexity 80 (threshold 15). Drivers by points: if/else 35 (70 pts), boolean chains 10 (nesting depth added 35). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/index.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaa9b0bfb9fd1ae98280361a0e853e958632d476a30fb409eed37d40acfccae"}},{"ruleId":"D2","level":"warning","message":{"text":"index.getProxy (cognitive 79): index.getProxy has cognitive complexity 79 (threshold 15). Drivers by points: if/else 34 (42 pts), boolean chains 37 (nesting depth added 8). Of this number, 46 points are the body\u0027s own statements and 33 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"lib/rules/index.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb74b0e0b824e7a5f243c2aad23502f8891f1130340fda6a5cf0a13e82d31edf"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 79): render has cognitive complexity 79 (threshold 15). Drivers by points: if/else 21 (56 pts), boolean chains 11, ternaries 2 (9 pts), match/switch 1 (3 pts) (nesting depth added 44). Most of this is not in the body itself: 10 of the 79 points are its own statements and the rest belongs to one function literal inside it that branches (line 146). 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":"biz/webui/htdocs/src/js/overview.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd811e144726547ada21a7a0839ce9177a4a1ccfaab8dd8be37bb481f1f2bc5"}},{"ruleId":"D2","level":"warning","message":{"text":"index.getRulesFromPlugins (cognitive 78): index.getRulesFromPlugins has cognitive complexity 78 (threshold 15). Drivers by points: if/else 29 (45 pts), ternaries 6 (17 pts), boolean chains 16 (nesting depth added 27). Most of this is not in the body itself: 0 of the 78 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 982, 920, 959, \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":"lib/plugins/index.js"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee15dbab21037f2091ad566c8c5401d9264ed7ac82138bea8c8c591841da3090"}},{"ruleId":"D2","level":"warning","message":{"text":"composer.handleRequest (cognitive 78): composer.handleRequest has cognitive complexity 78 (threshold 15). Drivers by points: if/else 33 (49 pts), boolean chains 22, ternaries 2 (4 pts), error handling 1 (3 pts) (nesting depth added 20). Of this number, 39 points are the body\u0027s own statements and 39 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":"lib/service/composer.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a0e2238af764ac5028289fa555a60ddff411f3bc7a1a028c3a74f97cb631f6"}},{"ruleId":"D2","level":"warning","message":{"text":"index.default (cognitive 77): index.default has cognitive complexity 77 (threshold 15). Drivers by points: if/else 27 (43 pts), boolean chains 27, error handling 1 (4 pts), ternaries 2 (3 pts) (nesting depth added 20). Most of this is not in the body itself: 3 of the 77 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 1176, 1226, 1266, \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":"lib/https/index.js"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"2678e66b0a072e6106b608a08d15970bf1f26bb02af0f9623e156aafca68ef9f"}},{"ruleId":"D2","level":"warning","message":{"text":"parseRule (cognitive 75): parseRule has cognitive complexity 75 (threshold 15). Drivers by points: if/else 35 (54 pts), ternaries 6 (9 pts), boolean chains 8, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/rules.js"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c51c274afa5d7f901939fc231366a43ff9a14f4f7f591b156e11bb07fc310b"}},{"ruleId":"D2","level":"warning","message":{"text":"readRuleList (cognitive 69): readRuleList has cognitive complexity 69 (threshold 15). Drivers by points: if/else 26 (44 pts), boolean chains 15, ternaries 4 (10 pts) (nesting depth added 24). Of this number, 16 points are the body\u0027s own statements and 53 belong to 5 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":"lib/util/index.js"},"region":{"startLine":1281}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bce1d6e557f283cc258e0a39494882f1c67b54351569f92b7539dc1ed57ed36"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 68): exports has cognitive complexity 68 (threshold 15). Drivers by points: if/else 22 (39 pts), ternaries 8 (18 pts), boolean chains 11 (nesting depth added 27). Of this number, 23 points are the body\u0027s own statements and 45 belong to 5 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":"lib/handlers/file-proxy.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e8f10e3452b5472c886f73856297d4d0822a381ccb1f86caa819bf6a9edf00c"}},{"ruleId":"D2","level":"warning","message":{"text":"sessionsHandler (cognitive 67): sessionsHandler has cognitive complexity 67 (threshold 15). Drivers by points: if/else 28 (36 pts), boolean chains 13, ternaries 11 (13 pts), loops 1 (3 pts), error handling 2 (nesting depth added 12). Most of this is not in the body itself: 0 of the 67 points are its own statements and the rest belongs to 33 function items inside it that branch ((anonymous), (anonymous), (anonymous), \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":"lib/service/service.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c02097bf246892871f55af0065e4c4b016d12bc8418ae4b174c5ff544f2d29c"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 67): render has cognitive complexity 67 (threshold 15). Drivers by points: if/else 21 (46 pts), boolean chains 12, ternaries 3 (9 pts) (nesting depth added 31). Of this number, 17 points are the body\u0027s own statements and 50 belong to 5 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/matched-rule.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd304b6a7511a76eb9b7a8c2bceac52ea1c0397a926573d3887bd89c01213162"}},{"ruleId":"D2","level":"warning","message":{"text":"rules-mode.CodeMirror.defineMode(\u0022rules\u0022) (cognitive 66): rules-mode.CodeMirror.defineMode(\u0022rules\u0022) has cognitive complexity 66 (threshold 15). Drivers by points: if/else 45 (50 pts), boolean chains 14, ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 15 of the 66 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 191, 174). 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":"biz/webui/htdocs/src/js/rules-mode.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"b792ae6e3b78a5252c362e086d416620622fcbc131e99e22d4af660e7923d827"}},{"ruleId":"D2","level":"warning","message":{"text":"updateServerInfo (cognitive 66): updateServerInfo has cognitive complexity 66 (threshold 15). Drivers by points: if/else 27 (53 pts), boolean chains 9, ternaries 2 (4 pts) (nesting depth added 28). Of this number, 17 points are the body\u0027s own statements and 49 belong to 9 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":"biz/webui/htdocs/src/js/online.js"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"f807a49f5a995598fa05d6929d5ea0cb3072183bdc77bb73ac420d2d6dcd970c"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::patchJSON::str (cognitive 65): (anonymous)::patchJSON::str has cognitive complexity 65 (threshold 15). Drivers by points: if/else 10 (27 pts), ternaries 7 (24 pts), loops 3 (9 pts), boolean chains 4, match/switch 1 (nesting depth added 40). 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/js/log.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1612cca24056c3041db5ef1e80d16edc1badcfd67d64b3f7744ccbe060a0c80"}},{"ruleId":"D2","level":"warning","message":{"text":"onContextMenu (cognitive 64): onContextMenu has cognitive complexity 64 (threshold 15). Drivers by points: boolean chains 32, if/else 18 (23 pts), ternaries 7, loops 1, match/switch 1 (nesting depth added 5). Of this number, 50 points are the body\u0027s own statements and 14 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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"c34987bea4bbb47fbb62bcaf043fe5fc0c3c3c405a81b2815bd4229797ceb127"}},{"ruleId":"D2","level":"warning","message":{"text":"setReqData (cognitive 62): setReqData has cognitive complexity 62 (threshold 15). Drivers by points: if/else 19 (28 pts), ternaries 11 (18 pts), boolean chains 16 (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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"f398e5dfd258615927e836342afe831f2f25226ac23621775fe3111962daa265"}},{"ruleId":"D2","level":"warning","message":{"text":"componentDidUpdate (cognitive 61): componentDidUpdate has cognitive complexity 61 (threshold 15). Drivers by points: if/else 21 (45 pts), loops 4 (8 pts), boolean chains 7, ternaries 1 (nesting depth added 28). Of this number, 49 points are the body\u0027s own statements and 12 belong to 3 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e5f0a0ba2d342671ba4e95a50b18a8965ba225aaaf12605c14f0a4a2bb6ec0a"}},{"ruleId":"D2","level":"warning","message":{"text":"file-proxy.default (cognitive 56): file-proxy.default has cognitive complexity 56 (threshold 15). Drivers by points: if/else 21 (35 pts), boolean chains 12, ternaries 4 (9 pts) (nesting depth added 19). Of this number, 30 points are the body\u0027s own statements and 26 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":"lib/handlers/file-proxy.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"48034d5868c5bb3923447c6a8a796268e12ae7007b6dffbb7c2db88056f91120"}},{"ruleId":"D2","level":"warning","message":{"text":"getHeaderRules (cognitive 55): getHeaderRules has cognitive complexity 55 (threshold 15). Drivers by points: if/else 18 (44 pts), boolean chains 8, ternaries 2, match/switch 1 (nesting depth added 26). Most of this is not in the body itself: 6 of the 55 points are its own statements and the rest belongs to one function literal inside it that branches (line 92). 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":"biz/webui/htdocs/src/js/rule-mixin.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e3fb1f2f7a32a6fd1451a3aee8e1649bf9793acd4dba74cae95269e95ee3dc4"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 55): exports has cognitive complexity 55 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 8, error handling 2 (6 pts), loops 1 (4 pts) (nesting depth added 25). Of this number, 39 points are the body\u0027s own statements and 16 belong to 9 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":"index.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2f290764bd62a030419fbfdb59259729220526249cc488437b80d3aec85090"}},{"ruleId":"D2","level":"warning","message":{"text":"util.addRules (cognitive 54): util.addRules has cognitive complexity 54 (threshold 15). Drivers by points: if/else 18 (45 pts), boolean chains 7, ternaries 1 (2 pts) (nesting depth added 28). Most of this is not in the body itself: 8 of the 54 points are its own statements and the rest belongs to one function literal inside it that branches (line 618). 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":"lib/rules/util.js"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac03bb223cdaa6c7cfc069e819202decb1f4403f1f904c31d71beda0f79abec1"}},{"ruleId":"D2","level":"warning","message":{"text":"exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request::retry (cognitive 54): exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request::retry has cognitive complexity 54 (threshold 15). Drivers by points: if/else 20 (35 pts), boolean chains 19 (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":"lib/inspectors/res.js"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4d2d40d9ac449a07f5e4fedf8cca0220656d3c81932f7cf63b5dbe074b1fd3"}},{"ruleId":"D2","level":"warning","message":{"text":"handleParams::getChunk (cognitive 54): handleParams::getChunk has cognitive complexity 54 (threshold 15). Drivers by points: if/else 16 (45 pts), boolean chains 8, loops 1 (nesting depth added 29). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/inspectors/req.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4515d450ea278f3685ad6697c3c528dc14ad53eed1079e088a3953089e0db5"}},{"ruleId":"D2","level":"warning","message":{"text":"is-utf8.isUtf8 (cognitive 52): is-utf8.isUtf8 has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (37 pts), boolean chains 14, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/is-utf8.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4e8e7c78db20399fb73dead8b874f3247dd832d8401329ca7bbaaff9f08f8d3"}},{"ruleId":"D2","level":"warning","message":{"text":"is-utf8.isUtf8 (cognitive 52): is-utf8.isUtf8 has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (37 pts), boolean chains 14, loops 1 (nesting depth added 22). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/is-utf8.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"97ccaf55cb26df9936ad7618fa9f93f559350c7981146ff5f073997d7da317b6"}},{"ruleId":"D2","level":"warning","message":{"text":"authReq (cognitive 52): authReq has cognitive complexity 52 (threshold 15). Drivers by points: if/else 15 (26 pts), ternaries 3 (13 pts), boolean chains 8, error handling 1 (5 pts) (nesting depth added 25). Most of this is not in the body itself: 1 of the 52 points is its own statement and the rest belongs to 4 function items inside it that branch ((anonymous)::(anonymous), (anonymous)::(anonymous)::(anonymous), execCallback, \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":"lib/plugins/index.js"},"region":{"startLine":816}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7b51d463e10f1ab857a7d662b57673e89ebb7674fa7eff8809dd825dbb7093"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 52): exports has cognitive complexity 52 (threshold 15). Drivers by points: if/else 13 (42 pts), boolean chains 5, ternaries 1 (5 pts) (nesting depth added 33). Of this number, 23 points are the body\u0027s own statements and 29 belong to 3 function items inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/https/load-cert.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f95ce8e2a8e043ba3871725c92109a6a9fb9b41711f33c4d09f0a554256f02a4"}},{"ruleId":"D2","level":"warning","message":{"text":"index.default (cognitive 50): index.default has cognitive complexity 50 (threshold 15). Drivers by points: if/else 19 (37 pts), boolean chains 8, loops 1 (4 pts), error handling 1 (nesting depth added 21). Of this number, 34 points are the body\u0027s own statements and 16 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":"index.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"95fcb9a1bb9185b6c504ab96e31792caf5a813844931145b0e1606f8aeecd8e3"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 49): render has cognitive complexity 49 (threshold 15). Drivers by points: ternaries 13 (20 pts), if/else 12 (18 pts), boolean chains 11 (nesting depth added 13). Most of this is not in the body itself: 7 of the 49 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 389, 446). 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":"biz/webui/htdocs/src/js/frame-list.js"},"region":{"startLine":320}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b49ba816708661a2c16bfe621ded977bd8d5db340a4051dd608cc86dd0fde5"}},{"ruleId":"D2","level":"warning","message":{"text":"log.patchJSON (cognitive 48): log.patchJSON has cognitive complexity 48 (threshold 15). Drivers by points: if/else 12 (29 pts), loops 3 (9 pts), boolean chains 5, ternaries 3 (4 pts), match/switch 1 (nesting depth added 24). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/js/log.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ad6b692dd02b64ebf14f9fbb1c177848c134f0699cf807eb558954cdae0196"}},{"ruleId":"D2","level":"warning","message":{"text":"init::getData (cognitive 48): init::getData has cognitive complexity 48 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 16, ternaries 4 (7 pts), loops 1 (3 pts) (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/data-server.js"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd85546b98aa4d234a8b2e81feafa74ef8b61c24116f9c71c8825f8e218faa62"}},{"ruleId":"D2","level":"warning","message":{"text":"util.parseUploadBody (cognitive 47): util.parseUploadBody has cognitive complexity 47 (threshold 15). Drivers by points: if/else 11 (29 pts), error handling 2 (10 pts), boolean chains 4, ternaries 2 (3 pts), loops 1 (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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ce3202ddf22915587f7ba05f61e81fbf3939414631c83339f1277e08d8dc629"}},{"ruleId":"D2","level":"warning","message":{"text":"load-cert.default (cognitive 47): load-cert.default has cognitive complexity 47 (threshold 15). Drivers by points: if/else 13 (42 pts), boolean chains 5 (nesting depth added 29). Of this number, 18 points are the body\u0027s own statements and 29 belong to 2 function literals inside it that branch. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/https/load-cert.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97285df29d38b8e2e5e950bca7510feb47c64d79830e10fa28f7b7c2831a2ba"}},{"ruleId":"D2","level":"warning","message":{"text":"exports::normalizeArgs (cognitive 47): exports::normalizeArgs has cognitive complexity 47 (threshold 15). Drivers by points: if/else 16 (27 pts), boolean chains 10, ternaries 4 (10 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":"lib/plugins/load-plugin.js"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce467b6ae41a2eff78beb648f20369452920b602ad9b89dd897efee87b5945bb"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 45): render has cognitive complexity 45 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 13, ternaries 12 (13 pts) (nesting depth added 7). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/req-detail.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3e3148e31c191fee2edd2396972664ca99944436e3d67234fe697be8f73a92a"}},{"ruleId":"D2","level":"warning","message":{"text":"req.default (cognitive 44): req.default has cognitive complexity 44 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 10, ternaries 3 (4 pts), error handling 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 1 of the 44 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 474, 547, 590). 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":"lib/inspectors/req.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"6473108efedb9343cfbea7ee7da03901c40240b472b92aae851d83e4eae25f55"}},{"ruleId":"D2","level":"warning","message":{"text":"getClientCert (cognitive 44): getClientCert has cognitive complexity 44 (threshold 15). Drivers by points: if/else 22 (34 pts), boolean chains 7, ternaries 1 (2 pts), error handling 1 (nesting depth added 13). Most of this is not in the body itself: 3 of the 44 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 749, 792, 826, \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":"lib/rules/index.js"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fe3d12b8beb87f43ca648502a1449c52a1f7cefa23e252c6eb3180e70ae9c42"}},{"ruleId":"D2","level":"warning","message":{"text":"filter (cognitive 44): filter has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 6 (19 pts), if/else 9 (18 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 23). Most of this is not in the body itself: 3 of the 44 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 344, 329). 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":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa4e1bb247c61a9498e0f6121c1129060de94005f0da7820ab3c98fa14bca6da"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 44): exports has cognitive complexity 44 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 10, ternaries 3 (4 pts), error handling 1 (2 pts) (nesting depth added 8). Most of this is not in the body itself: 1 of the 44 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 474, 547, 590). 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":"lib/inspectors/req.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0079606fa35def0953d689b6bc77d33ed47a41c4f7dc8dceeb072efc99e7ea7"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 44): render has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (20 pts), ternaries 14 (17 pts), boolean chains 7 (nesting depth added 6). Most of this is not in the body itself: 2 of the 44 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 40, 21, 15). 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":"biz/webui/htdocs/src/js/timeline.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"58fc47cf39cc9fddca3de1b2c1a693380641be89c97cd8b1be1fc10b06befb87"}},{"ruleId":"D2","level":"warning","message":{"text":"handleHttp (cognitive 42): handleHttp has cognitive complexity 42 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 5, ternaries 2 (5 pts), loops 1 (nesting depth added 18). Most of this is not in the body itself: 6 of the 42 points are its own statements and the rest belongs to 6 function items inside it that branch ((anonymous)::(anonymous), (anonymous), (anonymous)::handleResponse, \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":"lib/service/composer.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef377ab702f9d54de3296562770e5d804f6a115a6a0ceb491b2c3deffafc045"}},{"ruleId":"D2","level":"warning","message":{"text":"componentDidMount (cognitive 41): componentDidMount has cognitive complexity 41 (threshold 15). Drivers by points: if/else 22 (26 pts), boolean chains 12, ternaries 2 (3 pts) (nesting depth added 5). Most of this is not in the body itself: 0 of the 41 points are its own statements and the rest belongs to 22 function items inside it that branch ((anonymous), importRemoteUrl, (anonymous), \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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c748dd475a3d97e233cac8738b7768b123cb2fcbcd03b9dbf44efac5268427"}},{"ruleId":"D2","level":"warning","message":{"text":"componentDidMount (cognitive 41): componentDidMount has cognitive complexity 41 (threshold 15). Drivers by points: boolean chains 16, ternaries 4 (13 pts), if/else 8 (12 pts) (nesting depth added 13). Most of this is not in the body itself: 2 of the 41 points are its own statements and the rest belongs to 6 function items inside it that branch ((anonymous), initTextArea, initTextArea::onkeydown, \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":"biz/webui/htdocs/src/js/editor-dialog.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"412e53ad29996417fa855526a7202800481bab3c647584c727175eb218c9c3a7"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveRuleValue (cognitive 40): resolveRuleValue has cognitive complexity 40 (threshold 15). Drivers by points: if/else 7 (18 pts), ternaries 3 (11 pts), boolean chains 8, loops 1 (3 pts) (nesting depth added 21). 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":"lib/rules/rules.js"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba2d1c134308cb0d30d95e64caa78319505dc473b04fe06cdf0698b217498af"}},{"ruleId":"D2","level":"warning","message":{"text":"plugin.installPlugins (cognitive 39): plugin.installPlugins has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (25 pts), boolean chains 8, error handling 2 (6 pts) (nesting depth added 18). Most of this is not in the body itself: 1 of the 39 points is its own statement and the rest belongs to 4 function literals inside it that branch (lines 224, 229, 247, \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":"bin/plugin.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"d526712937f564cf352f3dc121b87a0461f01b2c85f6c83caac9c982a1a10bb0"}},{"ruleId":"D2","level":"warning","message":{"text":"parsePathReplace (cognitive 39): parsePathReplace has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (26 pts), boolean chains 7, ternaries 3 (6 pts) (nesting depth added 16). Of this number, 26 points are the body\u0027s own statements and 13 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/index.js"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce851b02032ed56c06706df42eae4c74f1dca774b91fb899bb7eb8bacada8e0"}},{"ruleId":"D2","level":"warning","message":{"text":"exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request (cognitive 39): exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (22 pts), boolean chains 16, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/inspectors/res.js"},"region":{"startLine":432}}}],"partialFingerprints":{"codehealthFindingId/v1":"e04c9f565ec9afb9c82d449fd3683401053134d719eda700358267e5583eb04b"}},{"ruleId":"D2","level":"warning","message":{"text":"handlePatternChange (cognitive 39): handlePatternChange has cognitive complexity 39 (threshold 15). Drivers by points: if/else 12 (24 pts), ternaries 4 (10 pts), boolean chains 5 (nesting depth added 18). 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":"biz/webui/htdocs/src/js/create-rule.js"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe507d94e71822892d0270e7b26d0c5c041eaf1a725226b3960e5adbaa3883fe"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 39): render has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 11 (15 pts), if/else 9 (14 pts), boolean chains 10 (nesting depth added 9). Of this number, 23 points are the body\u0027s own statements and 16 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":"biz/webui/htdocs/src/js/detail.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"08e96909c96767797778ca22069d700c1e85777e2499c401d3ad469e8c230645"}},{"ruleId":"D2","level":"warning","message":{"text":"dns.lookupDNS (cognitive 38): dns.lookupDNS has cognitive complexity 38 (threshold 15). Drivers by points: if/else 22 (28 pts), boolean chains 6, ternaries 1 (3 pts), error handling 1 (nesting depth added 8). Most of this is not in the body itself: 9 of the 38 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 75, 93, 148). 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":"lib/rules/dns.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e99c7f84d51f9d85630c13aac48652aceb58665011a8923b931ebd4a2559e534"}},{"ruleId":"D2","level":"warning","message":{"text":"showCookiesDialog (cognitive 38): showCookiesDialog has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (28 pts), boolean chains 5, loops 2 (5 pts) (nesting depth added 20). Most of this is not in the body itself: 2 of the 38 points are its own statements and the rest belongs to one function literal inside it that branches (line 1017). 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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":1007}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f168da96af70c9b1a7428b53181eb1234eef1a636ed3360ea17baaf723d398a"}},{"ruleId":"D2","level":"warning","message":{"text":"parseMetaInfo (cognitive 38): parseMetaInfo has cognitive complexity 38 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 11, ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/service/extract-saz.js"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c07d1b8965c585bf9294f36fb97233ab7c6f00356ea64f9ee5451fd7c30a142"}},{"ruleId":"D2","level":"warning","message":{"text":"isRegUrl (cognitive 37): isRegUrl has cognitive complexity 37 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 8, ternaries 5 (7 pts), error handling 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"lib/rules/rules.js"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"e118d30a9058aff170f7b55ba373c7102b1bb782212aa7256755ac8da77e9f75"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 37): render has cognitive complexity 37 (threshold 15). Drivers by points: boolean chains 22, ternaries 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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":1199}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff35d13a6faf7f72579f7a755bb4995e8c449ecf5f90050975be7abccb7666d"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 37): exports has cognitive complexity 37 (threshold 15). Drivers by points: if/else 18 (21 pts), boolean chains 14, ternaries 1 (2 pts) (nesting depth added 4). Of this number, 32 points are the body\u0027s own statements and 5 belong to 3 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":"lib/init.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fe513289ccc1b0225ab2c0d163b834848aefe75e71da6be65f579de33e382cd"}},{"ruleId":"D2","level":"warning","message":{"text":"h2.request (cognitive 36): h2.request has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (27 pts), boolean chains 8, ternaries 1 (nesting depth added 10). Of this number, 27 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":"lib/https/h2.js"},"region":{"startLine":394}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfc98bbb9629542970bb1a071f276477d2e95a1fb4a4baaaf5a9f4e0d74f028"}},{"ruleId":"D2","level":"warning","message":{"text":"updateBody (cognitive 36): updateBody has cognitive complexity 36 (threshold 15). Drivers by points: if/else 12 (19 pts), boolean chains 11, ternaries 2 (6 pts) (nesting depth added 11). Most of this is not in the body itself: 4 of the 36 points are its own statements and the rest belongs to one function literal inside it that branches (line 375). 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":"lib/util/http-mgr.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c82df552461f56437465f4becc5309bfb3880c18f3e1b4f5e70363d1a6c2673"}},{"ruleId":"D2","level":"warning","message":{"text":"list-modal.proto.moveTo (cognitive 35): list-modal.proto.moveTo has cognitive complexity 35 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (7 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 19). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/list-modal.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b06eacb698d3196e92c69a904db6eed8a5e8c2fbca9fa42866cd10a4da01657"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 35): exports has cognitive complexity 35 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 10, ternaries 1 (4 pts) (nesting depth added 15). Most of this is not in the body itself: 1 of the 35 points is its own statement and the rest belongs to 3 function items inside it that branch ((anonymous), (anonymous)::_transform::(anonymous), (anonymous)::_transform). 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":"lib/inspectors/log.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"67c9343ac1ec15f0775bf950e6a58885a051fd80c9210cbeffdc150116f2ba89"}},{"ruleId":"D2","level":"warning","message":{"text":"data-center.getAppName (cognitive 34): data-center.getAppName has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (27 pts), boolean chains 6, match/switch 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1610}}}],"partialFingerprints":{"codehealthFindingId/v1":"e22beed3897ab1a87c99cc1e83368f323b4fc1d128e6f6cbf213abcacd3c0b64"}},{"ruleId":"D2","level":"warning","message":{"text":"getRulesFromPlugins::(anonymous)::(anonymous)::(anonymous)::handleRules (cognitive 34): getRulesFromPlugins::(anonymous)::(anonymous)::(anonymous)::handleRules has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 9, ternaries 2 (4 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":"lib/plugins/index.js"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3161ec6d11ebb4328461b596e11ea4e0a766c080b68fdc1a426d8cea9a67ea6"}},{"ruleId":"D2","level":"warning","message":{"text":"setSettings (cognitive 34): setSettings has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 11, ternaries 3 (6 pts) (nesting depth added 6). Of this number, 20 points are the body\u0027s own statements and 14 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":"biz/webui/htdocs/src/js/network-settings.js"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"aed4f92dea4807e3753fbfa106b54e005e6ad470a0d6c1f943da38de18392672"}},{"ruleId":"D2","level":"warning","message":{"text":"plugin.install (cognitive 33): plugin.install has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 3 (9 pts), boolean chains 5, ternaries 1 (nesting depth added 13). Most of this is not in the body itself: 3 of the 33 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 146, 194). 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":"bin/plugin.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"00eecce820ae8d1fa809ae224b83ab0612413e9c87c214d3296dba613dac374f"}},{"ruleId":"D2","level":"warning","message":{"text":"init.default (cognitive 33): init.default has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 14, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/init.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd05b8b6e3ffb3ea87223b489474fffed688a216bd38be2e8fb0fa5515274e66"}},{"ruleId":"D2","level":"warning","message":{"text":"setResponseFor (cognitive 33): setResponseFor has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 8, ternaries 1 (4 pts) (nesting depth added 15). Of this number, 30 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/index.js"},"region":{"startLine":3215}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca152e72a1aa2d8692700626093a1ead1a97c86e0381f756f9c242424d9269f"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveVarValue (cognitive 33): resolveVarValue has cognitive complexity 33 (threshold 15). Drivers by points: boolean chains 15, ternaries 5 (10 pts), if/else 4 (7 pts), match/switch 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":"lib/rules/rules.js"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef560cc15f8fc883c937bd01f962ec15a296965f50d3a85ec9d3d35a0b7bc7a1"}},{"ruleId":"D2","level":"warning","message":{"text":"onContextMenu (cognitive 33): onContextMenu has cognitive complexity 33 (threshold 15). Drivers by points: if/else 11 (16 pts), ternaries 5 (9 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":"biz/webui/htdocs/src/js/list.js"},"region":{"startLine":613}}}],"partialFingerprints":{"codehealthFindingId/v1":"840a426fc5fe339fbcc003ef506b65d293c86611f5de7998cc6d64b469c9f0ef"}},{"ruleId":"D2","level":"warning","message":{"text":"init::formatFilter (cognitive 33): init::formatFilter has cognitive complexity 33 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 13, loops 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/data-server.js"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"11818b4e533b50aac143e1bf518d10c48cd7d9ef04264f293ef77bcc48902823"}},{"ruleId":"D2","level":"warning","message":{"text":"onSave (cognitive 33): onSave has cognitive complexity 33 (threshold 15). Drivers by points: if/else 16 (23 pts), ternaries 4 (5 pts), boolean chains 4, loops 1 (nesting depth added 8). Most of this is not in the body itself: 7 of the 33 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 282, 337, 272, \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":"biz/webui/htdocs/src/js/editor-dialog.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"0aa77f0ff2ace314bbd73d47a85e47dfea11c64b0fd189b3d8216a549a59f48b"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy (cognitive 33): proxy has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 10, ternaries 5 (nesting depth added 4). Most of this is not in the body itself: 11 of the 33 points are its own statements and the rest belongs to 16 function items inside it that branch (createNormalServer, (anonymous)::(anonymous), (anonymous), \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":"lib/index.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"516fd0970d979cf362cd7987f52355970ebf2f18a160de5bd0ee557caa8b0e5e"}},{"ruleId":"D2","level":"warning","message":{"text":"util.harToSession (cognitive 32): util.harToSession has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 16, if/else 11 (13 pts), ternaries 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a826bc286fdc1cdcbc21c150d2e6c1504a44f67ba363769ae032e2fe7c3e530"}},{"ruleId":"D2","level":"warning","message":{"text":"composer.handleWebSocket (cognitive 32): composer.handleWebSocket has cognitive complexity 32 (threshold 15). Drivers by points: if/else 12 (27 pts), boolean chains 4, loops 1 (nesting depth added 15). Most of this is not in the body itself: 6 of the 32 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 204, 195). 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":"lib/service/composer.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"757753cdefec383af7975f9745365a9cc86d8b11d616260ba9241b61a8d034f1"}},{"ruleId":"D2","level":"warning","message":{"text":"getInitialState (cognitive 32): getInitialState has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 17, if/else 14, ternaries 1. Of this number, 26 points are the body\u0027s own statements and 6 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0adb35d18a624bfe0465165e587a54fd5d8d058fc3970887ebf9b51564af369"}},{"ruleId":"D2","level":"warning","message":{"text":"createRules (cognitive 32): createRules has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 5, ternaries 3 (5 pts) (nesting depth added 9). Most of this is not in the body itself: 15 of the 32 points are its own statements and the rest belongs to one function literal inside it that branches (line 2829). 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":2792}}}],"partialFingerprints":{"codehealthFindingId/v1":"dace25a729d2c0d879dcf53dec3cc3bf2efb0a1775e007768f5d3a5ae1f70ca7"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 32): exports has cognitive complexity 32 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 15, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 0 of the 32 points are its own statements and the rest belongs to 12 function items inside it that branch ((anonymous)::request, (anonymous)::connect, (anonymous)::request::createConnection, \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":"lib/plugins/proxy.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c8b18f95da5104407ed4f22d4768e9eab27a83baa436a92dd991f45d848e03"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveFilterPattern (cognitive 31): resolveFilterPattern has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/rules.js"},"region":{"startLine":1468}}}],"partialFingerprints":{"codehealthFindingId/v1":"00bea1d754059e3fa2562df90edc29f4be916c2e97a7c62e429d3d7ccf016075"}},{"ruleId":"D2","level":"warning","message":{"text":"rules-hint.getFocusRuleName (cognitive 30): rules-hint.getFocusRuleName has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 2 (6 pts), boolean chains 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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":914}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f410889f9118b5b01ab2b6d333f872923c7da6532043832931c049e76cc14c"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy.default (cognitive 30): proxy.default has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 15, if/else 14 (15 pts) (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 9 function literals inside it that branch (lines 187, 134, 142, \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":"lib/plugins/proxy.js"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcb40bd63b4ea04cc4e33037a24e3a22836abd8a9fbc1848444cdb3ea24b3879"}},{"ruleId":"D2","level":"warning","message":{"text":"checkFilter (cognitive 30): checkFilter has cognitive complexity 30 (threshold 15). Drivers by points: if/else 6 (18 pts), ternaries 2 (8 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3467a6a5ede3c7bb883864bb3e440f8a9b1771a948aa5088cc901866fc45eb"}},{"ruleId":"D2","level":"warning","message":{"text":"getPeerPlugins (cognitive 30): getPeerPlugins has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 4, ternaries 1 (4 pts), loops 1 (nesting depth added 15). Most of this is not in the body itself: 7 of the 30 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 330, 335, 320). 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":"lib/util/common.js"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e7f46b4dd0253e10c2b5e47fc364fd93f97b819667b46f55d68ecb9c69f40f"}},{"ruleId":"D2","level":"warning","message":{"text":"readPackages (cognitive 30): readPackages has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, ternaries 3 (9 pts), if/else 6 (7 pts) (nesting depth added 7). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 8 function items inside it that branch ((anonymous)::(anonymous), (anonymous), callbackHandler, \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":"lib/plugins/index.js"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"e840b07b668182dc39f29faa55c947964851959b85f9a9a46fa712f29dbab4b7"}},{"ruleId":"D2","level":"warning","message":{"text":"toHttp1 (cognitive 30): toHttp1 has cognitive complexity 30 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 6, error handling 3 (6 pts), ternaries 3 (6 pts) (nesting depth added 9). Most of this is not in the body itself: 8 of the 30 points are its own statements and the rest belongs to 6 function items inside it that branch ((anonymous), (anonymous)::(anonymous), handleAbort, \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":"lib/https/index.js"},"region":{"startLine":1012}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa140b458e5704f487806128fb4ced69dd878982af09a5630d3a4e8e4b052710"}},{"ruleId":"D2","level":"warning","message":{"text":"Storage (cognitive 30): Storage has cognitive complexity 30 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 5, error handling 2, ternaries 1 (nesting depth added 5). Most of this is not in the body itself: 7 of the 30 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 81, 148, 163). 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":"lib/rules/storage.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8c6a257de6146776b9f5f43370ae96bdb46ae52f1fef0268068257ac8f264a"}},{"ruleId":"D2","level":"warning","message":{"text":"formatFiles (cognitive 30): formatFiles has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 7, ternaries 2 (5 pts), loops 1 (nesting depth added 9). Of this number, 25 points are the body\u0027s own statements and 5 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":"biz/webui/htdocs/src/js/certs-info-dialog.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"95be7ec0d8fb4158f322f08364a1e9013f7e6a7722d51631422b5047f3785a54"}},{"ruleId":"D2","level":"warning","message":{"text":"storage.proto.moveTo (cognitive 29): storage.proto.moveTo has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 6, loops 2 (5 pts), 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":"lib/rules/storage.js"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff7cf78830a64d4e3873823f9b6a41e466197dd748f7fb9e2af46e1e00f7fe3"}},{"ruleId":"D2","level":"warning","message":{"text":"data-center.handleHashFilterChanged (cognitive 29): data-center.handleHashFilterChanged has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 10, 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"657aa15915e82a5f2d02729e648ae690ef9bfcdb9e24d33d9655b06947ef6e1b"}},{"ruleId":"D2","level":"warning","message":{"text":"socket-mgr.handleConnect (cognitive 29): socket-mgr.handleConnect has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 12, ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 9 of the 29 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 800, 775, 798). 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":"lib/socket-mgr.js"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1c1c449230c6a077cf67985b4e6783ac0630cacc383ee67fbc8d4b66e1c261d"}},{"ruleId":"D2","level":"warning","message":{"text":"onCompose (cognitive 29): onCompose has cognitive complexity 29 (threshold 15). Drivers by points: if/else 15 (17 pts), ternaries 6 (8 pts), boolean chains 4 (nesting depth added 4). Of this number, 24 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"123814f026c2623ad3d97db8bd93c46475ce879e7f4056a34f8aa5ae5f8337a8"}},{"ruleId":"D2","level":"warning","message":{"text":"init::checkType (cognitive 29): init::checkType has cognitive complexity 29 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 3 (9 pts), boolean chains 4, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/data-server.js"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8acacb50a83a20660a391ae56f635fedbcba397c032b02682b8edbe13c8aec"}},{"ruleId":"D2","level":"warning","message":{"text":"handleParams::_transform (cognitive 29): handleParams::_transform has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (18 pts), error handling 2 (6 pts), boolean chains 3, 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":"lib/inspectors/req.js"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"792b3167e9907dd5761412fa1e94c1c854602ee346553a403a0c88db0554cf9a"}},{"ruleId":"D2","level":"warning","message":{"text":"request (cognitive 29): request has cognitive complexity 29 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 6, error handling 1 (4 pts), ternaries 2 (4 pts) (nesting depth added 9). Most of this is not in the body itself: 0 of the 29 points are its own statements and the rest belongs to 9 function items inside it that branch ((anonymous)::handleCallback::(anonymous), (anonymous)::handleResponse::(anonymous), (anonymous)::handleResponse, \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":"lib/util/http-mgr.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8146930b771d6a8f214f59be956854271faa1b43e678e15936f50d394ba64ac"}},{"ruleId":"D2","level":"warning","message":{"text":"_transform (cognitive 29): _transform has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (18 pts), ternaries 3 (8 pts), boolean chains 3 (nesting depth added 13). Of this number, 22 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":"lib/util/whistle-transform.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"24ae8fe83ce61355abaf6ef3adf78bf41bf8deb4e0c1e7cc27267bd272b40b16"}},{"ruleId":"D2","level":"warning","message":{"text":"index.getPipe (cognitive 28): index.getPipe has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 9 (nesting depth added 6). 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 1210, 1240, 1258, \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":"lib/plugins/index.js"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"db83837a7d1754acc32d9d0d7e8589715290e346c8c4946ada888a6908d356b2"}},{"ruleId":"D2","level":"warning","message":{"text":"util.parseKeyword (cognitive 28): util.parseKeyword has cognitive complexity 28 (threshold 15). Drivers by points: if/else 7 (22 pts), boolean chains 5, loops 1 (nesting depth added 15). 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":1715}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b94cc9c0a5dfda7e88ed1838195cc97208900163c82f458624d0506431300b"}},{"ruleId":"D2","level":"warning","message":{"text":"rules-hint.handleRemoteHints (cognitive 28): rules-hint.handleRemoteHints has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 11, ternaries 2 (4 pts) (nesting depth added 5). Most of this is not in the body itself: 9 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 424). 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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"31f8e290c2e2893b37cf3ea97e1ef4fbd5d411d0a23af3b34588514a6956d4ea"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveTplVar (cognitive 28): resolveTplVar has cognitive complexity 28 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 11, ternaries 3 (5 pts) (nesting depth added 5). 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 716, 749). 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":"lib/rules/rules.js"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"04fa83ee31d1a79fa229bf0d83c9a8555c953a75d93dc9197d81326eecfa1a99"}},{"ruleId":"D2","level":"warning","message":{"text":"getValue (cognitive 28): getValue has cognitive complexity 28 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 6, error handling 2 (5 pts), ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b359e33cb617529661c012575d8cddf334b959f04ff4ab5a8c5ccbba66d98b"}},{"ruleId":"D2","level":"warning","message":{"text":"cli.default (cognitive 27): cli.default has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 10 (nesting depth added 5). Most of this is not in the body itself: 6 of the 27 points are its own statements and the rest belongs to one function literal inside it that branches (line 56). 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":"bin/ca/cli.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"50307b41cda995208e794b10b0c747b6a519b56fa1858dfa4379db5594f7aaf0"}},{"ruleId":"D2","level":"warning","message":{"text":"util.parseImportData (cognitive 27): util.parseImportData has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (11 pts), ternaries 2 (7 pts), boolean chains 6, error handling 1 (3 pts) (nesting depth added 9). Most of this is not in the body itself: 2 of the 27 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 2464, 2496, 2506). 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2461}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4031199779cf3dadd780bf59b90348227e082cb22b02347d60ea3f1729addb"}},{"ruleId":"D2","level":"warning","message":{"text":"createValues (cognitive 27): createValues has cognitive complexity 27 (threshold 15). Drivers by points: if/else 16 (21 pts), boolean chains 4, ternaries 1 (2 pts) (nesting depth added 6). Most of this is not in the body itself: 12 of the 27 points are its own statements and the rest belongs to one function literal inside it that branches (line 2901). 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":2858}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8d67f60b207cfb5c9f7b70c7b3adabf7a557e58cb94f83075b9af4755442fbf"}},{"ruleId":"D2","level":"warning","message":{"text":"addPluginMenus (cognitive 27): addPluginMenus has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 8, loops 1 (2 pts), 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2394}}}],"partialFingerprints":{"codehealthFindingId/v1":"a55962a41eacb40a3bfeacfd48e99cea6f068d811d4afc4c8ddb1b2615d819fd"}},{"ruleId":"D2","level":"warning","message":{"text":"exports::initServers (cognitive 27): exports::initServers has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 25, if/else 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":"lib/plugins/load-plugin.js"},"region":{"startLine":1608}}}],"partialFingerprints":{"codehealthFindingId/v1":"468f656cc6636427cd54031a96ced767503705792cbee4c2a1f5a44d622c342c"}},{"ruleId":"D2","level":"warning","message":{"text":"handleFrame (cognitive 27): handleFrame has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (17 pts), ternaries 2 (6 pts), boolean chains 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":"lib/socket-mgr.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2b1581b0fcc0a11cf706f45cde5f1eb8d21b8ac39a414304bb62f074e08ba32"}},{"ruleId":"D2","level":"warning","message":{"text":"checkFilterType (cognitive 27): checkFilterType has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (14 pts), ternaries 3 (9 pts), boolean chains 2, loops 2 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"3269e8fe6c1622acd93ba5a0dd910e29f1be8c4a0d5379c7b90225835e6b9ab2"}},{"ruleId":"D2","level":"warning","message":{"text":"common.readWhistleRc (cognitive 26): common.readWhistleRc has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 7, ternaries 1 (nesting depth added 8). Most of this is not in the body itself: 6 of the 26 points are its own statements and the rest belongs to one function literal inside it that branches (line 1400). 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":"lib/util/common.js"},"region":{"startLine":1387}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c4c99080b3e425693123dae0071d355cd27389b8c787bbbc9ceef947d248ab"}},{"ruleId":"D2","level":"warning","message":{"text":"index.notEqual (cognitive 26): index.notEqual has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 2 (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":"lib/service/index.js"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a42616b2274ce97aa52a3a152b91063cf71d0daea2c17085cc187b0822e100"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveProps (cognitive 26): resolveProps has cognitive complexity 26 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 2 (7 pts), boolean chains 4 (nesting depth added 13). Most of this is not in the body itself: 3 of the 26 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1122, 1136). 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":"lib/rules/rules.js"},"region":{"startLine":1118}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cfc2a3a328a363304e0e54f32f9740df06a5a4bc96439fdfb65a8c3c8111c00"}},{"ruleId":"D2","level":"warning","message":{"text":"save (cognitive 26): save has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 3 (nesting depth added 11). Most of this is not in the body itself: 1 of the 26 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 185, 221, 193). 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":"biz/webui/htdocs/src/js/rules-dialog.js"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"39fc2bba25d42c203616bbdf4ba5f29a08945a4748e473876a7afd1ec32853f8"}},{"ruleId":"D2","level":"warning","message":{"text":"onFilterKeyDown (cognitive 26): onFilterKeyDown has cognitive complexity 26 (threshold 15). Drivers by points: if/else 17 (26 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":"biz/webui/htdocs/src/js/filter-input.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"1718c795fccbfecf04f5df4f98f1239bfae808bd7eaf48f23698e001d621ef83"}},{"ruleId":"D2","level":"warning","message":{"text":"getPluginNameByReq (cognitive 26): getPluginNameByReq has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 9, ternaries 6 (9 pts), if/else 8 (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 9 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/upgrade.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fdce88fe811e614f62373165b326a9c89f6f70bd169f161b194e049ee86009"}},{"ruleId":"D2","level":"warning","message":{"text":"getHintList (cognitive 25): getHintList has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 6, ternaries 3 (5 pts) (nesting depth added 7). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 2550). 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":"lib/util/index.js"},"region":{"startLine":2543}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5ad087a3e2c07bba489e0ac00a1f34486c306e4cbb4435b69da16f1933ffa3"}},{"ruleId":"D2","level":"warning","message":{"text":"addParserApi (cognitive 25): addParserApi has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13, error handling 4 (8 pts), boolean chains 4 (nesting depth added 4). Most of this is not in the body itself: 0 of the 25 points are its own statements and the rest belongs to 8 function items inside it that branch ((anonymous), on, emitDisconnect, \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":"lib/plugins/load-plugin.js"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"6001de6034e059b4c1db4b71fd4825cd98d6b6889e38ddc63449dc3bc4364fa9"}},{"ruleId":"D2","level":"warning","message":{"text":"parseWildcard (cognitive 25): parseWildcard has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 8, 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":"lib/rules/rules.js"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"6391c43bff7df84ce6c2d34d247189b9252325a84ed60bc38eac217f1dffb34a"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveRules (cognitive 25): resolveRules has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (15 pts), ternaries 3 (6 pts), boolean chains 4 (nesting depth added 8). 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 2242, 2255, 2263). 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":"lib/rules/rules.js"},"region":{"startLine":2221}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaa4b51a6530d53c3746c838c5afc0eb791f1956b38a438906aad686a506dd8b"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 25): render has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 9, boolean chains 6 (nesting depth added 3). Most of this is not in the body itself: 5 of the 25 points are its own statements and the rest belongs to one function literal inside it that branches (line 397). 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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d09dea340fb6addd677642ca3424ef12e7dfc983b5fb68d772c87b6325a53ea"}},{"ruleId":"D2","level":"warning","message":{"text":"onClickContextMenu (cognitive 25): onClickContextMenu has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 15, if/else 6 (9 pts), match/switch 1 (nesting depth added 3). Of this number, 22 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72389b5fe6bf880d9792cda3955aa8229cc872e77de7d8ce3728d4a0eca6ad5"}},{"ruleId":"D2","level":"warning","message":{"text":"componentDidMount (cognitive 25): componentDidMount has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 4 (6 pts), boolean chains 4 (nesting depth added 5). Most of this is not in the body itself: 3 of the 25 points are its own statements and the rest belongs to 13 function items inside it that branch ((anonymous), (anonymous), (anonymous), \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":"biz/webui/htdocs/src/js/list.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"15eacfb1ac2faee262523e29226fc9e51a37a8eae962baccf32286f0f96f800f"}},{"ruleId":"D2","level":"warning","message":{"text":"getRawResByPath (cognitive 25): getRawResByPath has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (20 pts), ternaries 2 (3 pts), boolean chains 2 (nesting depth added 9). Most of this is not in the body itself: 9 of the 25 points are its own statements and the rest belongs to 3 function items inside it that branch (response, (anonymous), response::(anonymous)). 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":"lib/handlers/file-proxy.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fef4505301e6b8b1cec7345667cc3e315939ef528ac1401c95591d717c64a2a"}},{"ruleId":"D2","level":"warning","message":{"text":"renderKey::render (cognitive 25): renderKey::render has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 10, if/else 4 (7 pts), boolean chains 6, error handling 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/properties.js"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"25456c893ebd75ba4ddd35531ea1bf10197197b9e7e6472b092f6196916afe2c"}},{"ruleId":"D2","level":"warning","message":{"text":"rules-hint.getHints (cognitive 24): rules-hint.getHints has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 6, ternaries 1 (nesting depth added 3). Of this number, 15 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, 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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"1493ec865d0aa20816e64cbaec75a7c2d73c3aff03f086b353f07b3dd31acb26"}},{"ruleId":"D2","level":"warning","message":{"text":"replaceQueryString (cognitive 24): replaceQueryString has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 8, ternaries 1 (2 pts) (nesting depth added 3). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 6 function items inside it that branch (addValue, (anonymous), parseKey, \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":"lib/util/index.js"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"862a14798a20c540d8b985665937e6df050712de3c839e60ff5125e22b904d09"}},{"ruleId":"D2","level":"warning","message":{"text":"parseQueryString (cognitive 24): parseQueryString has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5, error handling 2 (4 pts), ternaries 2 (4 pts) (nesting depth added 8). Most of this is not in the body itself: 4 of the 24 points are its own statements and the rest belongs to one function literal inside it that branches (line 907). 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":899}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b42d8cd84a9fcf5d07b44df78e684a79199967161f1a2e330248ed6bb6d02ad"}},{"ruleId":"D2","level":"warning","message":{"text":"wrapTunnelWriter (cognitive 24): wrapTunnelWriter has cognitive complexity 24 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 2 (nesting depth added 10). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 9 function items inside it that branch (write, write, write, \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":"lib/plugins/load-plugin.js"},"region":{"startLine":901}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f9cf01a73f73737c559389c12c74eb6ef00e344d570b8eb1350c1d90a708acc"}},{"ruleId":"D2","level":"warning","message":{"text":"execute (cognitive 24): execute has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 6, ternaries 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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":788}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5d9b57f1e1640f28c3b37f833cc8e0fb3a1b120337ec2ef6bc2ea1c0cd8816"}},{"ruleId":"D2","level":"warning","message":{"text":"sendRequest (cognitive 24): sendRequest has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 11 (nesting depth added 3). Most of this is not in the body itself: 4 of the 24 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 918, 912). 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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"62078787fbd4ddc37f1560c9e086a6f561a6aa730d9c7fdf17c2114eddc993b6"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 24): (anonymous) has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 6). Most of this is not in the body itself: 1 of the 24 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 198, 172, 163, \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":"lib/plugins/index.js"},"region":{"startLine":157}}}],"partialFingerprints":{"codehealthFindingId/v1":"83b4bcede24eb0b4822742d8a5c48194ed68338d5f182b9af969c556c520a249"}},{"ruleId":"D2","level":"warning","message":{"text":"init::checkClientIp (cognitive 24): init::checkClientIp has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/data-server.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"1350f7973f1f38e7cf6234049163bf70090321123d4442a034c4ef2e458d483d"}},{"ruleId":"D2","level":"warning","message":{"text":"toMultipart (cognitive 24): toMultipart has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (9 pts), error handling 2 (6 pts), boolean chains 5, ternaries 2 (4 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/inspectors/req.js"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"58726f45725317edf86060ecfbab51f49a43d1f457cf66d09e259eeb286b8015"}},{"ruleId":"D2","level":"warning","message":{"text":"setValue (cognitive 24): setValue has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 3 (7 pts), boolean chains 4 (nesting depth added 7). Of this number, 14 points are the body\u0027s own statements and 10 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":"biz/webui/htdocs/src/js/rules-dialog.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8842b2df9fcd421e873ed81ac66b9517560fc1decf21b3cad2750253ae0d2da"}},{"ruleId":"D2","level":"warning","message":{"text":"getPopup (cognitive 24): getPopup has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 18, boolean chains 6. Most of this is not in the body itself: 3 of the 24 points are its own statements and the rest belongs to 6 function items inside it that branch ((anonymous), (anonymous)::(anonymous), update, \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":"biz/webui/htdocs/src/js/context-menu.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdd99fe3fede87ecc2fe954099b3eb8930e6ecd171016d13ed0001dce97d0aa1"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 24): render has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 12, boolean chains 10, if/else 2. Of this number, 14 points are the body\u0027s own statements and 10 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":"biz/webui/htdocs/src/js/menu-item.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb365cc6dd9fa0206b054a82e5c5d58ec26e9da4c9a928eaf1b4ec08423c3e2f"}},{"ruleId":"D2","level":"warning","message":{"text":"use.getConfig (cognitive 23): use.getConfig has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 10, ternaries 1 (2 pts) (nesting depth added 2). Of this number, 13 points are the body\u0027s own statements and 10 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":"bin/use.js"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4de5bb3063ccfb031928de8e3c0e5fbfd2fc3f3cbd97cd4da024264d81b594"}},{"ruleId":"D2","level":"warning","message":{"text":"index.setResCors (cognitive 23): index.setResCors has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 4, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/index.js"},"region":{"startLine":2924}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c22fd049523ab6b9aacc6abdce1c3aa3dcdcb16f48fbc7f6ef8d603a2c130de"}},{"ruleId":"D2","level":"warning","message":{"text":"get-plugins-sync.readPluginModulesSync (cognitive 23): get-plugins-sync.readPluginModulesSync has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (14 pts), ternaries 3 (5 pts), error handling 2 (3 pts), boolean chains 1 (nesting depth added 10). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 39, 30, 65). 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":"lib/plugins/get-plugins-sync.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad9dbf80427bf34287bfba6daee029466d3160cbb26a7dd2e3683a0a2be286f"}},{"ruleId":"D2","level":"warning","message":{"text":"util.getFilename (cognitive 23): util.getFilename has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (23 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":"lib/service/util.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9c1e4891a8a2eca7c4cd3dc0fdf3d1e5bfcf8afd91bbd97412de4ed4a41e8ca"}},{"ruleId":"D2","level":"warning","message":{"text":"ignoreRules (cognitive 23): ignoreRules has cognitive complexity 23 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 5, ternaries 1 (nesting depth added 7). Most of this is not in the body itself: 2 of the 23 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 2089, 2109, 2114). 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":"lib/util/index.js"},"region":{"startLine":2082}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31b72a68a34c2c3066dbe11f3b4602bec9a5f2f88184f493bf9eedd18b13de7"}},{"ruleId":"D2","level":"warning","message":{"text":"checkProxyHost (cognitive 23): checkProxyHost has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (11 pts), ternaries 2 (6 pts), boolean chains 4, 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":"lib/util/index.js"},"region":{"startLine":3831}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79d515e520814848d0fa310a926fdd40f43e2db74597266f96a54edfa2114cb"}},{"ruleId":"D2","level":"warning","message":{"text":"parseLogs (cognitive 23): parseLogs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (15 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (2 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"6399f66119d0142bfa55cfdf34a5c88b29e7229dbde5c2e9700e2d53caa41411"}},{"ruleId":"D2","level":"warning","message":{"text":"exports::initServers::(anonymous)::(anonymous)::(anonymous)::connect (cognitive 23): exports::initServers::(anonymous)::(anonymous)::(anonymous)::connect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 4, 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":"lib/plugins/load-plugin.js"},"region":{"startLine":2436}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc22a6fd93c41960ad64a179a282c93c2774f2383fa8f0c39365882ba96aec48"}},{"ruleId":"D2","level":"warning","message":{"text":"startLoadData::load (cognitive 23): startLoadData::load has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, ternaries 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1066}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19346d5838eea774a16a5c97e298ef388ee715dd659763cd4506758fb6aac47"}},{"ruleId":"D2","level":"warning","message":{"text":"exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request::send (cognitive 23): exports::request::(anonymous)::(anonymous)::(anonymous)::(anonymous)::request::send has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, ternaries 4 (5 pts), 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":"lib/inspectors/res.js"},"region":{"startLine":604}}}],"partialFingerprints":{"codehealthFindingId/v1":"7076757914f409631bab46c8ef4d9d635a2e8c94a3e75301e66c0e60eb3e54d8"}},{"ruleId":"D2","level":"warning","message":{"text":"emitDataEvents::handleResBody (cognitive 23): emitDataEvents::handleResBody has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 9, ternaries 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":"lib/inspectors/data.js"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"6350e3cc8cfb0b14d2051a6aef4e3b80535dc36449f6d219d4d79611fc331b16"}},{"ruleId":"D2","level":"warning","message":{"text":"getBodyRules (cognitive 23): getBodyRules has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2, match/switch 1 (nesting depth added 9). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 2 function items inside it that branch ((anonymous), addRule). 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":"biz/webui/htdocs/src/js/request-rule.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"20454fd5d468f3a909275a101057d534da4c085a44f946b33fe514a3a511da23"}},{"ruleId":"D2","level":"warning","message":{"text":"getBodyRules (cognitive 23): getBodyRules has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 2, match/switch 1 (nesting depth added 9). Most of this is not in the body itself: 3 of the 23 points are its own statements and the rest belongs to 2 function items inside it that branch ((anonymous), addRule). 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":"biz/webui/htdocs/src/js/response-rule.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dccfac159085dbb4299683cc09692106663663251c2534a21d593f20a32575f"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 23): exports has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, ternaries 2 (5 pts), error handling 1 (2 pts), match/switch 1 (nesting depth added 6). Most of this is not in the body itself: 1 of the 23 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 92, 130). 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":"biz/webui/htdocs/src/js/parse-curl.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcca32fc23cc2d15f285bef058ed9c9c823c6871f345563e3a5584862da3af3b"}},{"ruleId":"D2","level":"warning","message":{"text":"componentDidMount (cognitive 23): componentDidMount has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 4 (nesting depth added 10). Most of this is not in the body itself: 0 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 28, 50). 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":"biz/webui/htdocs/src/js/network.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6f77963a6c4c27684571bbae907caf2d298e1dc1a1df38b8dba55a8aacfa8e"}},{"ruleId":"D2","level":"warning","message":{"text":"common.parseLine (cognitive 22): common.parseLine has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 2 (nesting depth added 11). 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":"lib/util/common.js"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc298de3b0c500c29a57beaad9aba1987c4dc9ff352d254958974a4954871db"}},{"ruleId":"D2","level":"warning","message":{"text":"use.default (cognitive 22): use.default has cognitive complexity 22 (threshold 15). Drivers by points: if/else 13, ternaries 3 (5 pts), boolean chains 4 (nesting depth added 2). Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 266, 278, 253, \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":"bin/use.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebac18cf7495adb381941bf2c22262313c4fc5132ae4107b45b6a0738fd937f"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy.default (cognitive 22): proxy.default has cognitive complexity 22 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 7 (nesting depth added 4). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to one function literal inside it that branches (line 56). 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":"bin/proxy.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd2a53d189a9f9f16f2eb82bdc1df79b4f0ffc8b5232758a5ca210f6eaf1e48"}},{"ruleId":"D2","level":"warning","message":{"text":"util.parseLine (cognitive 22): util.parseLine has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (20 pts), boolean chains 2 (nesting depth added 11). 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc07eb3ae97ac9dbe2cd515649ce62176ad8b62df625a45e76ed63b1e9bb0197"}},{"ruleId":"D2","level":"warning","message":{"text":"tunnelProxy::(anonymous)::(anonymous)::(anonymous)::emitError (cognitive 22): tunnelProxy::(anonymous)::(anonymous)::(anonymous)::emitError has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 2 (5 pts), boolean chains 4 (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":"lib/tunnel.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f7acaba3bc15aa967fb7964adcb7caf2154a2e9b8e7444c813895bbd1fca21e"}},{"ruleId":"D2","level":"warning","message":{"text":"onClickContextMenu (cognitive 22): onClickContextMenu has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, error handling 1 (4 pts), ternaries 2, match/switch 1 (nesting depth added 8). Of this number, 18 points are the body\u0027s own statements and 4 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":"biz/webui/htdocs/src/js/list.js"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d1948628ac43ab4a2d2826ef0755559e5f2350ea2a421c6950f5e23c15e229"}},{"ruleId":"D2","level":"warning","message":{"text":"initHeaderRules (cognitive 22): initHeaderRules has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 6). Of this number, 15 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/index.js"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b40eaf98a16e1e71071e19e316239592b566cf9e2e42356b4d26468e41b57a"}},{"ruleId":"D2","level":"warning","message":{"text":"handleParams::_transform (cognitive 22): handleParams::_transform has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 3 (6 pts), boolean chains 4 (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":"lib/inspectors/req.js"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"d68e8d1f874ece29a95a93924f2505b97c0396938b4fad7e96a9238b157508a1"}},{"ruleId":"D2","level":"warning","message":{"text":"handleRequest::getBody (cognitive 22): handleRequest::getBody has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), ternaries 2 (6 pts), boolean chains 5 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/service/composer.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"76f1948266699cbdf1954a26f6a441f3138280a3e77a5cae5f58b89f34b49180"}},{"ruleId":"D2","level":"warning","message":{"text":"handleChange (cognitive 22): handleChange has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (21 pts), boolean chains 1 (nesting depth added 11). Of this number, 19 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/response-rule.js"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b4e2e91a57641247e45bc6fc6e0f3990174560cdadecb7e0dfb1cf6ff515613"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 22): exports has cognitive complexity 22 (threshold 15). Drivers by points: boolean chains 13, error handling 2 (3 pts), if/else 3, ternaries 3 (nesting depth added 1). Most of this is not in the body itself: 0 of the 22 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 96, 91). 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":"lib/plugins/get-plugins-sync.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf6313b90c02ddf0ec66c0c42e51aab76af8e9ec0e93dc66ef16fa4857f542e8"}},{"ruleId":"D2","level":"warning","message":{"text":"updateOptions (cognitive 22): updateOptions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (15 pts), ternaries 2 (4 pts), boolean chains 3 (nesting depth added 8). Of this number, 19 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":"biz/webui/htdocs/src/js/custom-select.js"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"086f5f233ee406b23e0849c1ad7e9841338561289b27323ca1cc71edbee01fff"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 22): render has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (15 pts), if/else 4 (5 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":"biz/webui/htdocs/src/js/frame-data.js"},"region":{"startLine":84}}}],"partialFingerprints":{"codehealthFindingId/v1":"8144ee6178eaab8385916cf91c07416a10ebfb2d18a334b049b252a365cf839f"}},{"ruleId":"D2","level":"warning","message":{"text":"replace-pattern-transform.replacePattern (cognitive 21): replace-pattern-transform.replacePattern has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 4, ternaries 3 (4 pts), error handling 1 (3 pts) (nesting depth added 8). Most of this is not in the body itself: 3 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 67). 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":"lib/util/replace-pattern-transform.js"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ba7a43d210d911785fccbde6ea7cc72ce4f3e8d61970669c63270293408e34"}},{"ruleId":"D2","level":"warning","message":{"text":"get-plugins-sync.default (cognitive 21): get-plugins-sync.default has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, error handling 2 (3 pts), if/else 3, ternaries 3 (nesting depth added 1). Most of this is not in the body itself: 0 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 96). 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":"lib/plugins/get-plugins-sync.js"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b8662d92dc50e1bf2ef3db2bc81cf04473b1838230527392fed1ea001016a1"}},{"ruleId":"D2","level":"warning","message":{"text":"project.default (cognitive 21): project.default has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, ternaries 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":"biz/webui/cgi-bin/rules/project.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"246c6cd9eb3fb622ce21eedd162a0025c1d22c1a094bdb4e75e8c663f2110ae4"}},{"ruleId":"D2","level":"warning","message":{"text":"util.handleImportData (cognitive 21): util.handleImportData has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 4 (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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":1535}}}],"partialFingerprints":{"codehealthFindingId/v1":"da7117cb189b846db93d4e7e49f5eafcab41b13d538176852a14262e795ab386"}},{"ruleId":"D2","level":"warning","message":{"text":"upgrade.upgradeHandler (cognitive 21): upgrade.upgradeHandler has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 10 (nesting depth added 2). Most of this is not in the body itself: 8 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 125, 105, 147). 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":"lib/upgrade.js"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb9aa1d3064fd438cf1b5c4c81192e9662fd7f5d20d97fd27f32b9046444c17"}},{"ruleId":"D2","level":"warning","message":{"text":"startLoadData (cognitive 21): startLoadData has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 7 (nesting depth added 2). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 7 function items inside it that branch (update, (anonymous), atBottom, \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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":2205}}}],"partialFingerprints":{"codehealthFindingId/v1":"f101bb741c26657738fb374a9e2125fcc0ddc7b8c852fea1d4b6a3e51585cd9b"}},{"ruleId":"D2","level":"warning","message":{"text":"getMatcherJson (cognitive 21): getMatcherJson has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 5, ternaries 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/index.js"},"region":{"startLine":1231}}}],"partialFingerprints":{"codehealthFindingId/v1":"4557042a76c398a7f4f9f85f5cd65b0ad81653b9a4c93d4501a19becb37fe46f"}},{"ruleId":"D2","level":"warning","message":{"text":"getPluginMenu (cognitive 21): getPluginMenu has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 3 (9 pts), if/else 3 (6 pts), boolean chains 5, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/index.js"},"region":{"startLine":2481}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a8573d45f01ae38ddd5dbb095315fc77146b4f5515ca99f8580912560de674"}},{"ruleId":"D2","level":"warning","message":{"text":"setReqCookies (cognitive 21): setReqCookies has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (7 pts), ternaries 3 (5 pts) (nesting depth added 4). Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 3077, 3063, 3087). 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":"lib/util/index.js"},"region":{"startLine":3054}}}],"partialFingerprints":{"codehealthFindingId/v1":"087d571a0842d482abf19a7c11749d6f16af0021fde5f3263c203e566f3ea186"}},{"ruleId":"D2","level":"warning","message":{"text":"getCookieItem (cognitive 21): getCookieItem has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 15, ternaries 2 (4 pts), if/else 2 (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":"lib/util/index.js"},"region":{"startLine":3095}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db7790fc6e67cbda649a9b58502fef049326bef2e0ed97819efe72fcd97750b"}},{"ruleId":"D2","level":"warning","message":{"text":"loadCustomCerts (cognitive 21): loadCustomCerts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, error handling 3 (4 pts), ternaries 1 (3 pts) (nesting depth added 4). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 375, 344). 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":"lib/https/ca.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"46f132c152e3578e87fef7dd719e9b9db601cccbf2f9a3836ba7a1946f2f33e6"}},{"ruleId":"D2","level":"warning","message":{"text":"componentDidMount::find (cognitive 21): componentDidMount::find has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (13 pts), ternaries 3 (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":"biz/webui/htdocs/src/js/editor.js"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"4af5a3f12a8155996e63e7fda4615aa3b5bf8754db08f9110c715a97f824c11f"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 21): exports has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 3, ternaries 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":"biz/webui/cgi-bin/rules/project.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"e308a916ada3a94968f9c4d91368d689660d0d866a67c8993d4d22231f9baa15"}},{"ruleId":"D2","level":"warning","message":{"text":"index.pluginMgr.getResRules (cognitive 20): index.pluginMgr.getResRules has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 12, if/else 5 (6 pts), error handling 1 (2 pts) (nesting depth added 2). 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, 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":"lib/plugins/index.js"},"region":{"startLine":1313}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0231ab61d2aca52946de56cd2a8e5d844b5f464641a18a3bda381ea1dd93fc"}},{"ruleId":"D2","level":"warning","message":{"text":"protocols.setPlugins (cognitive 20): protocols.setPlugins has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (19 pts), boolean chains 1 (nesting depth added 11). Most of this is not in the body itself: 1 of the 20 points is its own statement and the rest belongs to one function literal inside it that branches (line 128). 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":"biz/webui/htdocs/src/js/protocols.js"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b398f1557b8695bb3c4c1b6a0f6448637f4264121891c4d78d43431f121a52"}},{"ruleId":"D2","level":"warning","message":{"text":"setContext (cognitive 20): setContext has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (7 pts), ternaries 2 (3 pts) (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":"lib/plugins/load-plugin.js"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a1a5338583356af019382362201e57d2f923efa1b46bd123284ee012b1c9502"}},{"ruleId":"D2","level":"warning","message":{"text":"getFullUrl (cognitive 20): getFullUrl has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, ternaries 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":"lib/util/common.js"},"region":{"startLine":1239}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ed08593ed119279d2ee8c91a2f117f32ab824760ba43ff6549ea784021d82a1"}},{"ruleId":"D2","level":"warning","message":{"text":"init::getSessionsForApi (cognitive 20): init::getSessionsForApi has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (13 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":"lib/util/data-server.js"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77de8927a464b0a56a245a320b2e66ffcd71d33f31f2c3907f327b102c55fba"}},{"ruleId":"D2","level":"warning","message":{"text":"updateTree (cognitive 20): updateTree has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 pts), ternaries 1 (3 pts), boolean chains 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2e418619926dbbefeb9153a3e55e32af48c6cf74fd96e3e050b95ef39e4c6f7"}},{"ruleId":"D2","level":"warning","message":{"text":"cgiHandler (cognitive 20): cgiHandler has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 4 (10 pts), if/else 6 (7 pts), boolean chains 2, error handling 1 (nesting depth added 7). Most of this is not in the body itself: 4 of the 20 points are its own statements and the rest belongs to 2 function items inside it that branch ((anonymous), handleResponse). 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":"biz/webui/lib/index.js"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfbc18b30c7dd5e2387da3961f3ec4a8438b8652ffe3efd73788aea1771f84a5"}},{"ruleId":"D2","level":"warning","message":{"text":"emitDataEvents::handleReqBody::write (cognitive 20): emitDataEvents::handleReqBody::write has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3 (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":"lib/inspectors/data.js"},"region":{"startLine":279}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a19de4049eb992cee8b27c001f231fc725ff501527593974d037bdfcc3fddb1"}},{"ruleId":"D2","level":"warning","message":{"text":"emitDataEvents::handleResBody::write (cognitive 20): emitDataEvents::handleResBody::write has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (17 pts), boolean chains 3 (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":"lib/inspectors/data.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"4291c3acf15ce1e8cf5d984ca942595655b6aa99b0e906b64ccf6acb71e95b13"}},{"ruleId":"D2","level":"warning","message":{"text":"onUrlKeyDown (cognitive 20): onUrlKeyDown has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 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":"biz/webui/htdocs/src/js/url-input.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ca015e66c34d9ea3f0a33245cbefc0245bcbd82822c0554e715c65079d4051"}},{"ruleId":"D2","level":"warning","message":{"text":"parse-url-safe.default (cognitive 19): parse-url-safe.default has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7, error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/parse-url-safe.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1808908280875e19ed8c49a8e7f5111a62f37375523e50b089a8571a83131e"}},{"ruleId":"D2","level":"warning","message":{"text":"util.showUsage (cognitive 19): util.showUsage has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4, ternaries 3 (nesting depth added 4). Of this number, 18 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":"bin/util.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dbae8a9e92e098172592204fa9c13ee0bfdc2c9c527232252204776fec87058"}},{"ruleId":"D2","level":"warning","message":{"text":"rules.parseText (cognitive 19): rules.parseText has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 6 (nesting depth added 4). Most of this is not in the body itself: 1 of the 19 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 1742, 1778). 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":"lib/rules/rules.js"},"region":{"startLine":1738}}}],"partialFingerprints":{"codehealthFindingId/v1":"704c48b78e6138724cdf12a1d4d399fc17ae33ec24c5b8a6d9462843fd5a6f4d"}},{"ruleId":"D2","level":"warning","message":{"text":"index.app.use() (cognitive 19): index.app.use() has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/lib/index.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"942f4a21fdee8ecb28ed1b15e1df54dc13e914ea8ee954d17ac2673df8126b76"}},{"ruleId":"D2","level":"warning","message":{"text":"util.getProperty (cognitive 19): util.getProperty has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"caae541d04a2e733bb13aaa988545c9919819d098628aafa7de78083daddeca5"}},{"ruleId":"D2","level":"warning","message":{"text":"util.filterJson (cognitive 19): util.filterJson has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 7, loops 1 (2 pts) (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 5 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":3181}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ac992083b4aae44cea2d28d8d14a199bea465016942d37abf8a70234b58a12"}},{"ruleId":"D2","level":"warning","message":{"text":"list-modal.proto.filter (cognitive 19): list-modal.proto.filter has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (8 pts) (nesting depth added 2). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 468). 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":"biz/webui/htdocs/src/js/list-modal.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"101fe36c34841c0d0aedcd54d0f4e8fb12f1f6348c88beb35f880c52a0a27721"}},{"ruleId":"D2","level":"warning","message":{"text":"init.addErrorEvents (cognitive 19): init.addErrorEvents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 5 (nesting depth added 2). Of this number, 14 points are the body\u0027s own statements and 5 belong to 3 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/init.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aef109de051a69c6c756e3239b8c6bc3c9fa8e2b60ca4bac90d77a6446c50ef"}},{"ruleId":"D2","level":"warning","message":{"text":"proxy.createSocket (cognitive 19): proxy.createSocket has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12, boolean chains 7. Of this number, 13 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":"lib/plugins/proxy.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c74ad7c596c941d62f84303728e186a84c737a9a2fafe9777d244db51364101"}},{"ruleId":"D2","level":"warning","message":{"text":"getPageName (cognitive 19): getPageName has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 8, 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"d03138b05387b866eb89d5e910d78b25e18474bf4f5a364eaf697f3bd7a08769"}},{"ruleId":"D2","level":"warning","message":{"text":"replay (cognitive 19): replay has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 4, ternaries 2 (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 4 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":3199}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd0b3432f3bf353207861f301bc743338ea249491708e6a17bd453247499e9c2"}},{"ruleId":"D2","level":"warning","message":{"text":"readStream (cognitive 19): readStream has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts), error handling 1, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 0 of the 19 points are its own statements and the rest belongs to 8 function items inside it that branch ((anonymous)::getJson::(anonymous), (anonymous), (anonymous)::getBuffer, \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":"lib/util/common.js"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"42ca7a5413b13caadeb8c163a87ec43cbdf9fceac05cf489c877b3477ff1468f"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 19): render has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 9, if/else 4 (6 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 3). Of this number, 12 points are the body\u0027s own statements and 7 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":"biz/webui/htdocs/src/js/plugins.js"},"region":{"startLine":937}}}],"partialFingerprints":{"codehealthFindingId/v1":"05a3811871152363ec2170853910110f5ef537b4b2367d558fa90bf78a187a71"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, ternaries 9, if/else 1. Of this number, 18 points are the body\u0027s own statements and 1 belongs 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":"biz/webui/htdocs/src/js/list.js"},"region":{"startLine":835}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd309a84d1ee41f8a1335882d31d5064297b39850652d085d07c46f7d55e0b9"}},{"ruleId":"D2","level":"warning","message":{"text":"getProxy::resolvePacRule (cognitive 19): getProxy::resolvePacRule has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 14, if/else 5. 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":"lib/rules/index.js"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"248d50ac4a5218d4a4906a0e63c6b1a226cedccf30b34d9075c779ede477b4bd"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/lib/index.js"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"556454d718ffadcee625aaa3c5be3e2490d9e4bfa7d96365dee82d68ea919613"}},{"ruleId":"D2","level":"warning","message":{"text":"handleReq (cognitive 19): handleReq has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 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":"lib/inspectors/req.js"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"bad8ab6d185d80111cf0be62c6a5d3067a32495bc9ed52be240318048edd8d8a"}},{"ruleId":"D2","level":"warning","message":{"text":"emitDataEvents::handleError (cognitive 19): emitDataEvents::handleError has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 4, 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":"lib/inspectors/data.js"},"region":{"startLine":446}}}],"partialFingerprints":{"codehealthFindingId/v1":"72b200520286dbd37a8808e67cdb698e6942032cc65f04a4669ab6e538943208"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::token (cognitive 19): (anonymous)::token has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3, 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":"biz/webui/htdocs/src/js/rules-mode.js"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"7781b988edc31ed80a475f6e3206748562d90605e888d9011745b968d59ac966"}},{"ruleId":"D2","level":"warning","message":{"text":"filter::isHide (cognitive 19): filter::isHide has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (5 pts), boolean chains 1, loops 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/frame-modal.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d5136d64b636eab301ed7aee9c3e47bd5c5e150741c5c720101d1918f5ee032"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 19): exports has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (4 pts), boolean chains 2, ternaries 1 (2 pts) (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/download.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"29ebcb9787e18f38cac80a8b7ee2ec36d8a761b597ce81e3d6a4f29c6c01a6c0"}},{"ruleId":"D2","level":"warning","message":{"text":"rules.getLines (cognitive 18): rules.getLines has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 3 (nesting depth added 6). 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 413). 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":"lib/rules/rules.js"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"601e38c8074c381f38a31cc0d369854cb9eb7ff4df06b4785011080353cc8a00"}},{"ruleId":"D2","level":"warning","message":{"text":"ca.parseAllCustomCerts (cognitive 18): ca.parseAllCustomCerts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 6 (nesting depth added 6). 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 302, 294). 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":"lib/https/ca.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"615e2f4ecfb718994db97732d3b9ccd5f8a6007432ce34ca0b16b8ed76d48e3b"}},{"ruleId":"D2","level":"warning","message":{"text":"index.app.use() (cognitive 18): index.app.use() has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 1 (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":"biz/webui/lib/index.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"fff415c50a43ebd0d25d5fb0f9ab4644ae994a65aa465d63cb79e499852b4d2f"}},{"ruleId":"D2","level":"warning","message":{"text":"add.default (cognitive 18): add.default has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 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":"biz/webui/cgi-bin/rules/add.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"d807b887ffa289f61f625081da11ac5da8aecefaa51d762b89daabe9eecf02f3"}},{"ruleId":"D2","level":"warning","message":{"text":"frame-modal.proto.filter (cognitive 18): frame-modal.proto.filter has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (nesting depth added 5). 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 65, 94). 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":"biz/webui/htdocs/src/js/frame-modal.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"655d6c313998823ff05b847f0f214b5e4f6c5edb24035a2d208968caabca4ccf"}},{"ruleId":"D2","level":"warning","message":{"text":"parse-curl.default (cognitive 18): parse-curl.default has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, error handling 1 (2 pts), match/switch 1 (nesting depth added 3). 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 92, 130). 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":"biz/webui/htdocs/src/js/parse-curl.js"},"region":{"startLine":82}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea722f44f2cd924e8c96efda8266386b1e5b7a04c4ea4ab4b44201ee1a7951b9"}},{"ruleId":"D2","level":"warning","message":{"text":"list-modal.proto.getActiveObj (cognitive 18): list-modal.proto.getActiveObj has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (17 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":"biz/webui/htdocs/src/js/list-modal.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"83803aa4a7762a0eef241e43ce8e71a9e83da190188327357dfa596bda3b5f53"}},{"ruleId":"D2","level":"warning","message":{"text":"log.default (cognitive 18): log.default has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (8 pts) (nesting depth added 3). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 32, 52, 56). 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":"lib/inspectors/log.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a5912fe24a37a7897a60e31b4d5dc93f46cd59bffc7c8ed04222f8c580ca2a"}},{"ruleId":"D2","level":"warning","message":{"text":"res.setCookies (cognitive 18): res.setCookies has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (11 pts), ternaries 2 (6 pts), boolean chains 1 (nesting depth added 9). Of this number, 9 points are the body\u0027s own statements and 9 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":"lib/inspectors/res.js"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"590009c4a6ca7b49f7eb5b3e1e363604ce10ea9829cb7558447e71a8c34ad3de"}},{"ruleId":"D2","level":"warning","message":{"text":"load-plugin.requestFrames (cognitive 18): load-plugin.requestFrames has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, error handling 1 (2 pts) (nesting depth added 2). 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 657). 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":"lib/plugins/load-plugin.js"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14e8eebc5d5782f9e241fb87c1dd8b4c8e3cd259818b2064f83537348f69d1d"}},{"ruleId":"D2","level":"warning","message":{"text":"selectRules (cognitive 18): selectRules has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 2, ternaries 1 (nesting depth added 7). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 3089, 3105, 3101). 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":3082}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bf0f96f57a5d582276d69031994f2300b8bf4ba87c695e3c133b3a5a83fde42"}},{"ruleId":"D2","level":"warning","message":{"text":"parseDelQuery (cognitive 18): parseDelQuery has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 5, ternaries 1 (3 pts) (nesting depth added 5). Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to one function literal inside it that branches (line 2680). 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":"lib/util/index.js"},"region":{"startLine":2675}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d1ea3d374308e9b5427b362add7bba7c1216a004a177640c2ddbd4bc7e13eb8"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveResCookiesVar (cognitive 18): resolveResCookiesVar has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 6, match/switch 1 (2 pts), ternaries 1 (nesting depth added 3). Of this number, 13 points are the body\u0027s own statements and 5 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":"lib/rules/rules.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3298a35276dc7d3b80bb6380a3b65b64d8bf012ac3559899e7da2243d98d7f7"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveValue (cognitive 18): resolveValue has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 5). Of this number, 14 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":"lib/rules/rules.js"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"350eaee5322f0b62a92968ba500b7e697920c617b94e68e6849393f24c98c6f9"}},{"ruleId":"D2","level":"warning","message":{"text":"clearCache (cognitive 18): clearCache has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 1, ternaries 1 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 4 belong to 3 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":"lib/util/data-server.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"a441a0a8d2edae5ef8ee555b6cb9490f483a25805ff4573a1cedc6cd0deec673"}},{"ruleId":"D2","level":"warning","message":{"text":"init::checkItem (cognitive 18): init::checkItem has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 5, loops 1 (2 pts), 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":"lib/util/data-server.js"},"region":{"startLine":566}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3c650f942a42a23709a9d1ebe6a05cdda14cbe4851f47afed69089dc9fccfd"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 1 (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":"biz/webui/lib/index.js"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc9c92a528476a14d4aa2b3c49aa9507dbfeff6c5b51f8350b3cd9a6c682b170"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 18): (anonymous) has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (7 pts), ternaries 2 (nesting depth added 2). Of this number, 9 points are the body\u0027s own statements and 9 belong to 3 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":"lib/rules/util.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"018142bc8c6e655950efcda706394567793b4e1448ed5e5c005ec3e6ff82c93d"}},{"ruleId":"D2","level":"warning","message":{"text":"lookupDNS::handleDns (cognitive 18): lookupDNS::handleDns has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), ternaries 1 (3 pts), boolean chains 1, 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":"lib/rules/dns.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6014331e4ba99dbb69e3aee3cc3a64a8804bf0f68218bed5a21192be1831810"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 18): exports has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6, error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/parse-url-safe.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ec8977d54639d11bcb728297ef124559f4f81c538202d9cfdda028c120b87e"}},{"ruleId":"D2","level":"warning","message":{"text":"createCgi (cognitive 18): createCgi has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, ternaries 2 (3 pts) (nesting depth added 3). 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 items inside it that branch (cgiFn, cgiFn::execCallback, cgiFn::error, \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":"biz/webui/htdocs/src/js/cgi.js"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"1be3d17d2a5423a4c97ad10755d28d3b0e8c518582cca61e15be766ebfceae10"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 18): exports has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 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":"biz/webui/cgi-bin/rules/add.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"615098c50d64e6b85c2be325e7eaaaf22b5a54f5006d3c2cf448d1875bf35304"}},{"ruleId":"D2","level":"warning","message":{"text":"common.compareVersion (cognitive 17): common.compareVersion has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 4 (5 pts), boolean chains 4, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/common.js"},"region":{"startLine":1349}}}],"partialFingerprints":{"codehealthFindingId/v1":"24442b034074d5c84888b562a2b0f3cb7902d61f14e9dc2c375456db8fb0a102"}},{"ruleId":"D2","level":"warning","message":{"text":"use.existsPlugin (cognitive 17): use.existsPlugin has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, ternaries 2 (4 pts), loops 1 (nesting depth added 4). Of this number, 14 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":"bin/use.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce184ba5edf8de8add4d76691988bc29883653f1a391d93e1c3148cb4d93f3f5"}},{"ruleId":"D2","level":"warning","message":{"text":"api.createPattern (cognitive 17): api.createPattern has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, match/switch 1 (nesting depth added 1). Most of this is not in the body itself: 6 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 564, 558). 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":"bin/api.js"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"35511b1bf23fe50caf525832506b2465080a95acf4fa699732f01f230b97c7b4"}},{"ruleId":"D2","level":"warning","message":{"text":"download.default (cognitive 17): download.default has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), error handling 2 (4 pts), boolean chains 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":"biz/webui/cgi-bin/download.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b49c9f0ff941998b985e033afde402bfef31faa27fb8c83591465a66b6ebf11"}},{"ruleId":"D2","level":"warning","message":{"text":"network-modal.checkItem (cognitive 17): network-modal.checkItem has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 10, ternaries 2 (4 pts), if/else 1 (2 pts), match/switch 1 (nesting depth added 3). The drivers above price the dispatch low by construction \u2014 a dispatch is charged once however many cases it lists, while each branch inside an arm is charged in full \u2014 so most of this count is what the case bodies hold, and the arms are where it can be reduced. To reduce it, keep the dispatch but shrink the arms: move each non-trivial case body into its own named function (or onto the value being matched) so the dispatch reads one line per case, and group related cases into a sub-dispatch. Keep every case explicit, and make the behaviour for cases you do not list a deliberate choice rather than an accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"e657d8e0f8122fface00386cdb4da3aacfcf6c33b5645767cda24f865dc42332"}},{"ruleId":"D2","level":"warning","message":{"text":"socket-mgr.handleWsSend (cognitive 17): socket-mgr.handleWsSend has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 14, if/else 2, 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. This shape REPEATS in the file: one other method here (socket-mgr.handleWsReceive) 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":"lib/socket-mgr.js"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"7548bb0e4a0341b9f9752f1f46123501d98cb7e8a5e4a6000889ff8cffe8fbb2"}},{"ruleId":"D2","level":"warning","message":{"text":"socket-mgr.handleWsReceive (cognitive 17): socket-mgr.handleWsReceive has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 14, if/else 2, 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. This shape REPEATS in the file: one other method here (socket-mgr.handleWsSend) 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":"lib/socket-mgr.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"b64dccc8bc5f96a7e3c7ac39e54fc9bcf2d1aa6a48afe3250ac9439f94709737"}},{"ruleId":"D2","level":"warning","message":{"text":"socket-mgr.handleUpgrade (cognitive 17): socket-mgr.handleUpgrade has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (9 pts), boolean chains 8 (nesting depth added 2). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 712, 710, 717). 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":"lib/socket-mgr.js"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"5294f97f604bfe6d0072a1332694147ba5b9513f9341d631cd96f973a6fd2f7e"}},{"ruleId":"D2","level":"warning","message":{"text":"transformReq (cognitive 17): transformReq has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 6 (nesting depth added 3). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 3 function items inside it that branch ((anonymous), abort, (anonymous)). 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":"lib/util/index.js"},"region":{"startLine":2322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0663846a4b83286b70397bbf425b4d276bd7bdbd10cd41df9d3a6893f73af25a"}},{"ruleId":"D2","level":"warning","message":{"text":"parseLinesJSON (cognitive 17): parseLinesJSON has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 2 (3 pts) (nesting depth added 2). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1134, 1155). 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":1129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d574eee5daf7070ddf11d7dcb3ff2e4ae14a0f75fba6f488d5e70dd224e5af14"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveUrlVar (cognitive 17): resolveUrlVar has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (6 pts), ternaries 2 (4 pts) (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/rules.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"393b7d7191710a64b9fe7950e6b716e525c2faeaf468b47a487a3c1313b8c974"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveFilterText (cognitive 17): resolveFilterText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 3 (7 pts), boolean chains 3 (nesting depth added 5). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 334). 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"037e0e4479ffb58b92b1ee53ba2da5d31c8d2d4279cd95e04c999a93a438be1e"}},{"ruleId":"D2","level":"warning","message":{"text":"updateItem (cognitive 17): updateItem has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, ternaries 1 (4 pts) (nesting depth added 6). Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to one function literal inside it that branches (line 1005). 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1004}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7c692e2a8e67722456890099d848d81f12fad746eb574053569099e925a8ca6"}},{"ruleId":"D2","level":"warning","message":{"text":"parsePlainText (cognitive 17): parsePlainText has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 2 (3 pts) (nesting depth added 2). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 1188, 1212). 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":"lib/util/common.js"},"region":{"startLine":1186}}}],"partialFingerprints":{"codehealthFindingId/v1":"35749c043d4dcd1da8d614a98a17a3319dd7c7a143df35822767278558a8328f"}},{"ruleId":"D2","level":"warning","message":{"text":"componentDidMount (cognitive 17): componentDidMount has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, ternaries 2 (nesting depth added 2). Most of this is not in the body itself: 0 of the 17 points are its own statements and the rest belongs to 9 function items inside it that branch ((anonymous), (anonymous)::updateComposer, (anonymous), \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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"1737991e53552a8a9b02ba32b2e48fc6070edcbee8358a1f6b08be0a6e2d2862"}},{"ruleId":"D2","level":"warning","message":{"text":"formatHistory (cognitive 17): formatHistory has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 4, ternaries 4 (nesting depth added 1). Most of this is not in the body itself: 3 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 434, 474, 476). 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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e8b0b5447f475e56823600cb5e2ac31d11a049306a512323e1db6e2d6323153"}},{"ruleId":"D2","level":"warning","message":{"text":"getRegistryList (cognitive 17): getRegistryList 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: 1 of the 17 points is its own statement and the rest belongs to 5 function literals inside it that branch (lines 247, 238, 240, \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":"biz/webui/htdocs/src/js/plugins.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"b12ea7178e66516c2b8c77eed94e1f81095d0105bedea4c129a23b2d66b715c6"}},{"ruleId":"D2","level":"warning","message":{"text":"index.setClientId (cognitive 16): index.setClientId has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 6 (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":"lib/util/index.js"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee881c7ea9e9886d161f0399c42c98b66f23692ecf01b459e5f3bf3c68a3513a"}},{"ruleId":"D2","level":"warning","message":{"text":"index.resolveIgnore (cognitive 16): index.resolveIgnore 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 2 function literals inside it that branch (lines 1910, 1947). 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":"lib/util/index.js"},"region":{"startLine":1905}}}],"partialFingerprints":{"codehealthFindingId/v1":"69950df8137d83acd63064e91d210e311cf0072b460bb2607233e6edeff8e225"}},{"ruleId":"D2","level":"warning","message":{"text":"add.default (cognitive 16): add.default has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 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":"biz/webui/cgi-bin/values/add.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"b419f3a03df2cbb7f77a9f9f042454fcca078196ed0c2232dbc18f410619f49a"}},{"ruleId":"D2","level":"warning","message":{"text":"util.initData (cognitive 16): util.initData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (8 pts), boolean chains 5, error handling 1 (3 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"912426706e2814bf38a0d223a85775213212367d882a1411b63d45686deb2e41"}},{"ruleId":"D2","level":"warning","message":{"text":"util.compareVersion (cognitive 16): util.compareVersion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 4 (5 pts), boolean chains 3, loops 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2249}}}],"partialFingerprints":{"codehealthFindingId/v1":"98099d93bae6fdf99116a0836f4e7b6507807b52b7fe150b2a70ee466c36b8ea"}},{"ruleId":"D2","level":"warning","message":{"text":"protocols.getHelpUrl (cognitive 16): protocols.getHelpUrl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4 (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":"biz/webui/htdocs/src/js/protocols.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27768ee929cc783cecbb2713834a9c04aed524c9e24251fc867822e1975c036"}},{"ruleId":"D2","level":"warning","message":{"text":"rules.getDecoder (cognitive 16): rules.getDecoder has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 4 (nesting depth added 4). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 74, 86). 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":"lib/inspectors/rules.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f6800f30919213cb4327df596262abdf488d76fac43bba34922b96bbf9224d8"}},{"ruleId":"D2","level":"warning","message":{"text":"showPluginTab (cognitive 16): showPluginTab has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (9 pts), boolean chains 5, 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":2615}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0298bdc380a792f955bd1823ae5360493068b2852878be651532e88fb1b46dc"}},{"ruleId":"D2","level":"warning","message":{"text":"getPreviewUrl (cognitive 16): getPreviewUrl has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 3 (6 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2138}}}],"partialFingerprints":{"codehealthFindingId/v1":"09ec02cc8a3a138d84de40ef6dc26ebf035bebe80922bcda0220127a46c98b00"}},{"ruleId":"D2","level":"warning","message":{"text":"loadCert (cognitive 16): loadCert has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 5, ternaries 2 (3 pts), error handling 1 (nesting depth added 1). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 244, 229). 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":"lib/plugins/index.js"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d5084861632c303afc351695122592f8a92f75a048d3722e64e15a099e7440"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveWebsocket::pipeData (cognitive 16): resolveWebsocket::pipeData has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"lib/https/index.js"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"414ba83f326b2cee5316bc4fc4eb964827398f145f140c83bae7d8e30d701b30"}},{"ruleId":"D2","level":"warning","message":{"text":"handleWsSend::onData (cognitive 16): handleWsSend::onData has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (7 pts), if/else 4 (5 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/socket-mgr.js"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a8d53df3fc526980d1cc247ff51cf39fd56b3fa6d23771f03476f76d48d0eb4"}},{"ruleId":"D2","level":"warning","message":{"text":"handleWsReceive::onData (cognitive 16): handleWsReceive::onData has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 6 (7 pts), if/else 4 (5 pts), boolean chains 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/socket-mgr.js"},"region":{"startLine":509}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53fd2a314064b4f0ba70d29f30a4a0a8fc57986f927c4e623846dd9c7517625"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 16): render has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 5, if/else 3 (nesting depth added 1). Most of this is not in the body itself: 5 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 424). 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":"biz/webui/htdocs/src/js/network-settings.js"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a79c5e7cf769c6bff7b0d30ccf85b2bf231d397cf39106294c9fcd813f69f77"}},{"ruleId":"D2","level":"warning","message":{"text":"renderHeaderAction (cognitive 16): renderHeaderAction has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 5 (6 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":"biz/webui/htdocs/src/js/rule-mixin.js"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a564faf128b80b92b5d886383cb88130327487c62f56ea894c62d238ca2354"}},{"ruleId":"D2","level":"warning","message":{"text":"getRuleList (cognitive 16): getRuleList has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7 (nesting depth added 1). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 7 function items inside it that branch ((anonymous), (anonymous), (anonymous), \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":"biz/webui/htdocs/src/js/list-dialog.js"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"376b1143e89081f6b39026afe55beebdede6d4203e52eafea6e5a861d3d3212b"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 16): render has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, ternaries 4 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"biz/webui/htdocs/src/js/json-viewer.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"b288f8d344aad8ebfa412d33fc26e8a187b1d2c24ad3cc0c54827963bc970158"}},{"ruleId":"D2","level":"warning","message":{"text":"Parser (cognitive 16): Parser has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (13 pts), ternaries 2 (3 pts) (nesting depth added 5). Most of this is not in the body itself: 0 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (parseChunk, write). 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":"lib/util/transproto.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bb9913fc564a3a836bcb925e1dc4b1c2558b73d74621c59623b5eff43552ce"}},{"ruleId":"D2","level":"warning","message":{"text":"exports (cognitive 16): exports has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 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":"biz/webui/cgi-bin/values/add.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"22f47b6e8706aa1b74b55e026506e2c42be80ee2f2323c69e407c657a2369b2a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/index.js: FileTooLong \u2014 3857 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 92% of them inside a single declaration: Index (430-4884). The bar is 500 significant lines; this is 3357 over it, 7.71\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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93d6297df70f62cae4f9c5ecc6fa25264de6f31fdd09c96ecd1a20619cfdcbaa"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tunnel.tunnelProxy: FunctionTooLong \u2014 tunnelProxy runs 654 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 554 over it, 6.54\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":"lib/tunnel.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8c36316566ad8f92b683663acb5308b3eda2b9a2a3644e2515b9839e1137d5b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.resolveWebsocket: FunctionTooLong \u2014 resolveWebsocket runs 644 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 544 over it, 6.44\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/https/index.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40c53947a4dea52e6ae63ee8841fc287ed7eb2e09d2e2f20358a3f50109d033"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/index.js: FileTooLong \u2014 2797 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 2297 over it, 5.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":"lib/util/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"03b5df7c0d260fd97fa1182b0833a6d15159ee1d4b1d3195c4d83b7cc392918a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/util.js: FileTooLong \u2014 2598 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 2098 over it, 5.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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"261304bdfd2a91e85eeabaad332589b7b2e8e4bfe5d0f8aca30eb8fb93417558"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: plugins/load-plugin.js: FileTooLong \u2014 2014 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 1514 over it, 4.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":"lib/plugins/load-plugin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f0b8d519895cf07fdd3d7b2f45c995ae88c6c1d69c182b6154ced34533e7f5"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: data.emitDataEvents: FunctionTooLong \u2014 emitDataEvents runs 374 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 274 over it, 3.74\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":"lib/inspectors/data.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"54e85fbedcc4a24eebe367bd1bb6af866a849e1d364d7a1489e22dcf7cd5ab83"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rules/rules.js: FileTooLong \u2014 1850 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 1350 over it, 3.70\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/rules.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"60a39010fa7e7c9c2c5e9e67a4581273b962eaaff777564532f58d9baecb7f79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/data-center.js: FileTooLong \u2014 1628 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 1128 over it, 3.26\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bef9cfd142fdc4963f733755c9ec8e9cf1f1245f259ba315488aed7b0c035a0f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: data-center.startLoadData: FunctionTooLong \u2014 startLoadData runs 310 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 210 over it, 3.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce345e2f80d7f4e0f5e8278b8534562e752516350d61dc1361aa28850745bce"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/common.js: FileTooLong \u2014 1455 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 955 over it, 2.91\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":"lib/util/common.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecdda2b4c93ca3fa8b1f75a432b681eff0ffb803b30e1a0ef89657309288388d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/req-data.js: FileTooLong \u2014 1379 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 75% of them inside a single declaration: ReqData (449-1696). The bar is 500 significant lines; this is 879 over it, 2.76\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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42b1800024da299eb16087a9a96e6ca3ac638c606ca9848969a06af47401a6b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/composer.js: FileTooLong \u2014 1338 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 93% of them inside a single declaration: Composer (119-1603). The bar is 500 significant lines; this is 838 over it, 2.68\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":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fae5036f333bccc2c729e5746df65ee97d205295ae5864e66a4719dcb43e137"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rules-hint.CodeMirror.registerHelper(\u0022hint\u0022,\u0022rulesHint\u0022): FunctionTooLong \u2014 CodeMirror.registerHelper(\u0022hint\u0022,\u0022rulesHint\u0022) runs 262 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 162 over it, 2.62\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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0bb3ccbce5c46284cc6001b91b49e9ef6a643ac4a116568f6bbe440a05bf44c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: req.handleParams: FunctionTooLong \u2014 handleParams runs 210 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 110 over it, 2.10\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/inspectors/req.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"baae60061b4677c755f17f1ad9b2f56e558a72469f62a5132b01116e3ebf8a4a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: https/index.js: FileTooLong \u2014 1039 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 62% of them inside a single declaration: resolveWebsocket (88-903). The bar is 500 significant lines; this is 539 over it, 2.08\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":"lib/https/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79190b45793eddc1f160940eaf1b848f648a6d69fae35c63c7e6fe3d798e68a4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: inspectors/res.js: FileTooLong \u2014 1019 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 519 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":"lib/inspectors/res.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"093516af43a68ddc0b94237d03c0519380edd6f972f1d92dc6664659b4a3da95"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: service.sessionsHandler: FunctionTooLong \u2014 sessionsHandler runs 192 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 92 over it, 1.92\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":"lib/service/service.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f73fd5370be5306e45a4b8832c225aea2577fc0486e1d7bfd56f8c37b74632e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/config.js: FileTooLong \u2014 916 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 416 over it, 1.83\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/config.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0beb1d422dd06ccc034cb656eb66e79dabf8bece2cd0eb893792644f329dfd"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rules-mode.CodeMirror.defineMode(\u0022rules\u0022): FunctionTooLong \u2014 CodeMirror.defineMode(\u0022rules\u0022) runs 181 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 81 over it, 1.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":"biz/webui/htdocs/src/js/rules-mode.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62c5fa2651ae0dc78a110326c6ebafe4a768538fe72ce3f1260a7ec09863609"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/plugins.js: FileTooLong \u2014 852 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 63% of them inside a single declaration: Home (159-806). The bar is 500 significant lines; this is 352 over it, 1.70\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":"biz/webui/htdocs/src/js/plugins.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b03ef14950ef81a7e87aff8e5d233334d6a1d4c26cfd1058155336ad3ca7b2e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rules.resolveMatchFilter: FunctionTooLong \u2014 resolveMatchFilter runs 160 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 60 over it, 1.60\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":"lib/rules/rules.js"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ca15e1b62ef25e14cd5f80cbbe569b38d9a3acd7609108f16828bcffcc0de3a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/rules-hint.js: FileTooLong \u2014 757 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 257 over it, 1.51\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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba6f946a12407078f4ebdd2e59ea54f15263955b6c9bd1f128d6ea670300980"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rules.parseRule: FunctionTooLong \u2014 parseRule runs 148 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 48 over it, 1.48\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":"lib/rules/rules.js"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7c73c5fcede0e4241f2b57a29047e9429a3325fa3df80c8ac52ec7b5ca83093"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rules.resolveRuleList: FunctionTooLong \u2014 resolveRuleList runs 147 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 47 over it, 1.47\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":"lib/rules/rules.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8f2fdbc4e3e7e26f8f2c9058b6885c3fefb73b8ebdf517b6b7d80649a272cc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/network-modal.js: FileTooLong \u2014 725 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 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":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1463a867b3fab7912921ec5218703c3e9c31be0317c9e1f3ce48c5b656d853c1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/list.js: FileTooLong \u2014 718 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: List (154-905). The bar is 500 significant lines; this is 218 over it, 1.44\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":"biz/webui/htdocs/src/js/list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e2ae4e834fc217f9303e66b2952bce09fbb9c26eae071e61be27d58b91d40c5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/socket-mgr.js: FileTooLong \u2014 712 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 212 over it, 1.42\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":"lib/socket-mgr.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b011218776dde064882fd8c0ff4be674651cf3802088c866a0edc806d67d8550"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: index.proxy: FunctionTooLong \u2014 proxy runs 141 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 41 over it, 1.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":"lib/index.js"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd519481283539ac44291b42689d9d014d1ea12e44082bccaa98d73fe29f0968"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: util/data-server.js: FileTooLong \u2014 701 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 201 over it, 1.40\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/data-server.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"efcf68cbfa4d1a96b5895b1cf929839a16874ab26a5fe5de92713d4ba6a2db65"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/tunnel.js: FileTooLong \u2014 688 significant lines (blank, comment-only and punctuation-only lines excluded), about 95% of them inside a single declaration: tunnelProxy (38-872). The bar is 500 significant lines; this is 188 over it, 1.38\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":"lib/tunnel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"feb3953938e87fa772e51c4130f340beca0a2ca70696ca1f545122e9f73a9efb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: log.patchJSON: FunctionTooLong \u2014 patchJSON 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/js/log.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"63309edb22a057381e2771c68c097cc2dd8e740b07b73151664784df6edda122"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: rules/index.js: FileTooLong \u2014 644 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 144 over it, 1.29\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":"lib/rules/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"989d9985d58df7b1f4a00cc4414f22bd4078c2eeef29f5f95f2408d585f5ee37"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: https/ca.js: FileTooLong \u2014 603 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 103 over it, 1.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":"lib/https/ca.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8283b4f09ab461c15ed5626498cb3497e3f72328213cd0df3d4fce4e743e650c"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: columns.getDefaultColumns: FunctionTooLong \u2014 getDefaultColumns runs 117 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 17 over it, 1.17\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":"biz/webui/htdocs/src/js/columns.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"66776ef2179e0ebc372c1b23e9551b553f44a61b5781ea0caa86e3bc6934a090"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: rules.matchFilter: FunctionTooLong \u2014 matchFilter 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":"lib/rules/rules.js"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff5f1fbe192c9c25c35061a8837cd108c29e2611bfaa73fd7fb1058d69910f9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: lib/index.js: FileTooLong \u2014 518 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 18 over it, 1.04\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/lib/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"381997ca47084d9e35fb52b178002be5bc134cb3c002eff626776d15e0e248b2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/plugins/load-plugin.js: lib/plugins/load-plugin.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 343 in load-plugin.default at line 1123. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- lib/plugins/load-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":"lib/plugins/load-plugin.js"},"region":{"startLine":1123}}}],"partialFingerprints":{"codehealthFindingId/v1":"e227dc2a242fd567f29fd77b3326675e1248a7ce38f1f2aa117413a41e48d975"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/inspectors/res.js: lib/inspectors/res.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 337 in res.default at line 193. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- lib/inspectors/res.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":"lib/inspectors/res.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"70168f28b4431defbe1e01749479a0fef087db9d7eb6d0fdd5ad1d05f98b318c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/inspectors/data.js: lib/inspectors/data.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 137 in data.emitDataEvents at line 55. 3 of those changes were fix/bug commits, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- lib/inspectors/data.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":"lib/inspectors/data.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"6336db63566908997c2449487d543b4e68d62b827e6ab5b79e7b1d92da63c741"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: biz/webui/htdocs/src/js/data-center.js: biz/webui/htdocs/src/js/data-center.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 107 in data-center.startLoadData at line 1061. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- biz/webui/htdocs/src/js/data-center.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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1061}}}],"partialFingerprints":{"codehealthFindingId/v1":"832c1a2a51f05002281dcd20112283434ce055fe6d4eb58ee17fa3bc76ec270b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/util/data-server.js: lib/util/data-server.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 198 in data-server.init at line 401. 1 of those changes was a fix/bug commit, and the other 2 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- lib/util/data-server.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":"lib/util/data-server.js"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"81f3bd652d0f3fa9fdb9bc5eed9f31f40b67de1f31b6a6348c49c1925a5cf927"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: biz/webui/htdocs/src/js/rules-hint.js: biz/webui/htdocs/src/js/rules-hint.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 114 in rules-hint.CodeMirror.registerHelper(\u0022hint\u0022,\u0022rulesHint\u0022) at line 553. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- biz/webui/htdocs/src/js/rules-hint.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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb9cf5680a096f9373aef9c1ad26e3e2dc69ba5e7e6f57c2ab8573022956856"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: biz/webui/htdocs/src/js/network-modal.js: biz/webui/htdocs/src/js/network-modal.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 44 in network-modal.checkItem at line 179. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- biz/webui/htdocs/src/js/network-modal.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":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cdf12bd003896e32e68fdb6eaa55ff5d55694e7c000ba467f5c16a7c44882dc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/https/index.js: lib/https/index.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 62 in index.default at line 1143. 1 of those changes was a fix/bug commit, and the other 3 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- lib/https/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":"lib/https/index.js"},"region":{"startLine":1143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82b4c02c56b2162b35a508ffb8afec318861cf5fe70565d9c603d7de60f1cd5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: biz/webui/htdocs/src/js/res-detail.js: biz/webui/htdocs/src/js/res-detail.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in render at line 70. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- biz/webui/htdocs/src/js/res-detail.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":"biz/webui/htdocs/src/js/res-detail.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"296bb61836e2fc4a15940202f56c6d81e770b59671c59fae004aab28b94f19d6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/service/service.js: lib/service/service.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 53 in service.sessionsHandler at line 302. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- lib/service/service.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":"lib/service/service.js"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"d219a7added57bc0e9f69a5da7e06bd810147ca0ed35febdfae30ede859a1eec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: biz/webui/htdocs/src/js/rules-mode.js: biz/webui/htdocs/src/js/rules-mode.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 67 in rules-mode.CodeMirror.defineMode(\u0022rules\u0022) 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- biz/webui/htdocs/src/js/rules-mode.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":"biz/webui/htdocs/src/js/rules-mode.js"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"61381607ad0c8a15a9e8ed7107f7ae8af4ca1ffbe38b2f16f2f1ff72fedcec40"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/service/composer.js: lib/service/composer.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 65 in composer.handleRequest at line 340. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- lib/service/composer.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":"lib/service/composer.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4cc00be6b405b92d85cebcc21cf56af86b2b501e4e9cb5f0e418b0871f851e7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: biz/webui/htdocs/src/js/req-detail.js: biz/webui/htdocs/src/js/req-detail.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in render at line 61. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- biz/webui/htdocs/src/js/req-detail.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":"biz/webui/htdocs/src/js/req-detail.js"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4865c4d75414c08e2803bb46765229fdc471643ee6548651957f7196d65263d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: biz/webui/htdocs/src/js/util.js: biz/webui/htdocs/src/js/util.js changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in util.parseImportData at line 2461. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- biz/webui/htdocs/src/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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2461}}}],"partialFingerprints":{"codehealthFindingId/v1":"de5718b312439c125d79abf2660de4b9daf054badbdd355342a95e1763edf0a9"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: biz/webui/htdocs/src/js/timeline.js: biz/webui/htdocs/src/js/timeline.js changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 26 in (anonymous) 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- biz/webui/htdocs/src/js/timeline.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":"biz/webui/htdocs/src/js/timeline.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b00205da2fe0f80cf217cb859abedb82bcd2656ae607fe8d5e34f0cc48e0e57"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/util/common.js: lib/util/common.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in common.readStream at line 732. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- lib/util/common.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":"lib/util/common.js"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad90dd0584c20d1351d40579609330647da5e14eb52cb745f64348a7bd27105f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: lib/util/http-mgr.js: lib/util/http-mgr.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 21 in http-mgr.request at line 193. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- lib/util/http-mgr.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":"lib/util/http-mgr.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cfdf7b9f8413de603eb4df765e2ef0ec440af6ab907fb16505c5eaba265c4b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: biz/webui/htdocs/src/js/detail.js: biz/webui/htdocs/src/js/detail.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 23 in render at line 186. 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- biz/webui/htdocs/src/js/detail.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":"biz/webui/htdocs/src/js/detail.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb5a8a5700b45b404d78680907f3293740e03fe72f6fafc13aa2f6c6ca1d78ff"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: biz/webui/htdocs/src/js/context-menu.js: biz/webui/htdocs/src/js/context-menu.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 15 in (anonymous) 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-06-23..2026-09-21, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-06-23 10:40:37 \u002B08:00\u0027 --until=\u00272026-09-21 10:40:37 \u002B08:00\u0027 --full-history --no-merges -- biz/webui/htdocs/src/js/context-menu.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":"biz/webui/htdocs/src/js/context-menu.js"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"3442d1f7b220a7f4299872f8cf989ca6a27f73b34794beff84551cace187ca47"}},{"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 (70641 LoC, 262 public types across 27 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":"90ef1b8fdd7b6951465bdc2ef0605175e764063584c87920e1fb3d15a6ec9b35"},"properties":{"commitSha":"8741f1f4aa1eeb6516aaa8abcc591a20888fd6aa"}},{"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":"0e44ff6727975634663dc505f4c1f6687698f507b7ff1a8d5c3e8fb8ffea2ebe"},"taxa":[{"id":"CWE-1321","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":"d7d678e685b987e74816375add55d68c4108ddd89fd5d4f5d64aa9cb4493c46d"},"taxa":[{"id":"CWE-1321","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":"0a28488ebc95c367df6fd217b88cb034c32e56792e45a0ae4f3b769be714bd73"},"taxa":[{"id":"CWE-1321","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":"c4c8648d3cc9956a76fe4790e33f4faccd98fb6e2d29785e46750d10606c8dbd"},"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":"9501f03ed93dc979a40c9ec3226e97b47994cfb268b86af028b88c15a3289dc7"},"taxa":[{"id":"CWE-22","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":"fb4dcb80a7b515b80c7879bba46145bbe6c270cb72ea9a936d817751c84ba14e"},"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":"471c0b116891fadbe2bf95bf9b7de15f39d13aee5ddbc1ac13a990e0076b4509"},"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":"9f3379f8963ea7047be8d9cafad7f8bef4e793a51ad65e32cf5cf33035739f27"},"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":"ec241cd1c85a8f2805d2529be2407d8e367af55af18f5c48f80e6b0af828ff08"},"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":"9bb48ff26f2a4ec6d495e4891ee3ef5239f2ab0e8e648bc42931df28898576f3"},"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":"3a1cdde37f967ee80a81e03bd240a726bd4d80e65daa78081ec7fb86c1affe54"},"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":"797cf4c05a72c01bae54fe7240343beed5e021894755377ba6706860c95989e2"},"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":"3bb1617ff7285bb8fc374863c5cb8f538d6a0c748e1abe3b9ffc76f9ea57c51d"},"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":"209eb6520eb0da6195e8b70dada130b0400ecd75a568e513333975497de7023c"},"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":"e3880cd4e4a5206f0e006fa303f587c2279777cebd97ba2c6559a9ad32f8f471"},"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":"3fe5caa7b9c35850278a7318e77f3adcba8395c9a53537b995bde6c50c156bb8"},"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":"9d3ab5d24ac7193859bde2665e25df3087f5355825cd1731b57624bc86fa98c2"},"taxa":[{"id":"CWE-346","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":"a84c36387ac4c8a8b87630b51b666d0f25ed3de6648ca0528697714555bbd7a2"},"properties":{"dependency":{"package":"babel-traverse","version":"6.26.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9abb252f27a2c1110271bbda4019327d156a9f7284a6d1929186464dacca1ab7"},"properties":{"dependency":{"package":"loader-utils","version":"0.2.17","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3ca57e7b390c88ae0c9a421e4c29d0ab1a0db727dad926ad73eee331d69f8b21"},"properties":{"dependency":{"package":"sha.js","version":"2.2.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b8b982f108de182ba77397a9b0f27addd5c03ae6840736a528b48703d2791837"},"properties":{"dependency":{"package":"form-data","version":"2.3.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"60f20c1a50ce1bbeec6f108e9302632dddee572e5ca469649b6bd0c2a2c4961b"},"properties":{"dependency":{"package":"minimist","version":"0.0.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ad53a12c94605cc22e87a0af4a24ea3150a77033c8a67d366ebab792c9957802"},"properties":{"dependency":{"package":"cross-spawn","version":"5.1.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"328d7d45b9cbb53b7e3a593a848b0476e9f4aeecf8e03dd2670538a62ba56977"},"properties":{"dependency":{"package":"shelljs","version":"0.6.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1e03b14734319d875bd0dac1f97ef300c97b23c9a470ff6af28213112e543c4"},"properties":{"dependency":{"package":"postcss","version":"4.1.16","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5663b5d3983a9f6f7744b9af8d10ede9d273d65b8a859266b06bf516fc0e4e27"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.18","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"469e0916415d4643beb7c1b21e025e8cdc8b21619fc1b4823bd44ac5bacafb97"},"properties":{"dependency":{"package":"browserslist","version":"0.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1b4fb2cbde6cd0f6c555a378041f359ea38ff02acbccf8fc1385bd3fefceab51"},"properties":{"dependency":{"package":"browserslist","version":"3.2.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b9195953ae623c15e0e5042a5db27efc28d25e64fc7f7c7c297789ddcd55507d"},"properties":{"dependency":{"package":"node-forge","version":"1.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"lib/https/ca.js","line":1}}}},{"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":"5ccda73bd0143d5fffd3dfb7039e432d604944b26bd87c7e38e3f0435928ff6c"},"properties":{"dependency":{"package":"ws","version":"1.1.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"test/index.test.js","line":25}}}},{"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":"b8a60c2a85d4d0ffdee273a7ac2abb883436814b517dea8664c3659ca0bb0c28"},"properties":{"dependency":{"package":"json5","version":"0.5.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"lib/config.js","line":15}}}},{"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":"d2fafd7cb42a016d0d4ac880aa10db1aa0f0156cead008fc2e5bd0bc35847575"},"properties":{"dependency":{"package":"uglify-js","version":"2.4.24","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6938b174663ea9622818abd4e2c439d5ee9201adfe9f888506c6daf0e8ecae62"},"properties":{"dependency":{"package":"vite","version":"5.4.21","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3e8a38a547fbcb36d40d6b636f424331ac3f99faa67fed9e3f9e36364c737971"},"properties":{"dependency":{"package":"braces","version":"1.8.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"613622f7032b6d2973c860b2a9fd6d2e703fddc9d44dee17c2c5fc2a34cbec1f"},"properties":{"dependency":{"package":"braces","version":"2.3.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"fa558cd7a508a3ecc9989e9f75107f131b2339911bcd44c663818a2898e413aa"},"properties":{"dependency":{"package":"node-fetch","version":"1.7.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90eec009643a19b88c0620b5e354df8b1b052d71e41cb4d74d18c0bcdffa0ed9"},"properties":{"dependency":{"package":"mime","version":"1.2.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"lib/handlers/file-proxy.js","line":4}}}},{"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":"77caeaf875a2b06605965036df31fc71592f80d2d3dcf62e9012045febbe48de"},"properties":{"dependency":{"package":"color-string","version":"0.3.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7a6c8aec811a2d7ca01dc30175c7ce3e9ebf8b9d90e6e0e2ae64d2e9773685b6"},"properties":{"dependency":{"package":"ajv","version":"4.11.8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ad458e9ededde089a15ba9202d336fc08ee83f427a87ad2185040af6e2b4a160"},"properties":{"dependency":{"package":"bootstrap","version":"3.3.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"production","file":"biz/webui/htdocs/src/js/base-css.js","line":1}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a61f4bb002241456289973a0ef815192c08def762924395bd7765d310887916c"},"properties":{"dependency":{"package":"qs","version":"6.15.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b8c358dc8d0a102f68cd8b004b7e12acc3f0b5e75b4b07410418387a70b6d32"},"properties":{"dependency":{"package":"qs","version":"6.5.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3d819ca819e7022607000cdd10f216263d083cad622844f977825c6723232136"},"properties":{"dependency":{"package":"tough-cookie","version":"2.5.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b5c89c381e01950efddf4750c552ca4e2461beb1bce39dca7c229d99cc334882"},"properties":{"dependency":{"package":"micromatch","version":"2.3.11","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2e19a0d1a131e486f1eb863563112a0e46be6b9dabd4c61baef984c961511701"},"properties":{"dependency":{"package":"micromatch","version":"3.1.10","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1c9df911d37059b3eecb6ecfed6635fef088e2fb629d9316dd47091372cb1227"},"properties":{"dependency":{"package":"request","version":"2.88.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"production","file":"test/util.test.js","line":12}}}},{"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":"8885e84f882b1999eef5e16423d90b0371c8a533427154de084cf018fe61b373"},"properties":{"dependency":{"package":"yargs-parser","version":"7.0.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","SNYK-JS-YARGSPARSER-560381"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"844ee9e41fa9ce4fe620c46bcd8caf24250b0825270972aba151cf6ffecb8920"},"properties":{"dependency":{"package":"decode-uri-component","version":"0.2.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c93c9e9a7508d1bb1d419bfe67a538fbd81572ddc053c684d546cff31ca78570"},"properties":{"dependency":{"package":"uuid","version":"3.4.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a774b698ca2d978ec62a27ddc990959a761f66f7f9945623d465664479c33a31"},"properties":{"dependency":{"package":"mem","version":"1.1.0","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"79774950b11c13badfe51153eefb3ad2cb480422137f4bdf1ad6297206761e7f"},"properties":{"dependency":{"package":"esbuild","version":"0.21.5","advisory":"[GHSA redacted]","reachability":{"kind":"not-imported"}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: add.js \u2194 add.js: \u0060biz/webui/cgi-bin/rules/add.js\u0060 and \u0060biz/webui/cgi-bin/values/add.js\u0060 change together 77% of the time (10 of the 13 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency \u2014 the edge is real but nothing declares it. Read the pair before acting: if one registers itself into the other through a hook or an initialiser, the missing dependency is DELIBERATE \u2014 the registration is the link, and it is meant not to be an import \u2014 and the thing to add is a comment on each side naming the other, not a merge; if they simply belong together, co-locate them; if neither holds, the coupling is hidden and worth breaking. You can check this without leaving the row: of the 10 shared commits counted here, the most recent 3 are \u00600bb5c2bf\u0060 refactor: refine ui; \u0060a615b16b\u0060 feat: refine Rules \u0026 Values group; \u00602ff17c52\u0060 refactor: refine code \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/add.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69a7b419504956b971b59d1e7373f2bb3e9646fc6f585560b560650d485295b"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: get-plugins-sync.js \u2194 get-plugins.js: \u0060lib/plugins/get-plugins-sync.js\u0060 and \u0060lib/plugins/get-plugins.js\u0060 change together 62% of the time (23 of the 37 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 23 shared commits counted here, the most recent 3 are \u00609073718f\u0060 feat: add whistleName option; \u00606594c75d\u0060 feat: load dev plugins; \u0060889a0f55\u0060 feat: add config.notUninstallPluginPath \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/plugins/get-plugins-sync.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f69ea5109533cde2636f2c2b753e62dea71db2e0b58c398e77560463171a1e3a"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: about.js \u2194 plugins.js: \u0060biz/webui/htdocs/src/js/about.js\u0060 and \u0060biz/webui/htdocs/src/js/plugins.js\u0060 change together 55% of the time (6 of the 11 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 6 shared commits counted here, the most recent 3 are \u006007323263\u0060 refactor: refine ui; \u0060fec6706a\u0060 feat: modify docs url; \u006013ab1b07\u0060 feat: darm mode \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/about.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"175cd7a8afb7c6164e58becae0c60b3d12c9b21f0d20e9aad665bfc0ffe5f818"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: bridge.js \u2194 index.js: \u0060biz/webui/htdocs/src/js/bridge.js\u0060 and \u0060biz/webui/htdocs/src/js/index.js\u0060 change together 53% of the time (8 of the 15 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u0060eb80860b\u0060 refactor: refine code; \u0060e1ae0d7a\u0060 feat: refine import data; \u0060aefe4b68\u0060 feat: export rule item \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/bridge.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"230c66499e1e745775e70ea8f017185d460a5fb2f29493137133d72740157017"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: get-data.js \u2194 init.js: \u0060biz/webui/cgi-bin/get-data.js\u0060 and \u0060biz/webui/cgi-bin/init.js\u0060 change together 51% of the time (19 of the 37 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 19 shared commits counted here, the most recent 3 are \u0060b55839bd\u0060 feat: refine Tools/Console; \u00609a29b8b4\u0060 feat: refine ui; \u0060dc3b8cb3\u0060 feat: custom plugins context menu \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/get-data.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a502e647ba4fc3b9f077cce9b47a6ac12555d8eec61921f963c145c50a76e443"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: req-detail.js \u2194 res-detail.js: \u0060biz/webui/htdocs/src/js/req-detail.js\u0060 and \u0060biz/webui/htdocs/src/js/res-detail.js\u0060 change together 50% of the time (23 of the 46 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well, and counted over this repository\u0027s 10,000 most recent commits rather than its whole history \u2014 a repo-wide or module-wide sweep is evidence about the sweep rather than about any pair inside it and is left out of BOTH sides of this ratio, while a dependency bump, a formatter/rename sweep, or a commit whose edit to one of the two files was a tool directive such as //go:generate or whitespace only is left out of the shared count ONLY, so the two sides are not taken over identical commit sets) with no explicit dependency between them. They sit in the same directory, but in this ecosystem each file is its own module \u2014 a sibling reference still needs an import \u2014 so the missing import edge is real: the coupling runs through shared behaviour, not a declared dependency. If they duplicate structure, extract the common part into one unit; otherwise the coupling is hidden and worth breaking. You can check this without leaving the row: of the 23 shared commits counted here, the most recent 3 are \u00609830c161\u0060 fix: https://github.com/avwo/whistle/issues/1293; \u00609f90cdea\u0060 feat: place the Raw tab first; \u0060d5d03caf\u0060 refactor: refine code \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/req-detail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4a101be167b036b5a5fe8a3592cdb4d7c8f6bd3fb67e3df01f65422ed29ec3"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/editor.html"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"f48ea63f6897f4ab223cb55e7fd6b2601e7fcbae785ea0e6396418d04c106bec"}},{"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":"biz/webui/htdocs/editor.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c393b3a432ca86bc4b8aa449f90f1243accf08360edbd867c3e231203fc32ae"}},{"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":"biz/webui/htdocs/editor.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"63586a3b3c30f04d7ce44c8317100db9a8eff6061146e39d44046f3909265b8c"}},{"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":"biz/webui/htdocs/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"28b353e7dc41ccad9fec17824f0aafbc94bce60b512807f42928e85f553b0940"}},{"ruleId":"AC7","level":"warning","message":{"text":"Accessibility enforcement below the top rung: No accessibility enforcement found \u2014 no a11y linter (eslint-plugin-jsx-a11y) and no axe/pa11y/Lighthouse in tests or CI. Start with the linter to catch issues at author time. What was searched, so you can tell an absence from a miss: the 6 markup file(s) this pass actually assessed, the linter configuration checked in beside them, and this repository\u0027s test and CI files \u2014 matched by name against the accessibility checkers this dimension carries. An audit run outside the repository, a hosted scanner, or a check whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d46019b86eff5ddad9db289e6802ac158899e980df54c34f67722442787ead62"}},{"ruleId":"M1","level":"warning","message":{"text":"README may be stale: 232 code files changed in the last 6 months but the README was not touched \u2014 it may no longer reflect the system."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e973e7a8d5d866995cbf78b120250fe7f132bf928812d48ca62e69aba11b9910"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"P1","level":"note","message":{"text":"CI test execution not evidenced: A CI pipeline exists but no test-runner invocation (your stack\u0027s test command, or a test job) was found \u2014 changes may merge without the suite running."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"860902100b1c048f49c648730bdf23459de2d8ca6af82ef0ec593ecb3995a80c"}},{"ruleId":"P1","level":"note","message":{"text":"CI build step not evidenced: A CI pipeline exists but no build step was matched \u2014 changes may merge without the build ever running. A build step may be invoked directly as a command, or declared as a task that a runner named in the pipeline resolves."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"251015acef1a259fcc13b7c60660cc8917ccb3ae8056cb5165ae03312dd586e8"}},{"ruleId":"P12","level":"warning","message":{"text":"Coverage collected but not gated: CI collects a coverage report but no step enforces a minimum \u2014 coverage could halve and CI stays green. Add a step that fails the build when coverage drops below a floor (your coverage tool\u0027s minimum-threshold flag, or a coverage-gate action) so the number guards something. What was searched, so you can tell an absence from a miss: this repository\u0027s CI files AND its coverage configuration \u2014 the well-known coverage and test-runner config files, read at the repository root and inside workspace package directories two levels down, so a floor declared beside the tests rather than in the pipeline is credited \u2014 matched against the threshold settings this check knows by name. A floor set in your coverage service\u0027s web UI rather than in a committed file, or under a setting whose name is not one of those, is not seen here."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"7f63c06044cf998d9a0698692df30d8873e29bc9b0c98ee829255017c1193d33"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s javascript-typescript pack, \u0060semgrep --config=p/typescript\u0060, or eslint-plugin-security as a CI step. What was searched, so you can tell an absence from a miss: the 204 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":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.get(\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. 6 of the 7 files that make outbound calls are unbounded; the first 6 are listed."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bin/whistle.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"8802a7af12cb3c927a5adc4bc7ee89d94cbde30539c7071badd04ca5fcba215d"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.request(\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":"lib/https/index.js"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"635035a3c7920a0ef5dc5ee6d4ce9711a787b75aa0f6a1b468092ee802427b89"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.request(\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":"lib/index.js"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa8606153d906b8b8fae30217bacda501d9df0e1d15d9ad62cb135455b47b0d"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.request(\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":"lib/plugins/proxy.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb46e57684b7a630490a5630be8b3b3a4978bdb9c08607ffbb24017ca5bd8135"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.request(\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":"lib/service/composer.js"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c13fe4b41819157ac5dfc3fc8554384389e431e482dbeceafa9662cac702efc"}},{"ruleId":"P7","level":"warning","message":{"text":"Outbound HTTP without resilience: \u0060http.request(\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":"lib/util/common.js"},"region":{"startLine":1305}}}],"partialFingerprints":{"codehealthFindingId/v1":"b779c46c60184365478d8fefddca81ebb38298013a120fb2d79ca5e7c7f20a6a"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 432 plain JS \u2014 the untyped files are assets/js/log.js, assets/js/weinre.js, biz/index.js, biz/init.js, biz/webui/cgi-bin/abort.js, biz/webui/cgi-bin/add-rules-values.js (\u002B426 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 3 sibling directories (28 clone groups): 28 duplicated blocks under the repository root have copies in at least two of the sibling directories bin, biz, lib \u2014 23 of them are reported below, and 5 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 28 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 28 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 28 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":"biz/webui/htdocs/src/js/is-utf8.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b654e38da6bdfa434ae0855a47c1b79eeb1b0ae5ce5ac16f3220a7079fe5b55"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 7 sibling directories (11 clone groups): 11 duplicated blocks under lib/ have copies in at least two of the sibling directories handlers, https, inspectors, plugins, rules, service (\u002B1 more sibling(s) not listed) \u2014 7 of them are reported below, and 4 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 11 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 11 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 11 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":"lib/inspectors/res.js"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2c6ca93f652998cfe17c87052b8d3f7c2194715df2cad5cd85fdb8e76ac704"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplication concentrated across 2 sibling directories (8 clone groups): 8 duplicated blocks under biz/webui/cgi-bin/ have copies in at least two of the sibling directories rules, values \u2014 4 of them are reported below, and 4 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 8 and which does not depend on how exactly each block\u0027s copies still match. That concentration is one structural fact, not 8 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 8 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":"biz/webui/cgi-bin/rules/export.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"7988dbcfe9bbcb047855f6a34a7916c829e4d47f8da5384257eb8424161ab1aa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (113 matched lines \u00D7 2 locations): biz/webui/htdocs/src/js/request-rule.js:51 \u00B7 biz/webui/htdocs/src/js/response-rule.js:82 \u2014 the two spans are one implementation copied and then locally edited \u2014 693 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":"biz/webui/htdocs/src/js/request-rule.js"},"region":{"startLine":51}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a2ad20fd838fed77fcd551f764da8bee0e4766761b385ba13982fc9248674e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (85 matched lines \u00D7 2 locations): biz/webui/htdocs/src/js/console-log.js:108 \u00B7 biz/webui/htdocs/src/js/server-log.js:47 \u2014 the two spans are one implementation copied and then locally edited \u2014 461 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":"biz/webui/htdocs/src/js/console-log.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabb1e0069aee5824770c9c7b44d359d717b1fdf01f0eb52293e3b5cc208959f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (63 lines \u00D7 2 locations): lib/socket-mgr.js:336 \u00B7 lib/socket-mgr.js:467 \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":"lib/socket-mgr.js"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"763dd1acbd413c1ebf683b8bf4d25eb3744b0f505c15a2243a3691ff253407cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Wholesale file copy (57 identical lines \u00D7 2 files): biz/webui/htdocs/src/js/is-utf8.js:1 \u00B7 lib/util/is-utf8.js:1 \u2014 these 2 files are line-for-line copies of one another \u2014 57 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":"biz/webui/htdocs/src/js/is-utf8.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"560cb6640641c1c85816cc9595eccf749f1d5ca2a58629898404662e74da2645"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (52 matched lines \u00D7 2 locations): lib/inspectors/req.js:105 \u00B7 lib/inspectors/res.js:926 \u2014 the two spans are one implementation copied and then locally edited \u2014 333 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":"lib/inspectors/req.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9e58468d39439847ee84a7f43af7027d98b030db074de1b1047f76354d124b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2 locations): lib/socket-mgr.js:402 \u00B7 lib/socket-mgr.js:531 \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":"lib/socket-mgr.js"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc41724f6e62c13af6e5b4f40054926ec041b4d35461f81ac4f4ad91368dcb6a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (46 matched lines \u00D7 2 locations): biz/webui/htdocs/src/js/export-dialog.js:12 \u00B7 biz/webui/htdocs/src/js/import-dialog.js:43 \u2014 the two spans are one implementation copied and then locally edited \u2014 224 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/export-dialog.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea21d9016e58366482e580236edb74753c9c2de7270e63ab195cca985bceb3c4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (40 lines \u00D7 2 locations): biz/webui/htdocs/src/js/index.js:2975 \u00B7 biz/webui/htdocs/src/js/index.js:3015 \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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":2975}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bc1137c66d326c90946e0f49689cb7df48b6c29f48ef059fb273ffa32195ba1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2 locations): biz/webui/htdocs/src/js/frame-composer.js:245 \u00B7 biz/webui/htdocs/src/js/frame-composer.js:286 \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":"biz/webui/htdocs/src/js/frame-composer.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"3975350447fb29489a46cba4d70e305416bfb5fe0685501f5e43616066618338"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): biz/webui/htdocs/src/js/util.js:1093 \u00B7 lib/util/common.js:1142 \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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":1093}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38a3affc5ac895002aa323a9c034f2f87ca8b00e14da80346a5f99d2173646c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): biz/webui/htdocs/src/js/network-modal.js:288 \u00B7 lib/util/data-server.js:736 \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":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":288}}}],"partialFingerprints":{"codehealthFindingId/v1":"627a1a413f73937d8648315796f122f3ae37e9d31f2493d0ec5d84d953509d86"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2 locations): biz/webui/htdocs/src/js/index.js:1195 \u00B7 biz/webui/htdocs/src/js/index.js:1230 \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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"4788acbde46020fd321718ac234efe89d879b4116f6a11ab161812f037b80fcf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (29 lines \u00D7 2 locations): lib/plugins/load-plugin.js:2127 \u00B7 lib/plugins/load-plugin.js:2157 \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":"lib/plugins/load-plugin.js"},"region":{"startLine":2127}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd969e41600654858a8f66fb2078a178000eab920ead92f88b77a2291244a92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): biz/webui/htdocs/src/js/list-modal.js:181 \u00B7 lib/rules/storage.js:438 \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":"biz/webui/htdocs/src/js/list-modal.js"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa66d8bb1d32e81adf1404ca448fdbdd7bec1404be805d8e1ef4f78aaf7a36a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): biz/webui/htdocs/src/js/util.js:2253 \u00B7 lib/util/common.js:1353 \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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":2253}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73da0d0f058bf2ac35bd6d5fcf8c6d6091428604c46bac409a08f5b11c7f0f2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (28 matched lines \u00D7 2 locations): biz/webui/htdocs/src/js/util.js:771 \u00B7 lib/util/index.js:1498 \u2014 the two spans are one implementation copied and then locally edited \u2014 140 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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd0f2408a02679a2a3fc86b934766f90a4f0de86f2a580630ddbf9ae008184b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 3 locations): biz/webui/htdocs/src/js/network-modal.js:517 \u00B7 biz/webui/htdocs/src/js/network-modal.js:568 \u00B7 biz/webui/htdocs/src/js/network-modal.js:596 \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":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"255383c9d07ba3717849066d108d94261850b230542c3ba4acaeb6d62f93ed4f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): biz/webui/htdocs/src/js/tool-box.js:169 \u00B7 biz/webui/htdocs/src/js/tool-box.js:216 \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":"biz/webui/htdocs/src/js/tool-box.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3b62afb937b098f2fe40690203f4ce4925f170c5898f2591effd5b36ea4f068"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (25 matched lines \u00D7 2 locations): biz/webui/cgi-bin/rules/export.js:4 \u00B7 biz/webui/cgi-bin/values/export.js:4 \u2014 the two spans are one implementation copied and then locally edited \u2014 168 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":"biz/webui/cgi-bin/rules/export.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"472dbbac5b47dbf963711dff620b784301a61f76f9603b561a6bb5b0d16334a5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): lib/plugins/load-plugin.js:2513 \u00B7 lib/plugins/load-plugin.js:2538 \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":"lib/plugins/load-plugin.js"},"region":{"startLine":2513}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03ff31fc53913c54fbc2e72674a6558bc26043b4f6045fa7075cc43c310b844"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): biz/webui/htdocs/src/js/index.js:3265 \u00B7 biz/webui/htdocs/src/js/index.js:3288 \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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":3265}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d2455cc4dc080a25b759897f64417a8d56c07c1bcc52769091a3c5fe2aea968"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (23 matched lines \u00D7 2 locations): biz/webui/htdocs/src/js/modal.js:112 \u00B7 biz/webui/htdocs/src/js/modal.js:144 \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":"biz/webui/htdocs/src/js/modal.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc77030ce08b1df52bd7d25ce7b531b54cd38ca72b07f62aca74129be33a75e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): biz/webui/htdocs/src/js/network-settings.js:371 \u00B7 biz/webui/htdocs/src/js/network-settings.js: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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/network-settings.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d8232bf75be5324a0c5fc8059a3c46c729c1a15a7dbb20e30b5389cacf88716"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): lib/inspectors/data.js:276 \u00B7 lib/inspectors/data.js:361 \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":"lib/inspectors/data.js"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad4801ccf34f6bbb6099abd50f275f8839e81f08135749f44d9ccba75d341a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): lib/util/data-server.js:666 \u00B7 lib/util/data-server.js:852 \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":"lib/util/data-server.js"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4579a3bafc89999b8355cd6d99e21d0c68914ce374e013d845a72fdc3c3275b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): biz/webui/htdocs/src/js/sync-dialog.js:40 \u00B7 biz/webui/htdocs/src/js/sync-dialog.js:62 \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":"biz/webui/htdocs/src/js/sync-dialog.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"0354b7066ccab2938e83ba715013685a116efd32c0c388cba017175e3ecd030d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (21 matched lines \u00D7 2 locations): biz/webui/cgi-bin/rules/list2.js:1 \u00B7 biz/webui/cgi-bin/values/list2.js:1 \u2014 the two spans are one implementation copied and then locally edited \u2014 123 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":"biz/webui/cgi-bin/rules/list2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"598d06d01e5869f4173ecb9739fada9001ec129adc88e9380cf4d365be01517f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): biz/webui/htdocs/src/js/list-modal.js:493 \u00B7 biz/webui/htdocs/src/js/list-modal.js:515 \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":"biz/webui/htdocs/src/js/list-modal.js"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5b1368738f5efd8268520ceedff2e3695fe904e30c958209b05b9cacbf6be3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): biz/webui/htdocs/src/js/util.js:1141 \u00B7 lib/util/common.js:1198 \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":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"601bc24ce814bb245adb537050f72b658874dbe67f7738d0b6ab528abb617f74"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (21 matched lines \u00D7 2 locations): lib/plugins/get-plugins-sync.js:143 \u00B7 lib/plugins/index.js:385 \u2014 the two spans are one implementation copied and then locally edited \u2014 108 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":"lib/plugins/get-plugins-sync.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd626a2631fc954b6713602043e5877e7ae58fd6260eba3ed8d391d86d1d2ce"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (21 matched lines \u00D7 2 locations): lib/util/replace-pattern-transform.js:13 \u00B7 lib/util/replace-string-transform.js:7 \u2014 the two spans are one implementation copied and then locally edited \u2014 156 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":"lib/util/replace-pattern-transform.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"b286f50746f2e5f3d527aba1f2fc6d604f46dd8bee60d826122e3f1e972ceba8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): biz/webui/htdocs/src/js/index.js:2838 \u00B7 biz/webui/htdocs/src/js/index.js:2910 \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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":2838}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2406ce2ff35a4437cd0980329b84e694f64129d72e86877579af224f7c0580"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): biz/webui/htdocs/src/js/req-detail.js:40 \u00B7 biz/webui/htdocs/src/js/res-detail.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":"biz/webui/htdocs/src/js/req-detail.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ba777891220ba5229108d02cf935a4ff5bf0be938566af679fefc9f68056ce7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): biz/webui/htdocs/src/js/req-type.js:69 \u00B7 biz/webui/htdocs/src/js/req-type.js:87 \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":"biz/webui/htdocs/src/js/req-type.js"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c5283864548eb62eab118bbeaf941fd95a8af4ef97840d4bcd8505e8123612b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): lib/inspectors/req.js:477 \u00B7 lib/inspectors/res.js:844 \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":"lib/inspectors/req.js"},"region":{"startLine":477}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4b6219fe60d14ab4c7d17abc0c42b7a769b535b4115bd9fa2fc192927320eca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): lib/plugins/get-plugins-sync.js:41 \u00B7 lib/plugins/get-plugins-sync.js:66 \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":"lib/plugins/get-plugins-sync.js"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e50ba1d8a28d78dd0d81072f1ec82d3345343d3caa3b5225b37068d27bdffa2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (17 matched lines \u00D7 2 locations): biz/webui/htdocs/src/js/index.js:508 \u00B7 biz/webui/htdocs/src/js/index.js:790 \u2014 the two spans are one implementation copied and then locally edited \u2014 108 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d551bcfd23069c4a99bab947f28b745fb51d1f807b821de78d8c17887ecebea"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: biz/webui/htdocs/src/js/base-css.js:5 imports bootstrap/dist/js/bootstrap.js, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/base-css.js"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"9330cd953a1982ffc92a9a319904406d7e1418984a14240443f5bf8d1df4cde2"}},{"ruleId":"R11","level":"warning","message":{"text":"Boundary violation [package:third-party-deep-import]: biz/webui/htdocs/src/js/req-data.js:4 imports react-virtualized/dist/umd/react-virtualized, reaching past a declared dependency\u0027s public entry into its build output \u2014 that path is the package\u0027s toolchain layout, not its API, and a minor version bump can relocate it with no semver signal. Import from the package\u0027s documented entry point instead."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e7e93ed860126432dd5b1635b58f90d3358023c19edf1e9f0b05bf0cfd40974"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function extend (cyclomatic 131, cognitive 162): extend has cyclomatic complexity 131 and cognitive complexity 162; 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":"lib/config.js"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"cafc2637ba07d7bd603854f05eb5afc15451e47c34350c70073ba1078a8e1366"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 102, cognitive 198): (anonymous) has cyclomatic complexity 102 and cognitive complexity 198; 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":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8609af690cdbb87cff4a016bc2ab2e1e4b3a75a4f6dae2a670c8bfa2bf2104a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 75, cognitive 137): (anonymous) has cyclomatic complexity 75 and cognitive complexity 137; 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":"lib/rules/rules.js"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"0187438698430e82a079997687b170bc94f499b84e02ad39fd62cce98fea1a19"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 74, cognitive 79): render has cyclomatic complexity 74 and cognitive complexity 79; 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":3942}}}],"partialFingerprints":{"codehealthFindingId/v1":"993e6af1ecba10aca36cba257a2113826d8710df6d3df4588c3a1a51d6220c48"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 71, cognitive 131): (anonymous) has cyclomatic complexity 71 and cognitive complexity 131; 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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":1447}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd3dd5adeed874d2e8711bf5c8a0a2e20ccd671c22c0069031889d5b4ad9d58c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveVarValue (cyclomatic 66, cognitive 33): resolveVarValue has cyclomatic complexity 66 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":"lib/rules/rules.js"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"bdab3780a1d0c805c477a5b34b76bf747768c0ab1c4db50957c3261cbece1ac2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveRuleList (cyclomatic 65, cognitive 134): resolveRuleList has cyclomatic complexity 65 and cognitive complexity 134; 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":"lib/rules/rules.js"},"region":{"startLine":918}}}],"partialFingerprints":{"codehealthFindingId/v1":"142342039c21bf47a06bc8b7510266e580aecfb1c9fbe2dcd51558f96bc12211"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 61, cognitive 57): (anonymous) has cyclomatic complexity 61 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 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":"lib/config.js"},"region":{"startLine":767}}}],"partialFingerprints":{"codehealthFindingId/v1":"555825d8839af1beb07c96d50bef2183489db43179fa76651444be1fb66c2d47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 58, cognitive 118): (anonymous) has cyclomatic complexity 58 and cognitive complexity 118; 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":"lib/inspectors/res.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"359cb22335f611ed6cfb918f50dfce63e61d843a2f1d01007eb7915e59a5c6d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onClickContextMenu (cyclomatic 58, cognitive 22): onClickContextMenu has cyclomatic complexity 58 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f01a412761fbe664b90ff673fa6d85fcdcd3fe0a354a0cb8580b97efdc3b460"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseRule (cyclomatic 57, cognitive 75): parseRule 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":"lib/rules/rules.js"},"region":{"startLine":1222}}}],"partialFingerprints":{"codehealthFindingId/v1":"666bb361ea89b37daf5398059475ce626ee08ac08f1ec77879fd6b4c5940d14e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 57, cognitive 74): render has cyclomatic complexity 57 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 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":"biz/webui/htdocs/src/js/res-detail.js"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"4941f014995d47f737fb5da8ae66e53988ee401d8d6545fa4c4a01c1c357bf6a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 55, cognitive 68): (anonymous) has cyclomatic complexity 55 and cognitive complexity 68; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1163}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ac165d5ee0c7ad5ef87933389b958451959276ab3b381a13130a432b5803de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initServers (cyclomatic 55, cognitive 27): initServers has cyclomatic complexity 55 and cognitive complexity 27; 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":"lib/plugins/load-plugin.js"},"region":{"startLine":1608}}}],"partialFingerprints":{"codehealthFindingId/v1":"061007f0a39cb5662c0a932effddd35d02e5fb0c6f3990a05ffe0474bbc7a31a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isUtf8 (cyclomatic 52, cognitive 52): isUtf8 has cyclomatic complexity 52 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":"biz/webui/htdocs/src/js/is-utf8.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"855a5dcf8a59cabb6ce8c00fa7ae16bc49f925656fedd2871bed3bf79fec6983"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isUtf8 (cyclomatic 52, cognitive 52): isUtf8 has cyclomatic complexity 52 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":"lib/util/is-utf8.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"acf9188f6f12355d18f0c239fb6b27ff37b9eb1f96825c8f037fbf5425fd9c63"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function matchFilter (cyclomatic 48, cognitive 81): matchFilter has cyclomatic complexity 48 and cognitive complexity 81; 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":"lib/rules/rules.js"},"region":{"startLine":1812}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e865fe89769f207850e04731427ce9f07570bcb15dbd2adddcf009d4f31f156"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setReqData (cyclomatic 46, cognitive 62): setReqData has cyclomatic complexity 46 and cognitive complexity 62; 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":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"09faafb67295a953befe2128cc15e7c733883609b44226e724f88316b9a47125"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function exports (cyclomatic 45, cognitive 93): exports has cyclomatic complexity 45 and cognitive complexity 93; 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":"biz/index.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"be94c5d08062bc9923a3b5838344d910d8254558fd6fb3824009be2c4653def3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onContextMenu (cyclomatic 45, cognitive 50): onContextMenu has cyclomatic complexity 45 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":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"184a329f94d8cf0a588d03d0e02a7202f2965e89517a913ecd91333fe11c97bc"}},{"ruleId":"R3","level":"warning","message":{"text":"Large Files: 42 file(s) over 400 lines (counted as significant lines \u2014 blank lines excluded \u2014 over production source only, tests excluded), largest first: biz/webui/htdocs/src/js/index.js (4797), lib/util/index.js (3630), biz/webui/htdocs/src/js/util.js (3276), lib/plugins/load-plugin.js (2554), lib/rules/rules.js (2358), biz/webui/htdocs/src/js/data-center.js (2103) (\u002B36 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"cecee31b569df4f07e06db732f1ca037af27b5afef9023da51f9673d931a142f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"123a190a01e5fe7748fd1d7717bc556743e9778b3b41d73224a45ef2e7620f83"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6211fbb9619337403c6a4e26cd6765145f49ae42b913075c197a90373a84b3e2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/plugins/load-plugin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5001a2ce5aaaba6a13801f7ddcd3228bb86358f4697d37e8b0b329930979389f"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/data-center.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6290a8012a42937e6bc07733fd94d4d9e54f7724e33d3a60425564e1b0c064a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/req-data.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ad1d9648012ba15050d473126ec4e7bd9b4cfe1b297164763fa0afbf34dde50"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/composer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07dc4fdd908a5612d34a1784f437d6986f3f65a22b0ce0853138e0aacd2980b7"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/inspectors/res.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4355654c133a780b251926c6b56a522bb017f518e06e531f32b27e67d1196145"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/network-modal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae76bbfe31171a7c3aeffc83d05bdac7839d5a91cf69e4c20a7e8bb7c30117aa"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/plugins.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"863fd9287f8599f5285c477ab97702ffcbde4350f6b3e012c6bc1d3a0022fbb1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/rules-hint.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93c93b44f6884f691be252decbe6c75285ff40003e2fac34130e7cffe4522e1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4c591da3aada14312cd0cc4e308e436f8fc63c059e93a243a58dd5b9d6bdbd"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/online.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba8dd4abeb8e90e83e67f3f080c32a73bdfc63c05bdd76eee1d9ed61f328b1fe"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bin/api.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"79544e915c82c71f9590d702ddf0eb19f68fca212bf7b3c911aa64fe9415247a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/service/service.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7f28359d4d470b0eeda62a8cd0f5bca127c07a9cb2725a90c5b0fed73a5089"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/inspectors/req.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e0ac8c8feec9b8e7ce3ddbfa46f857bc591439500bb8d9e4dffaec3a3513b09"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/list-modal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"830ecde89333780e590a0caa239454f9a0bb738009e0189e7cdbafb2c5771c2c"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/editor.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fed2ac414ceed795b3b2f7bc033da78605470eb373c8c807f4c1ab3c7b4d4306"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/network-settings.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1907389af896ea3c03e85ad3354eb9186481571ef445f241987c5327e000d918"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/inspectors/data.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5eca22470afe37c41c19c1c1b4c16a6221decb65a84f6d099e2728ece7d0369"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/editor-dialog.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ea43d1dc4d61cb151b4b019d7e45259b14452c654b264ab5272391f35281eda"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/service/composer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e7cd103192c576d9afce02a47621224ea3c0a4936074cd62b37c100ec994bd4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/service/util.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"758eeccf4bf1cd424ce9332a97c7f53b913cf6123679390207227d014cacd9df"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/frame-list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea92d164304c2718679c2f1e7de97b6b571f5652723925f6739562212c47d22"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/props-editor.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"419f3427d29d5e20d0690c5d397b59b282a28666a8deb315671a12df96143cfc"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"assets/js/log.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"06ecf8ae036c2d2c37733eaf3db235676139e75e23dc6fdfdd2b0f6a6a5d7e35"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/columns.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0854c8a47698841bb031daa0c104ddabcbed095d6c7b1fba51167d06474b951"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/url-input.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6695db77cf82900ffe0cb09705b8bd7be70be1984d58dd97c3e04d71949f53b4"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/rule-mixin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d56f89139aacd7f2a34b07388fb4906fe92ecc84dd68ae0b5f7cfd4f07797b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/handlers/file-proxy.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3405f891ec8d740354be7cc96658d1c94db962679b76fc335a18d906f159dc9a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/rules-dialog.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd40c5e0f910c7885ff240b5587ca151c17bf164eb5d769ce9620dd52774ad1"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/list-dialog.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ff1cbba03dd5f5cb29baee5fc3452f5068b9fdfb7dd0c396735700f9b4d7eb0"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/create-rule.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4179c25ee2a5724bb4ac18b6ac57683cec0372be31f2291cc7cc5c6db80dec2a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/filter-input.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"287317165aee060bda07b09fae664a754eaf70f2d7e5ae005e4ce5865902910b"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/frame-composer.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ee1d598b445f0452cd0197c102ac523ad90ea7b1149cb570c675f1277b12b8"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bin/use.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50066a956e0b6cf8198338ce607ed3a00b968664c341b86e685edc2bafdf42c2"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/certs-info-dialog.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"611eef214e28286b0adcb1fefdd93208329f5cc12977bcb4b62e471909df0b4d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/res-detail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8b86af97a1b1d656216b10b6f6f661735378fe7c87945ac566affda39c8651a"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bin/plugin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7781f363eef2bd93b66ba8e087feead2ac5a0880498c93911eb2b1c5ed8b5366"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/detail.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"980ed86d313d6232e84d4332177aad5261f0bfe6640ac13939ff0a980f06583d"}},{"ruleId":"R4","level":"warning","message":{"text":"No test reaches this file: No test imports this module directly or transitively. Import reachability cannot see a test that executes a file by path instead of importing it, nor one that drives it through a running browser by navigating to a URL \u2014 if neither does, no test reaches this one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/test-rule.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"13845d0d02e635f2b3bf847236d5518baa55ad706983bf0e4c4127a8e49a45e7"}},{"ruleId":"R6","level":"warning","message":{"text":"No typecheck script: test \u2713 \u00B7 lint \u2713 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"912edc7f1fd20bf80ef68c3293e3048565115e48707dc5f9d492201598794658"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~629 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"bin/api.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c35785741cbdd64d22b2459bbba00d15a0a55bc7a88c38d27b1aeadc48f200"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~46 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/init.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8504717455baefdc72112dc21c0dd8f2e823d4d973cf66097d311b897567dd0b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~38 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/create-cert.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1151fd9f64dba7edc31f8f7bf44c7bb30fe030ebd16656c237ba11f9514c87f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~37 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/add.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1905a2c0e1dac733aef6c60620d42df7b8fe194d9803910062e38d4bf1d7a75c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~37 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/project.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"71abdcc3a815680e5c64f8a10afd6c318441c552e88b4db0412d1084a2c22c7c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~34 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/get-session.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05bed13f3b225ed37dda20e300b6c18f5205e140a530acb0e2613601b787af3b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~34 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/export.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f96b40930ce22f0399e911360887ba36d42b5979f4e9f2a6860475f10fa764cf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~31 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/values/add.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12123f756a0d5bfa75a6f0770875cce5e2c612972721293630f7d1d7d33818e"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~29 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/values/export.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8fff2104c3d132cf64c6486fa6c7147aa151aa2dd44dd9fd55d799c1bae51d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~25 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/plugins/uninstall.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"352225d0ea3285e5c26eae6e8200964d6a64c301b63e902a2f3b5cbc09b32f91"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~23 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/plugins/disable-plugin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42ef0cd522db8a6183d70a97584e6e35ee2852acf836d8ba999fac96aa9324c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~22 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/add-rules-values.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfb6055b2889bf8de3829b7f64b23cd028f86caf59cea4ecb46f0a2850bcb90"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~22 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/get-cert.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f269a40692c305de6c66373a446158c3185471fcf89a33fa27b566bc39629649"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~21 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/plugins/plugin.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c38beb614d616faf3320332166407b7ae4d1beb012d8e0010b2897efba91cfc3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~21 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/plugins/status.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98ce5943224e47a05dc6aa2256ae23a2940bcabdbbb78b5ca6330855dfae2327"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~19 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/value.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5483f0722b5859b3094a3698671ba0ad332b643023c7de76894e137da757b9c3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~18 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/unselect2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0c9770c46f8148bf2f7668d3a087202481128158ce2de8668e20eac4af36bbf"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~17 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/plugins/list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"920e42384b30476ca7e88bb4732639dcb61359dc9bddb9aeadce2196756aecc2"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~17 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/set-custom-column.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4137073f4d30e85809ed3b24b20a96fec35527648c60c7a86fe9739bbb38037"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~16 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/select.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ad87a84891ae95a267318d0986014649d48929a655e5beeed797f1e586c7c26"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~16 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/select2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"621c5c784495df8c33e5f13eb6f37118d207da409970f58e70b1699611058683"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~14 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/get-frames.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1e67a07b9c0ebb17997f1ec2ae7b9f36904b3a85f75f7be320a97828779a0b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~14 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/get-matched-rules.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd606771dca6e610f464e16775580cd1c2e52d34742a4571d9e985ae1d20247c"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~14 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/import.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"48017193079136ef13a509f5302edcd6c8a3fc055a85cc5a49930919c9dd49c9"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~14 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/values/import.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdfed0e30f26229e6fedf5b6a81a27cd7f474b74f3d9c0c3da1eafb8bda51c75"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~13 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/custom-frames.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fd1898f44629eadef1abef0d095dd0cbbadc390c1c4eb214210c8fdcd06631"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~12 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/frames.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddc71789f0913125a0baab60706494a37430dd3e029608fa2ca185a0474d5dd1"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~11 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/move-top.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"74f409eb9956a1626c14f711029cc6518e731e0d7115413494f6717cfc944fa3"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~11 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/values/get.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d25c75c3ec5a9e3c59ddf1eafa59fb79ffb249e028def6c562b80e28a845066"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~10 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/enabled.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5405211faeaa5e0bbb8f87f18d94f72ca844656f223e062a2e0008bde114ad8b"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/cookies.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2c649dc97e631a9dceaaa2304db056f9ae3076cb04310a34641a8a9ff3bd5a"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/https-status.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"595c1b76a4c9d982aa996ad334120221bc1c4576dd99d37de3d4ecd8ae4014b5"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/allow-multiple-choice.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7633d267e06b2ffdf89e18072ff9ca9e65d93a9cd027dde5f1dddd5c01dbed2d"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/recycle/list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e9509b1b0b22a166a84f543dc626809253223c9a202911c546e5e8be1983013"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/recycle/remove.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98521e663b5c300dff9468b53220884e7835a744a1445d0537ee06ff04bc3721"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/rules/recycle/view.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"120a71b16df9f2cf0e2014a13cb63e3ae6909053f37e776d096959ebd1374153"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/set-dns-order.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12c851333ea277eabc7e4c7065814d5b2408d0e73d18afbc1e594197888b0df"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/values/recycle/list.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80ef4a93e28a259176ea6cc1179ce395f01b32fb0761cf9065ad80d2fa23f0f"}},{"ruleId":"R7","level":"warning","message":{"text":"Dead file (~9 LoC): no import path from any entry point (138 application, 5 tooling, 121 test roots considered), and no other file in the scanned tree imports it \u2014 nothing in-repo names this module at all, which is the strongest form of this claim the import graph can make"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/cgi-bin/values/recycle/remove.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1cab50b53ff18ac459e96f26edc6544f655c665bffea78252637b7e657a3a52"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027coveralls\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"b6da4f6319cac2627a5be520ed51a0f22f2148ae243d34b4e592be18ac6687a3"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027istanbul\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ae725c88e4a38c6a84ce80fc6652695f7e38861516298c649e84ccdaeb2e3b59"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027tape\u0027: Declared in the root package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"e5b83c6770ee2d8a0849c801e997fc7d89bfcbc40c77a069819cbfaf567f7f66"}},{"ruleId":"R9","level":"error","message":{"text":"Import cycle (3 files): lib/rules/index.js \u2192 lib/rules/rules.js \u2192 lib/rules/util.js \u2192 lib/rules/index.js"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/rules/index.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5a00c384894f1bb2af2d504eb19f02cffe44d46f3a8df5b6ffbda8a6ceab6b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!config.notAllowedDisablePlugins \u0026\u0026 properties.get(\u0027disabledAllPlugins\u0027)\u0060 appears character-identically in 2 files \u2014 biz/webui/cgi-bin/get-data.js, biz/webui/cgi-bin/init.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":"biz/webui/cgi-bin/get-data.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4690c426c1f98821131c7c0350f97c2aa362d020a07c71ece51a052da303a403"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!config.notAllowedDisableRules \u0026\u0026 properties.get(\u0027disabledAllRules\u0027)\u0060 appears character-identically in 2 files \u2014 biz/webui/cgi-bin/get-data.js, biz/webui/cgi-bin/init.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":"biz/webui/cgi-bin/get-data.js"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d156fe64a4a0789a01fe8eaa9bcada66fa6c860a2c9dc5d22bae3051d9115f6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!util.isEnable(req, \u0027keepAllCSP\u0027) \u0026\u0026 util.disableCSP(_res.headers)\u0060 appears character-identically in 2 files \u2014 lib/inspectors/log.js, lib/inspectors/weinre.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":"lib/inspectors/log.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"29097bc1fe5b19333c50aacf5e961203a0cd5821f92f9347bc07c7959006f404"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060c === \u0027EPROTO\u0027 || c === \u0027ERR_SSL_BAD_ECPOINT\u0027 || c === \u0027ERR_SSL_VERSION_OR_CIPHER_MISMATCH\u0027 || String(e.message).indexOf(\u0027disconnected befor\u2026\u0060 appears character-identically in 2 files \u2014 lib/util/common.js, lib/util/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"lib/util/common.js"},"region":{"startLine":1751}}}],"partialFingerprints":{"codehealthFindingId/v1":"954597480bdcee5f3768de34b020da5dc3ed7d96158b20b08e1ff84388b4f054"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060domain \u0026\u0026 typeof domain === \u0027string\u0027 \u0026\u0026 domain.trim()\u0060 appears character-identically in 2 files \u2014 biz/webui/cgi-bin/create-cert.js, biz/webui/cgi-bin/get-cert.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":"biz/webui/cgi-bin/create-cert.js"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d65cbba0c969b39aafc8800e728081aedb87d32dc2648305321bfe962b47fdb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060e.target.nodeName != \u0027INPUT\u0027 \u0026\u0026 preventBlur(e)\u0060 appears character-identically in 2 files \u2014 biz/webui/htdocs/src/js/index.js, biz/webui/htdocs/src/js/req-data.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":"biz/webui/htdocs/src/js/index.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"e319b2a2fb1a5a395702ea00b9ea143691a69ee40b423b1cdf194b3a08ffddf6"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060key.indexOf(\u0027x-whistle-\u0027) === 0 || key === \u0027proxy-authorization\u0027\u0060 appears character-identically in 2 files \u2014 lib/plugins/index.js, lib/plugins/load-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":"lib/plugins/index.js"},"region":{"startLine":867}}}],"partialFingerprints":{"codehealthFindingId/v1":"70fa62996fa8df2127852edee956e35465ade31716402166edb80a33f5ac6df2"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060str \u0026\u0026 str.replace(CONTROL_RE, \u0027\u0027).trim()\u0060 appears character-identically in 2 files \u2014 biz/webui/htdocs/src/js/util.js, lib/util/index.js. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"biz/webui/htdocs/src/js/util.js"},"region":{"startLine":3412}}}],"partialFingerprints":{"codehealthFindingId/v1":"596400157f47cf5e0deaff06f4cf96c70da3b9e4224408ce758f3ba3b2815ceb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060str \u0026\u0026 typeof str === \u0027string\u0027 \u0026\u0026 str.trim()\u0060 appears character-identically in 2 files \u2014 lib/config.js, lib/util/common.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":"lib/config.js"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bc922363c1531c9a6d9172265a9c8f97f112c07cc901ee16ec598f784499a74"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof s === \u0027string\u0027 \u0026\u0026 toNumber(s) === false\u0060 appears character-identically in 2 files \u2014 index.js, lib/plugins/proxy.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":"index.js"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9131389b2aef22e9cef9c8c4be8fdf3066df954057da432b95fdd6b836f9b49"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060util.isStr(protocol) \u0026\u0026 protocol.indexOf(\u0027\u003E\u0027) !== -1\u0060 appears character-identically in 2 files \u2014 biz/webui/htdocs/src/js/overview.js, biz/webui/htdocs/src/js/timeline.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":"biz/webui/htdocs/src/js/overview.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"0524295572050d9b0f52b7396b6fceb97a120fd3381c263b03d5011e8f1aa054"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060encode\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":"lib/util/parse-url-safe.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b29e568bae8b8480ca9f3c37ef72279bf33534bd787732bb8b853cf1749cb95"}}],"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-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-1321","guid":"0367a99b-2a5d-7b52-a83b-6f4196022556","name":"CWE-1321","shortDescription":{"text":"CWE-1321"},"helpUri":"https://cwe.mitre.org/data/definitions/1321.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-22","guid":"b68d9ca7-bdde-d057-a6cc-9f8b1e739552","name":"CWE-22","shortDescription":{"text":"CWE-22"},"helpUri":"https://cwe.mitre.org/data/definitions/22.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-346","guid":"07c355cb-45b6-d05e-8a2c-9f686bc45618","name":"CWE-346","shortDescription":{"text":"CWE-346"},"helpUri":"https://cwe.mitre.org/data/definitions/346.html"},{"id":"CWE-457","guid":"b62874fe-6222-8b5b-8ade-9527ad1cbb4a","name":"CWE-457","shortDescription":{"text":"CWE-457"},"helpUri":"https://cwe.mitre.org/data/definitions/457.html"},{"id":"CWE-494","guid":"b8a65e0d-e459-4a55-a931-fc1136482375","name":"Download of Code Without Integrity Check","shortDescription":{"text":"Download of Code Without Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/494.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"CWE-506","shortDescription":{"text":"CWE-506"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Command Injection","shortDescription":{"text":"Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"OS Command Injection","shortDescription":{"text":"OS Command Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Cross-site Scripting (XSS)","shortDescription":{"text":"Cross-site Scripting (XSS)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"SQL Injection","shortDescription":{"text":"SQL Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Code Injection","shortDescription":{"text":"Code Injection"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":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."]}]}