{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D5","name":"Coupling","shortDescription":{"text":"Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D5"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D8","name":"Code Coverage","shortDescription":{"text":"Code Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/D8"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D11","name":"Test Reliability","shortDescription":{"text":"Test Reliability"},"helpUri":"https://codehealth.canine.dev/dimensions/D11"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D14","name":"License Compliance","shortDescription":{"text":"License Compliance"},"helpUri":"https://codehealth.canine.dev/dimensions/D14"},{"id":"D15","name":"Churn \u00D7 Complexity Hotspots","shortDescription":{"text":"Churn \u00D7 Complexity Hotspots"},"helpUri":"https://codehealth.canine.dev/dimensions/D15"},{"id":"D17","name":"Explicit Debt","shortDescription":{"text":"Explicit Debt"},"helpUri":"https://codehealth.canine.dev/dimensions/D17"},{"id":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D20","name":"ADR Quality","shortDescription":{"text":"ADR Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D20"},{"id":"D21","name":"Naming Consistency","shortDescription":{"text":"Naming Consistency"},"helpUri":"https://codehealth.canine.dev/dimensions/D21"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D26","name":"Project Cohesion","shortDescription":{"text":"Project Cohesion"},"helpUri":"https://codehealth.canine.dev/dimensions/D26"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D36","name":"Supply-chain Provenance \u0026 Signing","shortDescription":{"text":"Supply-chain Provenance \u0026 Signing"},"helpUri":"https://codehealth.canine.dev/dimensions/D36","relationships":[{"target":{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1357","CWE-494"],"owasp":"A03:2025"}},{"id":"D37","name":"Vulnerability-disclosure Policy","shortDescription":{"text":"Vulnerability-disclosure Policy"},"helpUri":"https://codehealth.canine.dev/dimensions/D37","relationships":[{"target":{"id":"CWE-1059","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1059"],"owasp":"A02:2025"}},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"D44","name":"Platform End-of-Life","shortDescription":{"text":"Platform End-of-Life"},"helpUri":"https://codehealth.canine.dev/dimensions/D44"},{"id":"AC1","name":"Text alternatives","shortDescription":{"text":"Text alternatives"},"helpUri":"https://codehealth.canine.dev/dimensions/AC1"},{"id":"AC2","name":"Forms \u0026 labels","shortDescription":{"text":"Forms \u0026 labels"},"helpUri":"https://codehealth.canine.dev/dimensions/AC2"},{"id":"AC3","name":"Page structure","shortDescription":{"text":"Page structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AC3"},{"id":"AC4","name":"Keyboard semantics","shortDescription":{"text":"Keyboard semantics"},"helpUri":"https://codehealth.canine.dev/dimensions/AC4"},{"id":"AC5","name":"ARIA correctness","shortDescription":{"text":"ARIA correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/AC5"},{"id":"AC6","name":"Visual \u0026 motion safety","shortDescription":{"text":"Visual \u0026 motion safety"},"helpUri":"https://codehealth.canine.dev/dimensions/AC6"},{"id":"AX10","name":"Code composition","shortDescription":{"text":"Code composition"},"helpUri":"https://codehealth.canine.dev/dimensions/AX10"},{"id":"AX2","name":"Stateful singletons","shortDescription":{"text":"Stateful singletons"},"helpUri":"https://codehealth.canine.dev/dimensions/AX2"},{"id":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX5","name":"Architecture \u0026 structure","shortDescription":{"text":"Architecture \u0026 structure"},"helpUri":"https://codehealth.canine.dev/dimensions/AX5"},{"id":"AX6","name":"Interface segregation","shortDescription":{"text":"Interface segregation"},"helpUri":"https://codehealth.canine.dev/dimensions/AX6"},{"id":"AX9","name":"CQS / query purity","shortDescription":{"text":"CQS / query purity"},"helpUri":"https://codehealth.canine.dev/dimensions/AX9"},{"id":"ED3","name":"Event naming","shortDescription":{"text":"Event naming"},"helpUri":"https://codehealth.canine.dev/dimensions/ED3"},{"id":"ED4","name":"Outbox / dual-write","shortDescription":{"text":"Outbox / dual-write"},"helpUri":"https://codehealth.canine.dev/dimensions/ED4"},{"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":"P5","name":"DR \u0026 Backup","shortDescription":{"text":"DR \u0026 Backup"},"helpUri":"https://codehealth.canine.dev/dimensions/P5"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"P7","name":"Outbound HTTP resilience","shortDescription":{"text":"Outbound HTTP resilience"},"helpUri":"https://codehealth.canine.dev/dimensions/P7"},{"id":"PF3","name":"Async \u0026 latency hygiene","shortDescription":{"text":"Async \u0026 latency hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/PF3"},{"id":"R1","name":"Type Safety","shortDescription":{"text":"Type Safety"},"helpUri":"https://codehealth.canine.dev/dimensions/R1"},{"id":"R10","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/R10"},{"id":"R2","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/R2"},{"id":"R3","name":"Large Files","shortDescription":{"text":"Large Files"},"helpUri":"https://codehealth.canine.dev/dimensions/R3"},{"id":"R4","name":"Test Coverage","shortDescription":{"text":"Test Coverage"},"helpUri":"https://codehealth.canine.dev/dimensions/R4"},{"id":"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":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X2","name":"Cancellation propagation","shortDescription":{"text":"Cancellation propagation"},"helpUri":"https://codehealth.canine.dev/dimensions/X2"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"X4","name":"Structured logging","shortDescription":{"text":"Structured logging"},"helpUri":"https://codehealth.canine.dev/dimensions/X4"},{"id":"X5","name":"Nullable reference types","shortDescription":{"text":"Nullable reference types"},"helpUri":"https://codehealth.canine.dev/dimensions/X5"},{"id":"X6","name":"Hand-rolled structured-format parsing","shortDescription":{"text":"Hand-rolled structured-format parsing"},"helpUri":"https://codehealth.canine.dev/dimensions/X6"},{"id":"X7","name":"Silent fallback defaults","shortDescription":{"text":"Silent fallback defaults"},"helpUri":"https://codehealth.canine.dev/dimensions/X7"},{"id":"X9","name":"Subsumed condition operand","shortDescription":{"text":"Subsumed condition operand"},"helpUri":"https://codehealth.canine.dev/dimensions/X9"}]}},"results":[{"ruleId":"D1","level":"warning","message":{"text":"monitor.handleStreamEvent (cyclomatic 514): monitor.handleStreamEvent has cyclomatic complexity 514 (threshold 15). Of this number, 502 points are the body\u0027s own statements and 12 belong to 5 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":"web/static/js/monitor.js"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"1aa8ab6c9152ed5d4b924e75c85f1d4db5b1c8e84c0f292618dc88fdc535e895"}},{"ruleId":"D1","level":"warning","message":{"text":"loadConfig (cyclomatic 216): loadConfig has cyclomatic complexity 216 (threshold 15). Of this number, 206 points are the body\u0027s own statements and 10 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":"web/static/js/settings.js"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6c964e8f879d10ccb276cf948d205dfac03475603eda31cae1daf688b332c27"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.addTimelineItem (cyclomatic 205): monitor.addTimelineItem has cyclomatic complexity 205 (threshold 15). Of this number, 204 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":"web/static/js/monitor.js"},"region":{"startLine":6638}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dea9f8a6cfab605b8160f5e654f0c882d9cc15e9e670b3308b7a7a048c63247"}},{"ruleId":"D1","level":"warning","message":{"text":"runWebshellAiSend::(anonymous)::processChunk (cyclomatic 193): runWebshellAiSend::(anonymous)::processChunk has cyclomatic complexity 193 (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":"web/static/js/webshell.js"},"region":{"startLine":3544}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb26879822cfafa1041990477e1f2cabf9234096d3cf281e4d199bd53094f81"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.createProgressCallback (cyclomatic 185): AgentHandler.createProgressCallback has cyclomatic complexity 185 (threshold 15). Most of this is not in the body itself: 4 of the 185 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 1163, 1128, 1036, \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":"internal/handler/agent.go"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6dc6422201bfe75a2ccd1674789120bfc9fda506c17e80e23c9a56ed6e08ec2"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.renderProcessDetails::renderOneProcessDetail (cyclomatic 183): chat.renderProcessDetails::renderOneProcessDetail has cyclomatic complexity 183 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (chat.renderProcessDetails, chat.renderProcessDetails::formatProcessDetailPiRunRetryMessage) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4299}}}],"partialFingerprints":{"codehealthFindingId/v1":"f692565f110062420691a8c3eb3b9f2e7dff79211f7cb8708c8e9d90f3aad371"}},{"ruleId":"D1","level":"warning","message":{"text":"applySettings (cyclomatic 151): applySettings has cyclomatic complexity 151 (threshold 15). Of this number, 122 points are the body\u0027s own statements and 29 belong to 14 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":"web/static/js/settings.js"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"64dd673fb1b7b981e75aae9ba222e08c79f5e6ef1dce167b6920a630c3b0c57a"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.refreshWebshellUIOnLanguageChange (cyclomatic 142): webshell.refreshWebshellUIOnLanguageChange has cyclomatic complexity 142 (threshold 15). Of this number, 140 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":5031}}}],"partialFingerprints":{"codehealthFindingId/v1":"b499ca3dda333483fcbe3680b9ec3d83c52174d52e15e85d4d1cef820df98ed5"}},{"ruleId":"D1","level":"warning","message":{"text":"renderAttackChain (cyclomatic 126): renderAttackChain has cyclomatic complexity 126 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 106 belong to 36 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":"web/static/js/chat.js"},"region":{"startLine":7135}}}],"partialFingerprints":{"codehealthFindingId/v1":"0277afa18f7bcdb342c6f778fc683f0c9c57a1c566132d584ddb1d2ce0f44f17"}},{"ruleId":"D1","level":"warning","message":{"text":"initTerminal (cyclomatic 118): initTerminal has cyclomatic complexity 118 (threshold 15). Most of this is not in the body itself: 13 of the 118 points are its own statements and the rest belongs to 20 function items inside it that branch (a function literal at line 2355, a function literal at line 2488, handlePasteText, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"bca16d82b0a588784bdf6f6c21aceb0eb921480930c756d1be7077836055a9f9"}},{"ruleId":"D1","level":"warning","message":{"text":"refreshDashboard (cyclomatic 117): refreshDashboard has cyclomatic complexity 117 (threshold 15). Of this number, 101 points are the body\u0027s own statements and 16 belong to 11 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":"web/static/js/dashboard.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f201f851bdfb2afc7731791b43deb2357f64e93a411d027b338779336a712e74"}},{"ruleId":"D1","level":"warning","message":{"text":"sendMessage (cyclomatic 100): sendMessage has cyclomatic complexity 100 (threshold 15). Of this number, 80 points are the body\u0027s own statements and 20 belong to 13 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":"web/static/js/chat.js"},"region":{"startLine":2248}}}],"partialFingerprints":{"codehealthFindingId/v1":"3429fad1ec85114de65fe993ccb67902514501709aa2a13f572f3b243294d5e7"}},{"ruleId":"D1","level":"warning","message":{"text":"app.mcpToolAuthorizer (cyclomatic 98): app.mcpToolAuthorizer has cyclomatic complexity 98 (threshold 15). Most of this is not in the body itself: 1 of the 98 points is its own statement and the rest belongs to one function literal inside it that branches (line 16). 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":"internal/app/mcp_authorization.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"87a42fdce222634ea486cbb85868ca8945efcce1a47a0f4142cef62fd71fad52"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.buildWebshellTimelineItemFromDetail (cyclomatic 93): webshell.buildWebshellTimelineItemFromDetail has cyclomatic complexity 93 (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":"web/static/js/webshell.js"},"region":{"startLine":2220}}}],"partialFingerprints":{"codehealthFindingId/v1":"6109d3ec99902c7ffebb26ef3a6e84e23c73a8449e310be6c2d91784db551404"}},{"ruleId":"D1","level":"warning","message":{"text":"loadConversation (cyclomatic 93): loadConversation has cyclomatic complexity 93 (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":"web/static/js/chat.js"},"region":{"startLine":6381}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b31a998b42d05d66ef87c2809df9a7f8ac6a925e3b9ed9acfeef3a492f6a36"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.selectWebshell (cyclomatic 92): webshell.selectWebshell has cyclomatic complexity 92 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (webshell.selectWebshell::applyActiveDbProfileToForm) 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":"web/static/js/webshell.js"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0e881aaa9679e6be6b859870eb2aeb4edfa9df1797ce16d82d43866fdfb5b4"}},{"ruleId":"D1","level":"warning","message":{"text":"tasks.showBatchQueueDetail (cyclomatic 91): tasks.showBatchQueueDetail has cyclomatic complexity 91 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 43 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":"web/static/js/tasks.js"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"7633c785c0ee39170c5f23a7f3c0775cffcbae00cf43b348939d3af21fdb1ad4"}},{"ruleId":"D1","level":"warning","message":{"text":"attachRunningTaskEventStream (cyclomatic 91): attachRunningTaskEventStream has cyclomatic complexity 91 (threshold 15). Most of this is not in the body itself: 6 of the 91 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 5625, (anonymous)::dispatchTaskEvent, a function literal at line 5630, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5611}}}],"partialFingerprints":{"codehealthFindingId/v1":"94be03ead0d8846bf66b2f792b851be6e7de61cdb1fd69acada6f30effcf2a9e"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigHandler.UpdateConfig (cyclomatic 90): ConfigHandler.UpdateConfig has cyclomatic complexity 90 (threshold 15). Of this number, 89 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":"internal/handler/config.go"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"136b415f35bce0e759f09a0cb2549090f05cb235a9d806ca15611d981c37a17e"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.refreshProgressAndTimelineI18n (cyclomatic 87): monitor.refreshProgressAndTimelineI18n has cyclomatic complexity 87 (threshold 15). Most of this is not in the body itself: 1 of the 87 points is its own statement and the rest belongs to 8 function items inside it that branch (a function literal at line 9573, a function literal at line 9680, a function literal at line 9555, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9533}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7877c15eaaf863a2724c2a77aeba43de7cd184069fc7764205d7ccc0ba01692"}},{"ruleId":"D1","level":"warning","message":{"text":"initPage (cyclomatic 85): initPage has cyclomatic complexity 85 (threshold 15). Of this number, 77 points are the body\u0027s own statements and 8 belong to 7 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":"web/static/js/router.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"303a98c04bd389cd2ea72c78277102676c748acf614c7bebe677d9e4808e20c5"}},{"ruleId":"D1","level":"warning","message":{"text":"piRun.run (cyclomatic 84): piRun.run has cyclomatic complexity 84 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 44 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":"internal/multiagent/pi_runner.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"4010516108895d9761a9814f4c0d90c2edfcda2bed113a0a4537e66e6d19ab3c"}},{"ruleId":"D1","level":"warning","message":{"text":"RobotHandler.handleRobotCommand (cyclomatic 83): RobotHandler.handleRobotCommand has cyclomatic complexity 83 (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":"internal/handler/robot.go"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa541e4e74fe2884f0ec209d203c7efefe284f55bc21373de82b5987d4b42ad9"}},{"ruleId":"D1","level":"warning","message":{"text":"piRun.executePiLocal (cyclomatic 79): piRun.executePiLocal has cyclomatic complexity 79 (threshold 15). Of this number, 57 points are the body\u0027s own statements and 22 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":"internal/multiagent/pi_local_tools.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7088e9383a334cb79c1e0d444896877e936a12454858a8b480a0d2463360ece"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.RegisterBatchTaskMCPTools (cyclomatic 75): handler.RegisterBatchTaskMCPTools has cyclomatic complexity 75 (threshold 15). Most of this is not in the body itself: 4 of the 75 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 200, 58, 319, \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":"internal/handler/batch_task_mcp.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"770f17fc436f78747610c1040780701019693725d8df423701dddbe3ccacd29b"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigHandler.GetTools (cyclomatic 73): ConfigHandler.GetTools has cyclomatic complexity 73 (threshold 15). Of this number, 71 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"202f03681f6a5741e10a3d8d70c81df176ab3dbbd175840f72aef8b8b023318d"}},{"ruleId":"D1","level":"warning","message":{"text":"loadProcessDetailsPaginated (cyclomatic 71): loadProcessDetailsPaginated has cyclomatic complexity 71 (threshold 15). Of this number, 70 points are the body\u0027s own statements and 1 belongs to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb9bc755aa51935a1b3f1db84e06949ba8ffe4c9bda8a2a6c0132231408be9b"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor.buildCommandArgs (cyclomatic 69): Executor.buildCommandArgs has cyclomatic complexity 69 (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":"internal/security/executor.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"f967cf5ef4c9929ca19dc6a3def550ed71d0dc15afe2dafd3eec415a810addb4"}},{"ruleId":"D1","level":"warning","message":{"text":"chat._acBuildSvgString (cyclomatic 69): chat._acBuildSvgString has cyclomatic complexity 69 (threshold 15). Most of this is not in the body itself: 4 of the 69 points are its own statements and the rest belongs to 12 function items inside it that branch (a function literal at line 8777, themeFor, a function literal at line 8747, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":8484}}}],"partialFingerprints":{"codehealthFindingId/v1":"3235f928e7561a9e762ba3bce545a3c96bcdea7251fefe69afbae76bdd819fd9"}},{"ruleId":"D1","level":"warning","message":{"text":"worker.run (cyclomatic 68): worker.run has cyclomatic complexity 68 (threshold 15). Of this number, 48 points are the body\u0027s own statements and 20 belong to 8 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":"runtime/pi/src/worker.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baa470c95eeaae7f079afe1f9ea408e4687f412da537e211435e5f6f70dfed4"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.MultiAgentLoopStream (cyclomatic 66): AgentHandler.MultiAgentLoopStream has cyclomatic complexity 66 (threshold 15). Of this number, 44 points are the body\u0027s own statements and 22 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":"internal/handler/multi_agent.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"df279128ba92a9375a658fae17346f66a89e8bc0cf8118850b49e67c02253e29"}},{"ruleId":"D1","level":"warning","message":{"text":"initWebshellTerminal (cyclomatic 65): initWebshellTerminal has cyclomatic complexity 65 (threshold 15). Most of this is not in the body itself: 14 of the 65 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 4047, writeWebshellOutput, a function literal at line 4119, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3985}}}],"partialFingerprints":{"codehealthFindingId/v1":"8defd20f8d65c5d78654886d0693fcf259006da18ee36fcc37c7bdd3ce5cc5e5"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.SingleAgentLoopStream (cyclomatic 64): AgentHandler.SingleAgentLoopStream has cyclomatic complexity 64 (threshold 15). Of this number, 42 points are the body\u0027s own statements and 22 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":"internal/handler/single_agent.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff138aee43c33e7b18b068efb3d44b54563f56d40596611916d01708d989e512"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.startProcessDetailsLatestFollow (cyclomatic 64): monitor.startProcessDetailsLatestFollow has cyclomatic complexity 64 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 46 belong to 10 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":"web/static/js/monitor.js"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e088ebf512688a32a35b08dd48c3480f7de445c01a279970094c77eea7dd760"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.buildInlineHitlApprovalHtml (cyclomatic 60): monitor.buildInlineHitlApprovalHtml has cyclomatic complexity 60 (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":"web/static/js/monitor.js"},"region":{"startLine":4607}}}],"partialFingerprints":{"codehealthFindingId/v1":"9107fdff05de68eb1a37be1eda5ecd9e8d465923036f0728b2931ae72d4bc50c"}},{"ruleId":"D1","level":"warning","message":{"text":"TCPReverseListener.handleTCPBeaconSession (cyclomatic 58): TCPReverseListener.handleTCPBeaconSession has cyclomatic complexity 58 (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":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"76dc130c1a910e94659085676bbffbe4cc4dc6285982c2184cf6c9177689da19"}},{"ruleId":"D1","level":"warning","message":{"text":"app.New (cyclomatic 57): app.New has cyclomatic complexity 57 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 17 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":"internal/app/app.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"683ff63884701d1b10a97aab3d4d83b4839d2f61b94e03a550514c3b1d1ceac7"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.validateWorkflowGraph (cyclomatic 57): workflows.validateWorkflowGraph has cyclomatic complexity 57 (threshold 15). Most of this is not in the body itself: 9 of the 57 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 2130, visit, a function literal at line 2125, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"7259ad4cd9c2cb287ea8d44e8d44100e74c5afbf52a05a3d88667941b2558558"}},{"ruleId":"D1","level":"warning","message":{"text":"fact-graph.render (cyclomatic 56): fact-graph.render has cyclomatic complexity 56 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 22 belong to 7 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/fact-graph.js"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fa3a144e151a6b152e47e6539e68dd2a603c0d509f9081980b544db7c741641"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.prepareMultiAgentSession (cyclomatic 55): AgentHandler.prepareMultiAgentSession has cyclomatic complexity 55 (threshold 15). Of this number, 52 points are the body\u0027s own statements and 3 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":"internal/handler/multi_agent_prepare.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"be6695a2cc0884f652cb5be2122f658d08a99d3e1a912c4db6b3788b4ec2ffc7"}},{"ruleId":"D1","level":"warning","message":{"text":"update.finishPendingBuild (cyclomatic 55): update.finishPendingBuild has cyclomatic complexity 55 (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":"internal/update/apply.go"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2b18612594b8683b091de9a9b0c00b7beb7eb1ba52d97568d2c86cdc9042fb1"}},{"ruleId":"D1","level":"warning","message":{"text":"security.permissionForRequest (cyclomatic 54): security.permissionForRequest has cyclomatic complexity 54 (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":"internal/security/rbac_middleware.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cac1c65726022fecf00df964a9ec1822af4f9a43f6b727bbeaefb610bbcb90b"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.renderExternalMCPList (cyclomatic 54): settings.renderExternalMCPList has cyclomatic complexity 54 (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":"web/static/js/settings.js"},"region":{"startLine":4502}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5537526e80b3fe982ad7b6464f57e4cd65386b57b18bc6eb417a9c36fbcbe94"}},{"ruleId":"D1","level":"warning","message":{"text":"Pi.Run (cyclomatic 53): Pi.Run has cyclomatic complexity 53 (threshold 15). Of this number, 40 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":"internal/agentruntime/pi.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf0ef3c95faacb64f79cf05c717cb9b09fb72a9d523cda4d5ff4b2098129d20"}},{"ruleId":"D1","level":"warning","message":{"text":"1.onEvent (cyclomatic 52): 1.onEvent 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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/BurpExtender.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"987ecafe9616e7aae3ef01e0008b62c7a30bcaae18c19ee81b0ad8a1c28c1e3b"}},{"ruleId":"D1","level":"warning","message":{"text":"app.registerProjectFactTools (cyclomatic 51): app.registerProjectFactTools has cyclomatic complexity 51 (threshold 15). Most of this is not in the body itself: 6 of the 51 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 119, 194, 370, \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":"internal/app/project_fact_tools.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"206b571a1ee3d67fd667c58008179742c5e0884a598ee96e2fd34601e25242f0"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.assetImportRecord (cyclomatic 51): assets.assetImportRecord has cyclomatic complexity 51 (threshold 15). Of this number, 49 points are the body\u0027s own statements and 2 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":"web/static/js/assets.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"3511d40a51010c59c972f243e8fd3e9c4bd11d797ec8b05bc70659e6b5173476"}},{"ruleId":"D1","level":"warning","message":{"text":"restoreHitlInlineForConversation (cyclomatic 51): restoreHitlInlineForConversation has cyclomatic complexity 51 (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":"web/static/js/monitor.js"},"region":{"startLine":5375}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7e93bea7b42e879c580e926647a415105822842baf8099a463aea052a518fb8"}},{"ruleId":"D1","level":"warning","message":{"text":"app.registerWebshellManagementTools (cyclomatic 50): app.registerWebshellManagementTools has cyclomatic complexity 50 (threshold 15). Most of this is not in the body itself: 2 of the 50 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 1941, 1735, 1826, \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":"internal/app/app.go"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdba91f5126b7da59632b57bd610844e0b9d77d473c98fbe8ac9cf9a51027d8"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.loadConversation::renderOneMessage (cyclomatic 50): chat.loadConversation::renderOneMessage has cyclomatic complexity 50 (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":"web/static/js/chat.js"},"region":{"startLine":6531}}}],"partialFingerprints":{"codehealthFindingId/v1":"779a40825fddfe53e63be9d7fb6276d39e23524852aec59492f0b1270368ee67"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.loadConversations (cyclomatic 49): chat.loadConversations has cyclomatic complexity 49 (threshold 15). Of this number, 38 points are the body\u0027s own statements and 11 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10004}}}],"partialFingerprints":{"codehealthFindingId/v1":"341096a11170b5338933b97950ab6edbe663dc9e7051caf2c5decaaa1b22dbc6"}},{"ruleId":"D1","level":"warning","message":{"text":"vulnerability.syncVulnerabilityFiltersFromLocationHash (cyclomatic 49): vulnerability.syncVulnerabilityFiltersFromLocationHash has cyclomatic complexity 49 (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":"web/static/js/vulnerability.js"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"03f59e21ef903212f9617d855638cefea9295a09850b0fdff66b65c64dd8ba59"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.renderFileList (cyclomatic 48): webshell.renderFileList has cyclomatic complexity 48 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 22 belong to 7 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":"web/static/js/webshell.js"},"region":{"startLine":4413}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ba41d1e6f2ed4e89da59d51e6344a3f21784f08025ff0279cbcea78c544673"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.executeOneBatchSubTask (cyclomatic 47): AgentHandler.executeOneBatchSubTask has cyclomatic complexity 47 (threshold 15). Of this number, 44 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":"internal/handler/batch_queue_executor.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd9eea77bea2e49eada693af3ac3aa13ed4b6fddce76b018347a0f32b55a60b7"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigHandler.ApplyConfig (cyclomatic 47): ConfigHandler.ApplyConfig has cyclomatic complexity 47 (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":"internal/handler/config.go"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"673c6e408a0989ac8a33084bab07c051ed5682d59b204eda31a4b04e8305eddc"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.GetProcessDetailsSummary (cyclomatic 46): DB.GetProcessDetailsSummary has cyclomatic complexity 46 (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":"internal/database/conversation.go"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff6aba7b20b9b1e3d1d6462dda4916bf50946942401b08df18fcab9a782a9c94"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.renderMCPDetailModal (cyclomatic 45): chat.renderMCPDetailModal 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":"web/static/js/chat.js"},"region":{"startLine":5600}}}],"partialFingerprints":{"codehealthFindingId/v1":"02a4d3b87e0a566afba3fafa576910cba23fd6626704fcd0ae4e28219f2822ca"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.buildMcpTimelineSvg (cyclomatic 45): monitor.buildMcpTimelineSvg has cyclomatic complexity 45 (threshold 15). Most of this is not in the body itself: 13 of the 45 points are its own statements and the rest belongs to 12 function literals inside it that branch (lines 7890, 7879, 7853, \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":"web/static/js/monitor.js"},"region":{"startLine":7812}}}],"partialFingerprints":{"codehealthFindingId/v1":"91167bcf790dd2dde9d6f8886ed23e5ea298fc3230d6b5530a2f326b12143a9d"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderMonitorExecutions (cyclomatic 45): monitor.renderMonitorExecutions has cyclomatic complexity 45 (threshold 15). Of this number, 35 points are the body\u0027s own statements and 10 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":"web/static/js/monitor.js"},"region":{"startLine":9045}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5fff48ea6ece682fb833c3c4ac4ab4a0311e81832f31a2b9e498c55cbd0451c"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.syncModelListFetchButtons (cyclomatic 45): settings.syncModelListFetchButtons has cyclomatic complexity 45 (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":"web/static/js/settings.js"},"region":{"startLine":3478}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a16f20e4e99694c3b430acba32cedf867e63dbc046b4a7f5a04d7e7a0d38d35"}},{"ruleId":"D1","level":"warning","message":{"text":"saveKnowledgeItem (cyclomatic 45): saveKnowledgeItem has cyclomatic complexity 45 (threshold 15). Of this number, 44 points are the body\u0027s own statements and 1 belongs 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":"web/static/js/knowledge.js"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"3045c689b11acefecaca1eefbf7a837a9a38471fdaeec642645563f4f7464034"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.renderProcessDetails (cyclomatic 44): chat.renderProcessDetails has cyclomatic complexity 44 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top. This shape REPEATS in the file: 2 other methods here (chat.renderProcessDetails::formatProcessDetailPiRunRetryMessage, chat.renderProcessDetails::renderOneProcessDetail) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4069}}}],"partialFingerprints":{"codehealthFindingId/v1":"00d2c78f71b719132ef6a2ee1b9850209ab800233ce7d757a7a2c80cfdf45b62"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchChatSystemModelsForChannel (cyclomatic 44): fetchChatSystemModelsForChannel has cyclomatic complexity 44 (threshold 15). Of this number, 40 points are the body\u0027s own statements and 4 belong to 5 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":"web/static/js/chat.js"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba8fc0a3c4272ad68d564163f500b8979a06c5072cfeac5b15d527e7fed2a82"}},{"ruleId":"D1","level":"warning","message":{"text":"testWebshellConnection (cyclomatic 44): testWebshellConnection has cyclomatic complexity 44 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 17 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":"web/static/js/webshell.js"},"region":{"startLine":5229}}}],"partialFingerprints":{"codehealthFindingId/v1":"7248381b20cb859680204ac5ac324aaf2383a7939ed91b20c90f491b2f7e9320"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderMcpStatsToolsPanel (cyclomatic 43): monitor.renderMcpStatsToolsPanel has cyclomatic complexity 43 (threshold 15). Most of this is not in the body itself: 7 of the 43 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 8848, 8831, 8824, \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":"web/static/js/monitor.js"},"region":{"startLine":8822}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c25f4fd47f6ae611db35a4a453b3fea2f8e875bea72fb558c345ca2b15821f3"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.saveExternalMCP (cyclomatic 42): settings.saveExternalMCP has cyclomatic complexity 42 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":4734}}}],"partialFingerprints":{"codehealthFindingId/v1":"2736cbde6d63c418cebe02bffbb791f96327a946f23681921aa73d16ffd6558d"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.ChatCompletionStreamWithToolCalls (cyclomatic 41): Client.ChatCompletionStreamWithToolCalls 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":"internal/openai/openai.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87d9192128eb5b1d9997b22a2788904a838feee42be8fcc7b6fb01cc9f556ec"}},{"ruleId":"D1","level":"warning","message":{"text":"update.Rollback (cyclomatic 41): update.Rollback 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":"internal/update/apply.go"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9cd45078f58b0b8b878f1e16cf0fbc8c27cfa8779e03e1b037886bc84576681"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.formatConversationAsMarkdown (cyclomatic 41): chat.formatConversationAsMarkdown has cyclomatic complexity 41 (threshold 15). Most of this is not in the body itself: 13 of the 41 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 10702, 10717). 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":"web/static/js/chat.js"},"region":{"startLine":10683}}}],"partialFingerprints":{"codehealthFindingId/v1":"84761031cb2be0676686ace5c1aac7a74d84fda08a1990594879db61b5a80580"}},{"ruleId":"D1","level":"warning","message":{"text":"roles.saveRole (cyclomatic 41): roles.saveRole has cyclomatic complexity 41 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 7 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":"web/static/js/roles.js"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebe8c061c0f9827e7c1a7b5f011d5e2a096afddfaeb490055fb627c54bfa5eb"}},{"ruleId":"D1","level":"warning","message":{"text":"token-usage.renderTokenUsageAnalysis (cyclomatic 41): token-usage.renderTokenUsageAnalysis has cyclomatic complexity 41 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 25 belong to 9 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":"web/static/js/token-usage.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"904e67491e04adffe2a2a4d4cb6e7724b493b8466af8c546c676d92e5ebae82d"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.readTypedConfig (cyclomatic 41): workflows.readTypedConfig has cyclomatic complexity 41 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67d28d3b607544f95c1d56b50a4da91b9d8199c229d010a3b82b7a7cfea5e06"}},{"ruleId":"D1","level":"warning","message":{"text":"multiagent.runPiMulti (cyclomatic 40): multiagent.runPiMulti has cyclomatic complexity 40 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 16 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":"internal/multiagent/pi_runner.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"924fe99b0cafe98d73ddc050207b4642e509ebaa6b928ee5df120f518259570a"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.coalesceProcessDetailsToolPairs (cyclomatic 40): monitor.coalesceProcessDetailsToolPairs has cyclomatic complexity 40 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 6 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6314}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee2beda406b70df3989dbda95cbb995ade28eda21b19f764c063ecd56460939"}},{"ruleId":"D1","level":"warning","message":{"text":"roles.editRole (cyclomatic 40): roles.editRole has cyclomatic complexity 40 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"c89d87c5d4a0d77e9b6b33fc9b574234be9a432afebd4fa59632c5c7c34fc02d"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.renderWebshellList (cyclomatic 40): webshell.renderWebshellList has cyclomatic complexity 40 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 16 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":"web/static/js/webshell.js"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"315dc3aa994e071d1c4a16ea6eac8981b742de6847e87f5d9a52fab848dae868"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.robotCommandPermission (cyclomatic 39): handler.robotCommandPermission has cyclomatic complexity 39 (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":"internal/handler/robot.go"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f9b54619278a1048d3b3a99f2ff899881729a62158e93826f3a4d1cf6c7bfe"}},{"ruleId":"D1","level":"warning","message":{"text":"update.Apply (cyclomatic 39): update.Apply has cyclomatic complexity 39 (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":"internal/update/apply.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"0954503ae875a20521aa5336c9584feddd0fc8f87c85c714ed262d7aad1b896b"}},{"ruleId":"D1","level":"warning","message":{"text":"workflowpackage.InspectArchive (cyclomatic 39): workflowpackage.InspectArchive has cyclomatic complexity 39 (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":"internal/workflow/package/inspector.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c20b47ef7dc5353093cd99af4d327b8f6d234ed9c6429c4d997f5a89dac35255"}},{"ruleId":"D1","level":"warning","message":{"text":"onEvent (cyclomatic 39): onEvent has cyclomatic complexity 39 (threshold 15). Of this number, 34 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffed7fa0abc3261b29c59fb5e5e867cf88619b3738240f977609c0c7f9cb9792"}},{"ruleId":"D1","level":"warning","message":{"text":"watchdogProbe (cyclomatic 39): watchdogProbe has cyclomatic complexity 39 (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":"web/static/js/update.js"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f818b37d1cfca9445cbaf9071e83221d2a8107b314d0cdb483415a593645723"}},{"ruleId":"D1","level":"warning","message":{"text":"saveWebshellConnection (cyclomatic 39): saveWebshellConnection has cyclomatic complexity 39 (threshold 15). Of this number, 33 points are the body\u0027s own statements and 6 belong to 5 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":"web/static/js/webshell.js"},"region":{"startLine":5296}}}],"partialFingerprints":{"codehealthFindingId/v1":"359e9fa5b07144dac2dec3441420c8bfd5a59e26bb6753f851472d6498c7ba91"}},{"ruleId":"D1","level":"warning","message":{"text":"agent.ParseTraceMessages (cyclomatic 38): agent.ParseTraceMessages has cyclomatic complexity 38 (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":"internal/agent/agent_trace.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"16d9848beecb4a0609ae23da1c34e39783baf6c88e203e00d26ea68aab77e22e"}},{"ruleId":"D1","level":"warning","message":{"text":"Builder.BuildChainFromConversation (cyclomatic 38): Builder.BuildChainFromConversation has cyclomatic complexity 38 (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":"internal/attackchain/builder.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9462d6ac44c66e8bb4d899c23abd7dc748dca92c81d02f2a2882a5e60effeb58"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.ApplyWorkflowPackageImport (cyclomatic 38): DB.ApplyWorkflowPackageImport 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":"internal/database/workflow_package.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f264066865d6f8cece702589778124fee75800ffa0acca26e2e43dbdc28aff3"}},{"ruleId":"D1","level":"warning","message":{"text":"piRun.executePiPlan (cyclomatic 38): piRun.executePiPlan has cyclomatic complexity 38 (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":"internal/multiagent/pi_plan_tools.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db9d560880ccb7a13def48dc9d03d4c72b85fd4f9736dba9e6501c1457b143f"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.addMessage (cyclomatic 38): chat.addMessage has cyclomatic complexity 38 (threshold 15). Of this number, 37 points are the body\u0027s own statements and 1 belongs to one function item 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":"web/static/js/chat.js"},"region":{"startLine":3558}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d6f59403972ab2bdc9b8e7f2b8044c7bf471132c643dc32ac23f1834157e0e3"}},{"ruleId":"D1","level":"warning","message":{"text":"router.updateNavState (cyclomatic 38): router.updateNavState has cyclomatic complexity 38 (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":"web/static/js/router.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ed8a775cf25453235047c60563fe0a7f6ee0c46e0e93548e3cdcfaca3ebc4b"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.renderToolsList (cyclomatic 38): settings.renderToolsList has cyclomatic complexity 38 (threshold 15). Most of this is not in the body itself: 8 of the 38 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1420, 1471). 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":"web/static/js/settings.js"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bce666b9238bddb6c8c34cc3d5c2dcee0c39d0f4fcafbb0467c267431eb312"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.runWebshellAiSend::appendTimelineItem (cyclomatic 38): webshell.runWebshellAiSend::appendTimelineItem has cyclomatic complexity 38 (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":"web/static/js/webshell.js"},"region":{"startLine":3418}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8820b1aa18ba851ba40cf0f871deb6cf1598c71da1e7df2a7acac0879e4c8ff"}},{"ruleId":"D1","level":"warning","message":{"text":"app.registerC2ListenerTool (cyclomatic 37): app.registerC2ListenerTool has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 1 of the 37 points is its own statement and the rest belongs to one function literal inside it that branches (line 85). 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":"internal/app/c2_tools.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"38362cf581484166ee2a369f29357c0377e88fc21c6d7da82affb5a2790764f0"}},{"ruleId":"D1","level":"warning","message":{"text":"app.registerC2ProfileTool (cyclomatic 37): app.registerC2ProfileTool has cyclomatic complexity 37 (threshold 15). Most of this is not in the body itself: 1 of the 37 points is its own statement and the rest belongs to one function literal inside it that branches (line 714). 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":"internal/app/c2_tools.go"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"8444ab55181e967295693a406ddfe2997725f5893f8515b183b0069c9bba7781"}},{"ruleId":"D1","level":"warning","message":{"text":"project.BuildProjectFactGraph (cyclomatic 37): project.BuildProjectFactGraph has cyclomatic complexity 37 (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":"internal/project/fact_edges.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a9d9784208ecc62cf1db245964618889e25a37d237317e2a334dbed5b35b715"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.formatTaskCommand (cyclomatic 37): c2.formatTaskCommand has cyclomatic complexity 37 (threshold 15). Of this number, 36 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"web/static/js/c2.js"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea212b3458b16a1ee8de32860cadb73b6e84d1ac1dc85ccc199ac4a058b40889"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.resolveInlineHitlDecision (cyclomatic 37): monitor.resolveInlineHitlDecision has cyclomatic complexity 37 (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":"web/static/js/monitor.js"},"region":{"startLine":4529}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0778aff48066951ed2a28cd4fbb6848129f14b70149593c9bc5bf2c9436d81"}},{"ruleId":"D1","level":"warning","message":{"text":"refreshHitlPending (cyclomatic 37): refreshHitlPending has cyclomatic complexity 37 (threshold 15). Of this number, 23 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":"web/static/js/hitl.js"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"07678ca6a09c4ed1a85655158ff8b9ad760eb7eed8215949744279d8e6babb18"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatUploadsHandler.collectFiles (cyclomatic 36): ChatUploadsHandler.collectFiles has cyclomatic complexity 36 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 15 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":"internal/handler/chat_uploads.go"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c3a3d1f0062a3a7cd18a36c8c25f533ebddf9d183170871ab38f94f2c8df43"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.invokeGraph (cyclomatic 36): workflow.invokeGraph has cyclomatic complexity 36 (threshold 15). Of this number, 35 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":"internal/workflow/native_runtime.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d620a7857d19b285bfd7a96ef071a4d6130fb7d8a3f6b6fdd15c3dc7e48fb0d"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderSeverityInsights (cyclomatic 36): dashboard.renderSeverityInsights has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0a818881894f0b2791df73b2fc4c39b3b81279ab15fabce9eb7626b7e0588b1"}},{"ruleId":"D1","level":"warning","message":{"text":"hitl.openHitlLogModal (cyclomatic 36): hitl.openHitlLogModal has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ad42df82dc19bace9de075b81cd1992795804580e58fe6f685e97822c362cb0"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.mergeToolResultIntoCallItem (cyclomatic 36): monitor.mergeToolResultIntoCallItem has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6197}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2162389a00523aec288f342b2f082aa63f80f1a4d69be2a0309b81a92733ed3"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderMonitorPagination (cyclomatic 36): monitor.renderMonitorPagination has cyclomatic complexity 36 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9265}}}],"partialFingerprints":{"codehealthFindingId/v1":"acaad045eff591c880ea2ea4d7e8c7f211813297744c183a728beb9c6e291464"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.writeAIChannelToMainForm (cyclomatic 36): settings.writeAIChannelToMainForm has cyclomatic complexity 36 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2679}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe00803b1f62cc40c33391220bb23ded9bf51b47fdebca309f3860eb47378764"}},{"ruleId":"D1","level":"warning","message":{"text":"restoreWorkflowHitlInlineForConversation (cyclomatic 36): restoreWorkflowHitlInlineForConversation has cyclomatic complexity 36 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5218}}}],"partialFingerprints":{"codehealthFindingId/v1":"27df37c5b98b71d7794c859dc32dedc9dfeb06121913db8eaf8f6c6360e82e85"}},{"ruleId":"D1","level":"warning","message":{"text":"update.buildAndSwap (cyclomatic 35): update.buildAndSwap has cyclomatic complexity 35 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"efafd9c879e4c55011aeeaf8457541ce90a29d2083f1db9e9449b3a3c26c99f6"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderDashboardAlertBanner (cyclomatic 35): dashboard.renderDashboardAlertBanner has cyclomatic complexity 35 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"67fe100e967a3f094689d5914e8106693a02509489869b2c6cf63561e6506885"}},{"ruleId":"D1","level":"warning","message":{"text":"i18n.applyTranslations (cyclomatic 35): i18n.applyTranslations has cyclomatic complexity 35 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 18 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":"web/static/js/i18n.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"4355f2929429a3ae002f91341ce53cc403c6d717de99f38f80fed63b41705867"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.ProcessMessageForRobot (cyclomatic 34): AgentHandler.ProcessMessageForRobot has cyclomatic complexity 34 (threshold 15). Of this number, 32 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2945f971e7f3b0d5c856598983799180028a1fe118e02b3a59dfe87d48ce28"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-files.renderChatFilesTable (cyclomatic 34): chat-files.renderChatFilesTable 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. This shape REPEATS in the file: 2 other methods here (chat-files.renderChatFilesTable::rowHtml, chat-files.renderChatFilesTable::rowHtmlTreeFile) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"def8100b78481d3809b2610a3f97413183a8e096ed9b4bdd03238c746b52cf30"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderRecentFacts (cyclomatic 34): dashboard.renderRecentFacts has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 15 of the 34 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1451, 1428, 1432, \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":"web/static/js/dashboard.js"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"45a5ad468486084913c0f93e2d03da61e84d2b7e91895140d5fca56af48875a4"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge.updateIndexProgress (cyclomatic 34): knowledge.updateIndexProgress 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":"web/static/js/knowledge.js"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9b00198002e7fa8c9b9fa986d90ec52362acd67ba80f05828311b7fac9afee"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderMonitorStats (cyclomatic 34): monitor.renderMonitorStats has cyclomatic complexity 34 (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":"web/static/js/monitor.js"},"region":{"startLine":8976}}}],"partialFingerprints":{"codehealthFindingId/v1":"e43d7713c1f768d4395c4eb252e7afebbeae38cbc230391a43b92515ca4eee22"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.showProjectFactGraphNode (cyclomatic 34): projects.showProjectFactGraphNode has cyclomatic complexity 34 (threshold 15). Of this number, 33 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":"web/static/js/projects.js"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"43285d9c7fd265187b7b78a9b08d985a2c1b9bf506ef448c5d9837e77b696df4"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.resolveModelListCredentials (cyclomatic 34): settings.resolveModelListCredentials has cyclomatic complexity 34 (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":"web/static/js/settings.js"},"region":{"startLine":3443}}}],"partialFingerprints":{"codehealthFindingId/v1":"22cc31e8149db9e6b46a5062e5305bbadfe979b4e58703103a38e5e30511637b"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.testHitlAuditModelConnection (cyclomatic 34): settings.testHitlAuditModelConnection 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":"web/static/js/settings.js"},"region":{"startLine":3824}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1cf09df95e225174075cd7ba8b308d4cca0286dd880423b6eae9a67279ded29"}},{"ruleId":"D1","level":"warning","message":{"text":"bindChatScrollListeners (cyclomatic 34): bindChatScrollListeners has cyclomatic complexity 34 (threshold 15). Most of this is not in the body itself: 7 of the 34 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 710, 721, 691, \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":"web/static/js/chat-scroll.js"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"2afa6321a7b1abb4d3e1ccfe4d0196a87fbeca4e29781b44c11b2da688d2c74c"}},{"ruleId":"D1","level":"warning","message":{"text":"loadToolsList (cyclomatic 34): loadToolsList 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, 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":"web/static/js/settings.js"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"607cdb77ea304ed7523d458e81f43d41a0409378cef8561cf63e0bfeb9e521e5"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.bindInlineHitlApproval::submit (cyclomatic 33): monitor.bindInlineHitlApproval::submit has cyclomatic complexity 33 (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":"web/static/js/monitor.js"},"region":{"startLine":4751}}}],"partialFingerprints":{"codehealthFindingId/v1":"649b6fd868b0d2fb7792c179d4c522b7b5529b974e736735693902286bb29300"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderMcpStatsInsightPanel (cyclomatic 33): monitor.renderMcpStatsInsightPanel has cyclomatic complexity 33 (threshold 15). Most of this is not in the body itself: 15 of the 33 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 8499, 8519, 8494). 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":"web/static/js/monitor.js"},"region":{"startLine":8487}}}],"partialFingerprints":{"codehealthFindingId/v1":"320edd852a854b89f73410096f1f79944a2935462213c37625ae40d6df3ea701"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.buildWebshellDbCommand (cyclomatic 33): webshell.buildWebshellDbCommand has cyclomatic complexity 33 (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":"web/static/js/webshell.js"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"33128699d9f7119dbd859f3fac3b51a531d47525514e10a9622b3d6b7d3ac77e"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.workflowAiRenderResult (cyclomatic 33): workflows.workflowAiRenderResult has cyclomatic complexity 33 (threshold 15). Of this number, 31 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"59814e44e04dc2b8af0b58e83774ff2cc622ba13808d1094b7d4f785b0780d6f"}},{"ruleId":"D1","level":"warning","message":{"text":"main.main (cyclomatic 32): main.main has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/server/main.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb5369aa10e570b88a98c6ef0374be1d59362a5e8c15fdacdc89750a5e9d951"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.migrateVulnerabilitiesConversationFK (cyclomatic 32): DB.migrateVulnerabilitiesConversationFK has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/schema_legacy.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d435a6a680cd51477dbef59d6caa56fb0e54259a914d4704963d3c6ba5564dd"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.handleStreamEvent (cyclomatic 32): panel.handleStreamEvent has cyclomatic complexity 32 (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":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"38f48cc3de738553fd86b3fef17118ada1339499356fb593680219b4537b84b1"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderDashboardAccessOverview (cyclomatic 32): dashboard.renderDashboardAccessOverview has cyclomatic complexity 32 (threshold 15). Of this number, 31 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":"web/static/js/dashboard.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1d13772d3da167b8656b007fdcfbf1ec307fa0ebce4891a92da55776d1a297"}},{"ruleId":"D1","level":"warning","message":{"text":"info-collect.refreshInfoCollectProviderUI (cyclomatic 32): info-collect.refreshInfoCollectProviderUI has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"deba3f6747060358b7f2a2cb4ce69ec9ec3ec0dd2a576d4041b30e24b83c8816"}},{"ruleId":"D1","level":"warning","message":{"text":"skills.saveSkill (cyclomatic 32): skills.saveSkill has cyclomatic complexity 32 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/skills.js"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"d11e3792509afdae776b66b3be8d940c0762e537328b82e9720e76c63a41f1da"}},{"ruleId":"D1","level":"warning","message":{"text":"database.vulnerabilityTargetsJSON (cyclomatic 31): database.vulnerabilityTargetsJSON has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability_workspace.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a69047e04ac14f8f038ec6010408c6c73646fb344447f0e0e53ef476b1b61d"}},{"ruleId":"D1","level":"warning","message":{"text":"project.BuildWorkspaceInventoryBlock (cyclomatic 31): project.BuildWorkspaceInventoryBlock 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 27). 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":"internal/project/workspace_inventory.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c5247a78ac37f2a3cfabcb92f9517343aaad176df06c7eac1e98f034ea6cb43"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.updateMentionCandidates (cyclomatic 31): chat.updateMentionCandidates has cyclomatic complexity 31 (threshold 15). Most of this is not in the body itself: 15 of the 31 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 3084, 3069). 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":"web/static/js/chat.js"},"region":{"startLine":3043}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8a8aa6fa10fef5be894e4a135207f9c4d4c494d655c8fcdf52b11c21da0c0f"}},{"ruleId":"D1","level":"warning","message":{"text":"info-collect.initInfoCollectPage (cyclomatic 31): info-collect.initInfoCollectPage 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":"web/static/js/info-collect.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"0799ce0601292236722d75b987efdddf15fb344b62dc9b1e658ed5a44202c2d8"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderToolCallDetailContent (cyclomatic 31): monitor.renderToolCallDetailContent has cyclomatic complexity 31 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6078}}}],"partialFingerprints":{"codehealthFindingId/v1":"a830ee445d1bb304c57a9bb22ab61d471b9b76f5f034970f393b533f0290055c"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.testOpenAIConnection (cyclomatic 31): settings.testOpenAIConnection has cyclomatic complexity 31 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":4072}}}],"partialFingerprints":{"codehealthFindingId/v1":"176df63ab451d3876a193978eac29af36482fe8a0b6557bc73dead45546bb5ef"}},{"ruleId":"D1","level":"warning","message":{"text":"vulnerability.loadVulnerabilities (cyclomatic 31): vulnerability.loadVulnerabilities has cyclomatic complexity 31 (threshold 15). Of this number, 30 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":"web/static/js/vulnerability.js"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c60c15be969728fc44c18f3aedb486b12fa1a7c048354caf398763efbe96253"}},{"ruleId":"D1","level":"warning","message":{"text":"createBatchQueue (cyclomatic 31): createBatchQueue 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":"web/static/js/tasks.js"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"a625cecb29a19e1a87e9028cb16308fbc6a47325aa0a00e412cbd9ffce137b9d"}},{"ruleId":"D1","level":"warning","message":{"text":"renderVulnerabilityBrowser (cyclomatic 31): renderVulnerabilityBrowser has cyclomatic complexity 31 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 6 belong to 8 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0ea7146a4ad5188e00ee7e540e24d605d6e512eb8b687ff8801cb8ab9d150e1"}},{"ruleId":"D1","level":"warning","message":{"text":"app.registerAssetTools (cyclomatic 30): app.registerAssetTools 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 literals inside it that branch (lines 83, 33, 61, \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":"internal/app/asset_tools.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"d35cb64a595bd57c56a3fa72764e7bc9393f7b437f4c32af8ef62e1f02632d4d"}},{"ruleId":"D1","level":"warning","message":{"text":"ExternalMCPManager.CallTool (cyclomatic 30): ExternalMCPManager.CallTool has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 10 of the 30 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 723, 789, 777, \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":"internal/mcp/external_manager.go"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0fac846279d6c9d267840725077bc484e76e3af6eb33e0a3dc093a9c24817c2"}},{"ruleId":"D1","level":"warning","message":{"text":"update.Adopt (cyclomatic 30): update.Adopt has cyclomatic complexity 30 (threshold 15). Of this number, 29 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"internal/update/adopt.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"49d88f386adba13693138dc03c98ad910c412d0cb1eb28d56c783f88192cfa20"}},{"ruleId":"D1","level":"warning","message":{"text":"api-docs.renderRequestBody (cyclomatic 30): api-docs.renderRequestBody has cyclomatic complexity 30 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 15 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":"web/static/js/api-docs.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"b368913e58fe02ec444528685749d29c0339b59a285c402a0a46fbcd5e164cd7"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-files.loadChatFilesPage (cyclomatic 30): chat-files.loadChatFilesPage 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":"web/static/js/chat-files.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"68c98feedfe2511df0496ba81e759a63e25f205c7ab6b147979c38ac29876c3c"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.initChatAgentModeFromConfig (cyclomatic 30): chat.initChatAgentModeFromConfig has cyclomatic complexity 30 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 7 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":"web/static/js/chat.js"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"eff0ec9ef66f6a45cc0e19a9465787e8641bb5a378e62fbbf12dbe71c3da7a99"}},{"ruleId":"D1","level":"warning","message":{"text":"tasks.renderBatchQueues (cyclomatic 30): tasks.renderBatchQueues has cyclomatic complexity 30 (threshold 15). Most of this is not in the body itself: 12 of the 30 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1594, 1607). 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":"web/static/js/tasks.js"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e8e94653468ef318b1be9b5542f446b0b7c63899cf6d3b9612c1f8f4f4fd9e7"}},{"ruleId":"D1","level":"warning","message":{"text":"terminal.removeTerminalTab (cyclomatic 30): terminal.removeTerminalTab has cyclomatic complexity 30 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e243c0ce758b696c7594670a8de98be319616f5127598816893c519a7a1ac29"}},{"ruleId":"D1","level":"warning","message":{"text":"tool-guard.updateControls (cyclomatic 30): tool-guard.updateControls 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":"web/static/js/tool-guard.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"3661a3b4e1221ab1618f5d9fa6334126370243158524ee444153c5d6b00cb9e6"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.renderTypedConfig (cyclomatic 30): workflows.renderTypedConfig has cyclomatic complexity 30 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 4 belong to 3 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e55f3a4f8710c957992df4426c8a484f6279624c743d9accefb828e3d5d766c"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.workflowAiBuildDraft (cyclomatic 30): workflows.workflowAiBuildDraft has cyclomatic complexity 30 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ac37358429106d7831aeeda26225d2ce7e0c5479a60a26ff680863d49e148fd"}},{"ruleId":"D1","level":"warning","message":{"text":"WebShellHandler.buildFileCommand (cyclomatic 29): WebShellHandler.buildFileCommand 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":"internal/handler/webshell.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"893634b61aaff60005d03adf3d7a99b7e481884865d90c2aec74b474f4c24344"}},{"ruleId":"D1","level":"warning","message":{"text":"Retriever.vectorSearch (cyclomatic 29): Retriever.vectorSearch 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":"internal/knowledge/retriever.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e283d47c0fee7e60699186c15ce5d061d03aa46216344bd93feec5ddda1db9"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecutionService.finishEntry (cyclomatic 29): ExecutionService.finishEntry has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/execution_service.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"468308bf6c076a7d5ec9bd29d678015d5cb48822d3864f82e7022894beae1967"}},{"ruleId":"D1","level":"warning","message":{"text":"update.validateBuildEvidence (cyclomatic 29): update.validateBuildEvidence has cyclomatic complexity 29 (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":"internal/update/recovery_evidence.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b9114b83f19b48247687c2df887574be0a2a2ecb67775bb441313eea5cd374"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.renderProcessDetails::formatProcessDetailPiRunRetryMessage (cyclomatic 29): chat.renderProcessDetails::formatProcessDetailPiRunRetryMessage 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. This shape REPEATS in the file: 2 other methods here (chat.renderProcessDetails, chat.renderProcessDetails::renderOneProcessDetail) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4261}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe48ccd675f1594de8280daf85bba8733d082744ac7eaabba28da26f4dc1fac5"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.refreshChatPanelI18n (cyclomatic 29): chat.refreshChatPanelI18n has cyclomatic complexity 29 (threshold 15). Of this number, 16 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":"web/static/js/chat.js"},"region":{"startLine":11158}}}],"partialFingerprints":{"codehealthFindingId/v1":"04f7c935369effa14ac9ee469259162be7e8d7432ba8bc4f124e42167384ebc1"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderRecentEvents (cyclomatic 29): dashboard.renderRecentEvents has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 12 of the 29 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 966, 983, 958). 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":"web/static/js/dashboard.js"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebccb827e5cfd1f7790177ea2d14e0af8cf010fe083ef7e0b5a6ae971718fc71"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.pruneLiveTimelineIfNeeded (cyclomatic 29): monitor.pruneLiveTimelineIfNeeded has cyclomatic complexity 29 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 5 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":"web/static/js/monitor.js"},"region":{"startLine":6583}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80b7796c00fa49a298a4850c106698599dcedabc61b69d07a0acc72c9ef65d1"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderMcpStatsToolTable (cyclomatic 29): monitor.renderMcpStatsToolTable has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 6 of the 29 points are its own statements and the rest belongs to one function literal inside it that branches (line 8763). 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":"web/static/js/monitor.js"},"region":{"startLine":8755}}}],"partialFingerprints":{"codehealthFindingId/v1":"977475bda5fc0983de6f200bf919308358225bc3083eb18de1dec26d33898efa"}},{"ruleId":"D1","level":"warning","message":{"text":"tasks.renderTaskItem (cyclomatic 29): tasks.renderTaskItem has cyclomatic complexity 29 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"3014cb32327acc3fe322e57c3887c54c33d4cec63463e7a87cd1516edac295b4"}},{"ruleId":"D1","level":"warning","message":{"text":"hydrateConversationTokenUsage (cyclomatic 29): hydrateConversationTokenUsage has cyclomatic complexity 29 (threshold 15). Of this number, 19 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":"web/static/js/chat.js"},"region":{"startLine":6344}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e9a6cec14e4768bb621ed918ce991e748508eb07ec30e4b5533d4ad7c73f209"}},{"ruleId":"D1","level":"warning","message":{"text":"syncVisibleConversationTaskReplay (cyclomatic 29): syncVisibleConversationTaskReplay has cyclomatic complexity 29 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 14 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6979}}}],"partialFingerprints":{"codehealthFindingId/v1":"62f6d881a415ea3517545b1151649c1620ce546121cc4271bc0c0fd12aac403f"}},{"ruleId":"D1","level":"warning","message":{"text":"loadWebshellAiHistory (cyclomatic 29): loadWebshellAiHistory has cyclomatic complexity 29 (threshold 15). Most of this is not in the body itself: 6 of the 29 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 3341, 3330, 3335, \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":"web/static/js/webshell.js"},"region":{"startLine":3325}}}],"partialFingerprints":{"codehealthFindingId/v1":"628119428be62432b0b601037afc5c327847e38fe9ee198d562c269f9b1caa5e"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchTaskManager.LoadFromDB (cyclomatic 28): BatchTaskManager.LoadFromDB has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ebcbe8786ae833307cde45757ee679024e4b2682a067a56544939aa31c0beff"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectHandler.UpdateFact (cyclomatic 28): ProjectHandler.UpdateFact has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db93648a38f615d7af8fe28afdadb0c983d446700ed39101522a0f5aa7f0c60"}},{"ruleId":"D1","level":"warning","message":{"text":"VulnerabilityHandler.CreateRetest (cyclomatic 28): VulnerabilityHandler.CreateRetest has cyclomatic complexity 28 (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":"internal/handler/vulnerability_retest.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ce210a0db30d3b5e11e31fb71a6954fc8609cf19bdfbd0649074e7577aace55"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.handleCallTool (cyclomatic 28): Server.handleCallTool has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5eb1dccc6ff45b48231ff2dde09e32f4b8d2f5ca3433b7874a1becc4f813a1"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.openAssetEditor (cyclomatic 28): assets.openAssetEditor 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":"web/static/js/assets.js"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"6219f324b06b8ac6f2497d542859778d9e5331b7809a9ede4e05008a54c58bc0"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-files.renderChatFilesTable::rowHtml (cyclomatic 28): chat-files.renderChatFilesTable::rowHtml has cyclomatic complexity 28 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 2 other methods here (chat-files.renderChatFilesTable, chat-files.renderChatFilesTable::rowHtmlTreeFile) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3120b06740b49c8abbf280b50edaa9a7646cc597d0465d137e468a5c0cdb00c"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.formatPiRunRetryMessage (cyclomatic 28): monitor.formatPiRunRetryMessage has cyclomatic complexity 28 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2729}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cae173935aad2a0521d9d8cc9b1b6026390983c71ffce2943d8adc77af4bf41"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.getToolResultDisplayState (cyclomatic 28): monitor.getToolResultDisplayState 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":"web/static/js/monitor.js"},"region":{"startLine":5930}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e1a2da0929f9eb62935e238b63c6b3b16ac123fdbbcfbcb64e792950db10133"}},{"ruleId":"D1","level":"warning","message":{"text":"submitLogin (cyclomatic 28): submitLogin has cyclomatic complexity 28 (threshold 15). Of this number, 27 points are the body\u0027s own statements and 1 belongs 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":"web/static/js/auth.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"f45a4e467475c695f93a378cc64bbb1e6c58a5b82501cc8240cac5988cf61eb4"}},{"ruleId":"D1","level":"warning","message":{"text":"prefetchProcessDetailsSummaryHint (cyclomatic 28): prefetchProcessDetailsSummaryHint has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 9 of the 28 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 4588, 4589, 4610, \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":"web/static/js/chat.js"},"region":{"startLine":4580}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd5a55a99f32e49cfd316e21d11ac0342ec2dfdfab8a980cdb99de601a702d88"}},{"ruleId":"D1","level":"warning","message":{"text":"renderRetrievalLogs (cyclomatic 28): renderRetrievalLogs has cyclomatic complexity 28 (threshold 15). Most of this is not in the body itself: 3 of the 28 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1378, 1386, 1403, \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":"web/static/js/knowledge.js"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"951821438c516ca7ec17aeae1e659f80fa1e7cef52a53e397812170db50d30a9"}},{"ruleId":"D1","level":"warning","message":{"text":"detectAIContext (cyclomatic 28): detectAIContext has cyclomatic complexity 28 (threshold 15). Of this number, 26 points are the body\u0027s own statements and 2 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":"web/static/js/settings.js"},"region":{"startLine":4007}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55729a62f91e0626c5da05aab8e640f33b570759f305c38095465c7daf5159f"}},{"ruleId":"D1","level":"warning","message":{"text":"openVulnerabilityInspector (cyclomatic 28): openVulnerabilityInspector has cyclomatic complexity 28 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 5 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":"web/static/js/vulnerability-workspace.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"52019332db478871f0d63e394ff1ed4fb1bc18e50bd6df42b28601a50f916e5a"}},{"ruleId":"D1","level":"warning","message":{"text":"database.normalizeAsset (cyclomatic 27): database.normalizeAsset has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"dda47610ad82b58efecb2a00e3e461041d3303f32058e1df97c41db1a53d1ce8"}},{"ruleId":"D1","level":"warning","message":{"text":"database.grantSystemRolePermissions (cyclomatic 27): database.grantSystemRolePermissions has cyclomatic complexity 27 (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":"internal/database/rbac.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"959147ff0eec1eb072858ad3c60fed386dfd43c34677787038a89fb99cdf13b6"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.GetAssetStats (cyclomatic 27): DB.GetAssetStats has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e4cf99f0605e7128aa7b3f26588648ab88b3bd8bf8b454542122fe522d766c"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchTaskManager.loadQueueFromDB (cyclomatic 27): BatchTaskManager.loadQueueFromDB has cyclomatic complexity 27 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"c723942b8ef22c7c29b2ddbe3ee23bbc0df5512737381c472e57911a1ee366ee"}},{"ruleId":"D1","level":"warning","message":{"text":"KnowledgeHandler.GetItems (cyclomatic 27): KnowledgeHandler.GetItems has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/knowledge.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac86a098b931489a2ae5a24b4a011d45cf96b23b4b15098939efb4d26dd963b7"}},{"ruleId":"D1","level":"warning","message":{"text":"report.Render (cyclomatic 27): report.Render has cyclomatic complexity 27 (threshold 15). Of this number, 25 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":"internal/report/docx.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9449e82f8c929b18aa6f116024230a0c28e3ee9d49577a143bc8caeefc4e14"}},{"ruleId":"D1","level":"warning","message":{"text":"audit.auditResourceLink (cyclomatic 27): audit.auditResourceLink has cyclomatic complexity 27 (threshold 15). Of this number, 26 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":"web/static/js/audit.js"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c6daacf2787456534119ffa23fa996234747700ab048af23a6c042cce59681"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderActiveTasks (cyclomatic 27): monitor.renderActiveTasks has cyclomatic complexity 27 (threshold 15). Most of this is not in the body itself: 8 of the 27 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 7146, openActiveTaskConversation, a function literal at line 7162). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7091}}}],"partialFingerprints":{"codehealthFindingId/v1":"daf7c5aa2fee356020f7371a55f28e43d471889ffae4af79ad20642177e0a58a"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.loadProjectAssets (cyclomatic 27): projects.loadProjectAssets has cyclomatic complexity 27 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"d496b2e0836e22aac699ce3583a326bf173c0924307129ea1800c687f62b2736"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.parseWebshellListItems (cyclomatic 27): webshell.parseWebshellListItems has cyclomatic complexity 27 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4325}}}],"partialFingerprints":{"codehealthFindingId/v1":"85f14da8766c051654931bc9da0a46e7be9cc0cfa9c796765dcccc7c24121691"}},{"ruleId":"D1","level":"warning","message":{"text":"batchScanSelectedFofaRows (cyclomatic 27): batchScanSelectedFofaRows has cyclomatic complexity 27 (threshold 15). Of this number, 23 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd08265e7dcd15cfd3b29543ac3f1f7b1e7c1c7c548128073b4918747deb7ae"}},{"ruleId":"D1","level":"warning","message":{"text":"PayloadBuilder.BuildBeacon (cyclomatic 26): PayloadBuilder.BuildBeacon has cyclomatic complexity 26 (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":"internal/c2/payload_builder.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"54ed3b5dd4d8acd6d539886e6437e4e9c4810c94fbb49c30e69f6516305e710c"}},{"ruleId":"D1","level":"warning","message":{"text":"database.assetWhere (cyclomatic 26): database.assetWhere has cyclomatic complexity 26 (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":"internal/database/asset.go"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"d019ef0bd7e3eb9294545ccab2aa2623e83193e0dbdc4e365f19a9fd63663a72"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.transformSecretTree (cyclomatic 26): handler.transformSecretTree has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config_secrets.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"7199e404c85ef6b4954f50aa65c7e0d1c62a660aed585de31ef30da7a7af02e1"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatUploadsHandler.Export (cyclomatic 26): ChatUploadsHandler.Export has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd287e088c4a703b4c94db6fb2d3c9d76a1a4fe469cd7256841e1c465e070862"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownAgentsHandler.CreateMarkdownAgent (cyclomatic 26): MarkdownAgentsHandler.CreateMarkdownAgent has cyclomatic complexity 26 (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":"internal/handler/markdown_agents.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbd491536007c977e30d433172561710dd90d16c60ad796e844bd3a9051128b"}},{"ruleId":"D1","level":"warning","message":{"text":"RobotHandler.cmdVulnerabilityAlerts (cyclomatic 26): RobotHandler.cmdVulnerabilityAlerts has cyclomatic complexity 26 (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":"internal/handler/vulnerability_alert.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f6261395cf671f337ce55bc15689a026240f025dc57bb4bbf40b3621ccbf293"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.ChatCompletionStream (cyclomatic 26): Client.ChatCompletionStream has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/openai.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"44e32cf7d3bd6725aeac856b360d84815d906ba277f8d8c5c6f4691beaf181f2"}},{"ruleId":"D1","level":"warning","message":{"text":"security.streamCommandOutput (cyclomatic 26): security.streamCommandOutput has cyclomatic complexity 26 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 10 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":"internal/security/executor.go"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3129da8ddc5a14bd6fac094f82d60b2e5986560d490c2fe9e59d3e11e0a3e2d"}},{"ruleId":"D1","level":"warning","message":{"text":"security.findStandaloneAmpersandPositions (cyclomatic 26): security.findStandaloneAmpersandPositions has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/shell_background_io.go"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a66303bf7d4158ca9adc9381ea5d90d23c2733098c26bd7b3b693e5ae39742a"}},{"ruleId":"D1","level":"warning","message":{"text":"update.validateRollbackEvidence (cyclomatic 26): update.validateRollbackEvidence has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/recovery_evidence.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"6516fef7acb4379f396419a162a0a8e076b61c91fceaad2559b5ab31dccb3266"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.openAssetDetailRecord (cyclomatic 26): assets.openAssetDetailRecord has cyclomatic complexity 26 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9bceb2d9ea56962b5f5608e0dd645da60d7991d238fa5e8652f0f63ca030f59"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.C2.renderSessions (cyclomatic 26): c2.C2.renderSessions has cyclomatic complexity 26 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 5 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef2465b6ccbe9f31cb400d292384ca6841ce8d3583653ec47703ea1789841c8"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.ensureProjectSidebarStructure (cyclomatic 26): chat.ensureProjectSidebarStructure has cyclomatic complexity 26 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6089}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ed3cb66f751cfeb6d80728ffe4186c3818eceb4f704b66f8f7d0def39a59524"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.showNodeDetails (cyclomatic 26): chat.showNodeDetails has cyclomatic complexity 26 (threshold 15). Of this number, 25 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":"web/static/js/chat.js"},"region":{"startLine":7961}}}],"partialFingerprints":{"codehealthFindingId/v1":"132574ba1c4f403da454db0b17bbd19e2eb7a50fc7d238bb1b5acd0c2b9619e5"}},{"ruleId":"D1","level":"warning","message":{"text":"mobile-ui.filterNav (cyclomatic 26): mobile-ui.filterNav has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 5 of the 26 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 541, 550, 583, \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":"web/static/js/mobile-ui.js"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"eec2372aed99987079860399b8595344fb0f9dd19c34533129cbb8decd62a406"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderMcpStatsTimelineBody (cyclomatic 26): monitor.renderMcpStatsTimelineBody has cyclomatic complexity 26 (threshold 15). Of this number, 24 points are the body\u0027s own statements and 2 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":"web/static/js/monitor.js"},"region":{"startLine":8126}}}],"partialFingerprints":{"codehealthFindingId/v1":"54058712d6e37dfa079a1da4d337c80b2abb102690c0fb5bc5922f840ec73f26"}},{"ruleId":"D1","level":"warning","message":{"text":"rbac.renderRbacRoles (cyclomatic 26): rbac.renderRbacRoles has cyclomatic complexity 26 (threshold 15). Of this number, 21 points are the body\u0027s own statements and 5 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":"web/static/js/rbac.js"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb61b9e61191e5d8be55c8d23ce456b59f827bf695c03e07e167ebce7c7f40d5"}},{"ruleId":"D1","level":"warning","message":{"text":"rbac.renderRbacAssignments (cyclomatic 26): rbac.renderRbacAssignments has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 11 of the 26 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 870, 888, 854). 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":"web/static/js/rbac.js"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"276fc9a9e5ae0b509d59899689285b08390a8612b92d48608157b7cb66adfe01"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.enhanceSettingsSelect (cyclomatic 26): settings.enhanceSettingsSelect has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 8 of the 26 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 242, 271, 234). 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":"web/static/js/settings.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"a905f4edf2283b34b9e5217db10885b83b8da2edb65091646961fb2d15a29d17"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.fetchModelList (cyclomatic 26): settings.fetchModelList has cyclomatic complexity 26 (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":"web/static/js/settings.js"},"region":{"startLine":3618}}}],"partialFingerprints":{"codehealthFindingId/v1":"eafdbba674235916ce222b86eb97ff930e1656ae5b0d740a4eb92efcd70b569a"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.saveToolsConfig (cyclomatic 26): settings.saveToolsConfig has cyclomatic complexity 26 (threshold 15). Of this number, 20 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":"web/static/js/settings.js"},"region":{"startLine":4159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f937d08868f6b2964fff2a9b60554887f525ac4a1b2f255768eacd6d90cd799"}},{"ruleId":"D1","level":"warning","message":{"text":"skills.renderSkillsPagination (cyclomatic 26): skills.renderSkillsPagination has cyclomatic complexity 26 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 4 belong to one function item 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":"web/static/js/skills.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb64fca5eeef0c8255d9d8fa42a0916ef08147d489d57e1fb3d7dbfecafe6d82"}},{"ruleId":"D1","level":"warning","message":{"text":"cancelMCPToolExecutionSubmit (cyclomatic 26): cancelMCPToolExecutionSubmit has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, 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":"web/static/js/chat.js"},"region":{"startLine":5781}}}],"partialFingerprints":{"codehealthFindingId/v1":"614504b148aa2a3ee3daa5c0486136aac4b9bef19b8847c554c17b154d5e903d"}},{"ruleId":"D1","level":"warning","message":{"text":"syncHitlConfigFromServer (cyclomatic 26): syncHitlConfigFromServer has cyclomatic complexity 26 (threshold 15). Of this number, 25 points are the body\u0027s own statements and 1 belongs 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":"web/static/js/hitl.js"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f495c49e8f0583ff0facab470a64d07af706eacd49b42702814a78912822fa"}},{"ruleId":"D1","level":"warning","message":{"text":"followAgentRunAfterHitlDecision (cyclomatic 26): followAgentRunAfterHitlDecision has cyclomatic complexity 26 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 7 belong to 8 function items inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fe44d6cca76155d59b7af4b16155c78c7ecdae539bae3e30635d88eb7b3023d"}},{"ruleId":"D1","level":"warning","message":{"text":"reconcileConversationAfterTaskReplay (cyclomatic 26): reconcileConversationAfterTaskReplay has cyclomatic complexity 26 (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":"web/static/js/monitor.js"},"region":{"startLine":5544}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc6787378d2a6c2ba2b06cac2be75e1bf458f80455c70360aa6195131db8814"}},{"ruleId":"D1","level":"warning","message":{"text":"toggleToolDetail (cyclomatic 26): toggleToolDetail has cyclomatic complexity 26 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 10 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":"web/static/js/settings.js"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cb6774b6074a418ac579066123dcde46ef1a1242835ef1a526c08e3e45e86d2"}},{"ruleId":"D1","level":"warning","message":{"text":"webshellAiConvListSelect (cyclomatic 26): webshellAiConvListSelect has cyclomatic complexity 26 (threshold 15). Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 2405, 2401, 2395, \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":"web/static/js/webshell.js"},"region":{"startLine":2392}}}],"partialFingerprints":{"codehealthFindingId/v1":"56c094527cf091509ea98d2ec257c502dd6ec5f2f62994de96b2fb98ee4c46a3"}},{"ruleId":"D1","level":"warning","message":{"text":"App.RunWithContext (cyclomatic 25): App.RunWithContext has cyclomatic complexity 25 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"eab4de8b5d5ad60b1db43d1e9e2593363ee655b3afabd0f75dd8eadf35f3d271"}},{"ruleId":"D1","level":"warning","message":{"text":"app.authorizeC2Action (cyclomatic 25): app.authorizeC2Action has cyclomatic complexity 25 (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":"internal/app/mcp_authorization.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecbc68bb7a6633ebf85809e923d923b2368352c2b84d3d49ca5936ab5e0d220"}},{"ruleId":"D1","level":"warning","message":{"text":"Manager.EnqueueTask (cyclomatic 25): Manager.EnqueueTask has cyclomatic complexity 25 (threshold 15). Of this number, 24 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":"internal/c2/manager.go"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f5ada86d078d32996176f37500adbbe2c03a78f510c1a70e0ae2121069ef470"}},{"ruleId":"D1","level":"warning","message":{"text":"database.validateAsset (cyclomatic 25): database.validateAsset 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":"internal/database/asset.go"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ed0bc24bb5d81c85c2c6a4ba5702a6cff36faa0173186073142bea3cb04ec58"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentTaskManager.CancelTask (cyclomatic 25): AgentTaskManager.CancelTask 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":"internal/handler/task_manager.go"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"7373c4b6b82f03eb1e8b213731103ed84c08f588e1b37203d2b7a215cf8b0d12"}},{"ruleId":"D1","level":"warning","message":{"text":"SQLiteIndexer.Store (cyclomatic 25): SQLiteIndexer.Store has cyclomatic complexity 25 (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":"internal/knowledge/sqlite_indexer.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0798238d73d3ebe1ec6165fd5457627a31a228d2bb287be14690aefdec13f43"}},{"ruleId":"D1","level":"warning","message":{"text":"api-docs.testAPI (cyclomatic 25): api-docs.testAPI has cyclomatic complexity 25 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 7 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":"web/static/js/api-docs.js"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5aa0b1d7456ea2ae950b3825d1e3e9abe812cb960fb28f332cac16124fdd164"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.assetExportRows (cyclomatic 25): assets.assetExportRows has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 1 of the 25 points is its own statement and the rest belongs to one function literal inside it that branches (line 1022). 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":"web/static/js/assets.js"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9ab8145698950d6eccabed716a4cd70ef4ff69c800a1502bfb5ebef02e3afb"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-files.exportChatFiles (cyclomatic 25): chat-files.exportChatFiles 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":"web/static/js/chat-files.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c74cb701b720afd37f34c4c6ea76ec0fbd1aa54cdcfeafad207c5b075366309"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.renderMentionSuggestions (cyclomatic 25): chat.renderMentionSuggestions has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 3152, 3198). 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":"web/static/js/chat.js"},"region":{"startLine":3125}}}],"partialFingerprints":{"codehealthFindingId/v1":"68b7ce9bdca910c835afa3080c2c41846ef0f8be1033b860646088ce380360e7"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.syncAssistantTurnSummary (cyclomatic 25): chat.syncAssistantTurnSummary 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":"web/static/js/chat.js"},"region":{"startLine":5150}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe106e1cefe9d5f2df637f6d6c316cf96a1f7a48318ffac6aff002087f903014"}},{"ruleId":"D1","level":"warning","message":{"text":"chat._acCollectExportData (cyclomatic 25): chat._acCollectExportData has cyclomatic complexity 25 (threshold 15). Most of this is not in the body itself: 2 of the 25 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 8406, 8436). 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":"web/static/js/chat.js"},"region":{"startLine":8403}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5cc9f17c0cc1908cd9bc9f27e1ec2aa24aea2c7b90661916999f81145b9458b"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.webshellDbRenderTable (cyclomatic 25): webshell.webshellDbRenderTable has cyclomatic complexity 25 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 8 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":"web/static/js/webshell.js"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f46e1a74e68a0bf74b9a9b6d682f511c368ab08450adb98d6b88b98a25f09b"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.parseWebshellDbSchema (cyclomatic 25): webshell.parseWebshellDbSchema has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 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":"web/static/js/webshell.js"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b19f59780cac6a241c2e3a24b7ce9178ddb146dd8ac949778e8ab79f8665627"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.renderWorkflowPackageResolution (cyclomatic 25): workflows.renderWorkflowPackageResolution 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":"web/static/js/workflows.js"},"region":{"startLine":2690}}}],"partialFingerprints":{"codehealthFindingId/v1":"461af6c18e0d00c847b7cf1864dc7531ed1f429868c69f8d4748e5cb08c4be9b"}},{"ruleId":"D1","level":"warning","message":{"text":"copyCurlCommand (cyclomatic 25): copyCurlCommand has cyclomatic complexity 25 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 9 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/api-docs.js"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8cec64873aa906e400ba39dc4d0b4bb54db8ebe1e75a11f2407c2df2740778e"}},{"ruleId":"D1","level":"warning","message":{"text":"deleteKnowledgeItem (cyclomatic 25): deleteKnowledgeItem has cyclomatic complexity 25 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 5 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":"web/static/js/knowledge.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"705b4a9cc2848ba90b28b1c224396cadb8dd59af16f5a1bc3b5bf16b78e43820"}},{"ruleId":"D1","level":"warning","message":{"text":"persistAIChannelsToServer (cyclomatic 25): persistAIChannelsToServer 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":"web/static/js/settings.js"},"region":{"startLine":3025}}}],"partialFingerprints":{"codehealthFindingId/v1":"30174bf77c98cea9fd6a1e99c42239ba2ddce58f93e53aa8db919712b40d691b"}},{"ruleId":"D1","level":"warning","message":{"text":"app.registerWebshellTools (cyclomatic 24): app.registerWebshellTools has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 3 of the 24 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1560, 1660, 1627, \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":"internal/app/app.go"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"7341b399b2799169cbf5513e500a99d336b744cf2f641bda0e5fd994eb0b69b9"}},{"ruleId":"D1","level":"warning","message":{"text":"app.assetFilterFromToolArgs (cyclomatic 24): app.assetFilterFromToolArgs has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/asset_tools.go"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8ae4596d30622e81e950388efda761f1746f43f7954a39b2b8ce67511062252"}},{"ruleId":"D1","level":"warning","message":{"text":"config.Load (cyclomatic 24): config.Load has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d48e9a2bc01ff18f20ea1c695d9f3a3b233bc10075d8d7cdd9e8ce9e0776ffa"}},{"ruleId":"D1","level":"warning","message":{"text":"config.WriteVersion (cyclomatic 24): config.WriteVersion has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"a45433a0fc2d767cb9de06bdf57a4f11bee91528d92221f631962b9a57e69b9a"}},{"ruleId":"D1","level":"warning","message":{"text":"database.tokenizeSchema (cyclomatic 24): database.tokenizeSchema has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/schema_reconcile.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c760d13ccce2a6c6155aec5282e844ebec6f29a62367c51d5230d06bde49d0c"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.UpdateAssetsBulk (cyclomatic 24): DB.UpdateAssetsBulk has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"8143bc8ccb420b26657ea49a7212d6471b49abd42ff2b898b651b11971ad37d5"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.BootstrapRBAC (cyclomatic 24): DB.BootstrapRBAC has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65c76a5d10a320d8ebba7a1946f2abb02ac1943058dcee362bb1d45d24ab05b"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.enrichSpecWithI18nKeys (cyclomatic 24): handler.enrichSpecWithI18nKeys has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/openapi_i18n.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cd43f0846f982d627e1a793726f41e5c2b080000e6f0731af55b93ceb62e40a"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatUploadsHandler.ResolvePath (cyclomatic 24): ChatUploadsHandler.ResolvePath has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"758fb2c7a2ca189cf3f745ea4b754292f6b9a2fca92870e89004ae7e29f7f3cb"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatUploadsHandler.Upload (cyclomatic 24): ChatUploadsHandler.Upload has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"44233793bec3c15e67fd8202a39141c1420c6a0f5c977d08e5fb522c06fd911d"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigHandler.resolveProbeHeaders (cyclomatic 24): ConfigHandler.resolveProbeHeaders has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config_probe_headers.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"d076f1862b734684e2d3978c1f63839f89324f15b37f399d4b83b7671060ad44"}},{"ruleId":"D1","level":"warning","message":{"text":"SkillsHandler.GetSkills (cyclomatic 24): SkillsHandler.GetSkills has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/skills.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff250058f44fec92bd736e6cac3975ce1110ae8bbb8ce5474349efc99a5a1afd"}},{"ruleId":"D1","level":"warning","message":{"text":"VulnerabilityHandler.UpdateVulnerability (cyclomatic 24): VulnerabilityHandler.UpdateVulnerability has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"6edbeb05fc99cf52a67cc753515bd8ebda4547a7b8fa53bb34f40e9bb311b551"}},{"ruleId":"D1","level":"warning","message":{"text":"robot.handleDingMessage (cyclomatic 24): robot.handleDingMessage has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/ding.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"965ebee2f6f782612e155a3f584065c090c2f4da3a3d1a1b867872a99382cadb"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.RunRoleBoundWorkflow (cyclomatic 24): workflow.RunRoleBoundWorkflow has cyclomatic complexity 24 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/runner.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"17ccb4e7197ac3af3bedc6da3111a1e27a70d9c951bfca9547957bbf70645ac9"}},{"ruleId":"D1","level":"warning","message":{"text":"SimpleJson.extractStringField (cyclomatic 24): SimpleJson.extractStringField has cyclomatic complexity 24 (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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SimpleJson.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9ca2959b0be0ac9ec5a765a71de6b45fa4cfc4a388ef175433655807ba7d19"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.parseAssetEditorTarget (cyclomatic 24): assets.parseAssetEditorTarget has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bb317d0d58d749be245f3b709e4e0e92843825db73c7f13eb00e1d400f08eb8"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.enhanceSessionSettingsSelect (cyclomatic 24): chat.enhanceSessionSettingsSelect has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 266, 297, 257). 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":"web/static/js/chat.js"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"f900527aec90d762b0f712bbc5892e0d9f0c156bf487336de269fdec27baf786"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.chatSystemModelConfigState (cyclomatic 24): chat.chatSystemModelConfigState has cyclomatic complexity 24 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 5 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d230a9445dc94ac4732ba46e51e19f3ae2b33375b909e38001f06201e1a818f"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.fetchMentionTools (cyclomatic 24): chat.fetchMentionTools has cyclomatic complexity 24 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, 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":"web/static/js/chat.js"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"d539bc44f320303bb3c5cb2e634ee928adc2ebfba2d0fcbaf1e5f30ef745e9e5"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderSeverityDonut (cyclomatic 24): dashboard.renderSeverityDonut has cyclomatic complexity 24 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 7 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":"web/static/js/dashboard.js"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"b005801bd7885e34e23b8f02034e230f491f0fb971a19b1d5dcc4a0bcb93bcf7"}},{"ruleId":"D1","level":"warning","message":{"text":"info-collect.renderFofaResults (cyclomatic 24): info-collect.renderFofaResults has cyclomatic complexity 24 (threshold 15). Of this number, 17 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":"web/static/js/info-collect.js"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"769dd8c40ad6e1df9c5d4a895b519ba3dee103ade93bd90dcbce0c0ea5224307"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.toggleProcessDetails (cyclomatic 24): monitor.toggleProcessDetails has cyclomatic complexity 24 (threshold 15). Of this number, 22 points are the body\u0027s own statements and 2 belong to one function item 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":"web/static/js/monitor.js"},"region":{"startLine":2575}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee96956a6c2478e4e2f726b8ad03c0b63f334995b2c8ee34510052d079a9589b"}},{"ruleId":"D1","level":"warning","message":{"text":"update.pollUpdateJob (cyclomatic 24): update.pollUpdateJob has cyclomatic complexity 24 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/update.js"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"94d8a33f17b225b77f496be724b44cbb70c996f5ed72b6ea4beaa792d00d1692"}},{"ruleId":"D1","level":"warning","message":{"text":"vulnerability.saveVulnerability (cyclomatic 24): vulnerability.saveVulnerability has cyclomatic complexity 24 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f64a4c7578710f04dfad67978cf63f2d90ed4b045377475da512fcef94bc081"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.parseWebshellDbColumns (cyclomatic 24): webshell.parseWebshellDbColumns has cyclomatic complexity 24 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 5 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":"web/static/js/webshell.js"},"region":{"startLine":2010}}}],"partialFingerprints":{"codehealthFindingId/v1":"634a124c20f86e432f97450c9f5b475cc73cbd1b755562adf92ed41e445851c1"}},{"ruleId":"D1","level":"warning","message":{"text":"agentruntime.preparePiRuntime (cyclomatic 23): agentruntime.preparePiRuntime has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentruntime/build.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3eb47ba2e96af0e72e3f4b5e4b1ee37b94edad128d07c7c1c4b44eeda3567f0"}},{"ruleId":"D1","level":"warning","message":{"text":"app.initializeKnowledge (cyclomatic 23): app.initializeKnowledge has cyclomatic complexity 23 (threshold 15). Of this number, 13 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":"internal/app/app.go"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f472af341b7e4f2bd7f46c4b8e812db8933925745c5fe9bc271d416a0c3f87b"}},{"ruleId":"D1","level":"warning","message":{"text":"attackchain.PromoteToProject (cyclomatic 23): attackchain.PromoteToProject has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/promote_project.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"df7c6d16c6be0b598d523fbe724cdaa9c4ba282ae15a45d9210b007e93e58800"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.reconcileSchema (cyclomatic 23): DB.reconcileSchema has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/schema_reconcile.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8123ff13fb7f11d4506a0900ef3b6f6683381d489e8b23d29c9f5a6ddf78400f"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.updateExternalMCPConfig (cyclomatic 23): handler.updateExternalMCPConfig has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/external_mcp.go"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3fe9e03d21d32f2178bb176063b8b8c16b1d2b0379ed0d42950ceb4fb95d465"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchTaskManager.PrepareSingleTaskRun (cyclomatic 23): BatchTaskManager.PrepareSingleTaskRun has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"80b9b06dc84c49c71754181e4813fe3702d7869a7d856815375c2f0b095b517f"}},{"ruleId":"D1","level":"warning","message":{"text":"RoleHandler.UpdateRole (cyclomatic 23): RoleHandler.UpdateRole has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0f07af57d1cb0fecc17d5236879cf0d68e34379c1323851b15966c5f2737bcf"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowHandler.save (cyclomatic 23): WorkflowHandler.save has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"7af2f4e0122267d96b4705a6bdbdbc7d6d31d83ec33a267c53b3ffbb2d000a5f"}},{"ruleId":"D1","level":"warning","message":{"text":"nativeSplitter.Transform (cyclomatic 23): nativeSplitter.Transform has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/splitter.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d0b919d2d4902e27e3789a9f84a3437542fb14bbc84d5b504c5a8b63abbb0d"}},{"ruleId":"D1","level":"warning","message":{"text":"VectorRetriever.Retrieve (cyclomatic 23): VectorRetriever.Retrieve has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/vector_retriever.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4afc72503db94e5c539e6f5256113f85d7579e8c038d8f71f6dd61fad70d60dd"}},{"ruleId":"D1","level":"warning","message":{"text":"update.checkRecoveryValue (cyclomatic 23): update.checkRecoveryValue has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/recovery_evidence.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"92531a5222d36f26ad8b95d7a22db5be6a67815c46cc3c9240bfb31c828db071"}},{"ruleId":"D1","level":"warning","message":{"text":"api-docs.renderTestSection (cyclomatic 23): api-docs.renderTestSection has cyclomatic complexity 23 (threshold 15). Of this number, 15 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":"web/static/js/api-docs.js"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b2a42ad2897356feb7a10605bde551df9a81b26aa8e6617291eb8fdcd6bd6c4"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.c2ProjectDisplayName (cyclomatic 23): c2.c2ProjectDisplayName has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"90ab07e6ea0685e8484551ff364b1a457be0aad701e3b6f2ef60d8eefad4f3a3"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.C2.renderSessionDetail (cyclomatic 23): c2.C2.renderSessionDetail has cyclomatic complexity 23 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 6 belong to 4 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"be45c3faa9c8bf2c70622404160bc3225b79fa4a541f0a64399ba410a78cdd2a"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.applyHitlSidebarConfig (cyclomatic 23): chat.applyHitlSidebarConfig has cyclomatic complexity 23 (threshold 15). To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"0270c602c36b0df1a7a106d5469027bec37ab21993bdcee2449f0e7b577327dc"}},{"ruleId":"D1","level":"warning","message":{"text":"hitl.hitlAuditEngineFromItem (cyclomatic 23): hitl.hitlAuditEngineFromItem has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a9fb95f50269f342e5c580bc4b9df152283e1483dec6c7d8489887fad75e10"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderInlineHitlApproval (cyclomatic 23): monitor.renderInlineHitlApproval has cyclomatic complexity 23 (threshold 15). To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4467}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d595bae0a6ce8a35e317f6b92f4e71a71c892771d0f53bfe3e498cc5ff3ee54"}},{"ruleId":"D1","level":"warning","message":{"text":"roles.initSelectionDetailTooltip (cyclomatic 23): roles.initSelectionDetailTooltip 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 6 function items inside it that branch (a function literal at line 217, a function literal at line 222, positionTooltip, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfc8af47ba268c8f8cbd6a2b5128fc24a6122f401eda01b7992107b7c3143e7"}},{"ruleId":"D1","level":"warning","message":{"text":"roles.renderRolesList (cyclomatic 23): roles.renderRolesList has cyclomatic complexity 23 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 11 belong to 2 function literals inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"ece698583f891bdc658feff86fa43901087c4e5feb967edb6dedbc44b951a9d1"}},{"ruleId":"D1","level":"warning","message":{"text":"vulnerability.refreshVulnerabilityProjectFilter (cyclomatic 23): vulnerability.refreshVulnerabilityProjectFilter 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, 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":"web/static/js/vulnerability.js"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ef93360b1955df9f69f6b0aaf9a3a8039198d3769aeede8e24ab7b27e4a114b"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.selectWebshell::applyActiveDbProfileToForm (cyclomatic 23): webshell.selectWebshell::applyActiveDbProfileToForm has cyclomatic complexity 23 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This shape REPEATS in the file: one other method here (webshell.selectWebshell) 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":"web/static/js/webshell.js"},"region":{"startLine":2876}}}],"partialFingerprints":{"codehealthFindingId/v1":"a98f4d3416a4ded5ec93bb1f25a9e4832303077034f896ea5ae7d429173785c2"}},{"ruleId":"D1","level":"warning","message":{"text":"openNotificationTarget (cyclomatic 23): openNotificationTarget has cyclomatic complexity 23 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 8 belong to 5 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/notifications.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"d049c164312acdd714569bf1438b332ff8554548837e389f62895230721ae088"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent.repairOrphanToolMessages (cyclomatic 22): Agent.repairOrphanToolMessages 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":"internal/agent/agent.go"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ab54a4cfdda1c5a7099c8d20427dc0cbecfe7123247025a699e8544757066fd"}},{"ruleId":"D1","level":"warning","message":{"text":"Builder.formatProcessDetailsForAttackChain (cyclomatic 22): Builder.formatProcessDetailsForAttackChain 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":"internal/attackchain/builder.go"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e69ded01ef85545b5961758dc7f56ecf17f296a5bc35166058e6b0beb1a714"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.ValidateBeaconDialHost (cyclomatic 22): c2.ValidateBeaconDialHost 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":"internal/c2/beacon_host.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4138de42663632b2c81db9292e69a67fe50b30d5c952a62fe68313dda4958185"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.UpsertAssets (cyclomatic 22): DB.UpsertAssets 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":"internal/database/asset.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"17f54884d49669d2d66bae9d06532eed1f8afdd1c094167a3caa78747fa878f3"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.CreateBatchQueue (cyclomatic 22): AgentHandler.CreateBatchQueue 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":"internal/handler/agent.go"},"region":{"startLine":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab0a7d4b03d6a33b71c57312cc153d62b0531101b647002893acbc30828d2965"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.submitAgentRunWithExecutor (cyclomatic 22): AgentHandler.submitAgentRunWithExecutor 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":"internal/handler/async_agent_runs.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"a458c9bb18f2ffea5b321a2b9bc08d6ac975542711796222858f73eb4e157a81"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.handleBatchSubTaskRunError (cyclomatic 22): AgentHandler.handleBatchSubTaskRunError 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":"internal/handler/batch_queue_executor.go"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"92aa3aac722059cfaeaef6f20edcd827858de0dad50ed6f50d1adca8956082be"}},{"ruleId":"D1","level":"warning","message":{"text":"AssetHandler.Merge (cyclomatic 22): AssetHandler.Merge has cyclomatic complexity 22 (threshold 15). Of this number, 20 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, 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":"internal/handler/asset.go"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4259495c05e4da931f62138fed55163e13e2ef847f56968fe2357cb6f0d786"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatUploadsHandler.Download (cyclomatic 22): ChatUploadsHandler.Download 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":"internal/handler/chat_uploads.go"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"07fdee5f06bc86a38037e9c5f08486ddb188cd0835f09c62f08723beb8d3478d"}},{"ruleId":"D1","level":"warning","message":{"text":"FofaHandler.Search (cyclomatic 22): FofaHandler.Search 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":"internal/handler/fofa.go"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"96682f06fb4977ac3371f1587eeca21caf3d4627b782c5c1f72469de73d77eb9"}},{"ruleId":"D1","level":"warning","message":{"text":"RobotHandler.HandleWecomPOST (cyclomatic 22): RobotHandler.HandleWecomPOST has cyclomatic complexity 22 (threshold 15). Of this number, 21 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":"internal/handler/robot.go"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"8535a5ea2b05254b56277210160a91f5cc289c667bdef74c105b2df946f93359"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentTaskManager.FinishTaskRun (cyclomatic 22): AgentTaskManager.FinishTaskRun 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":"internal/handler/task_manager.go"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"1694926b8188451bb3e0e87dcb50d9030a6c67f7f04917bd5d6661e3276ad773"}},{"ruleId":"D1","level":"warning","message":{"text":"project.SyncBodyLinksSection (cyclomatic 22): project.SyncBodyLinksSection 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":"internal/project/fact_body_links.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"5db8a26b7c328c55e362fb651a62f72273275db0944163b8d7f80ce52edb38ce"}},{"ruleId":"D1","level":"warning","message":{"text":"reasoning.ProviderExtraFields (cyclomatic 22): reasoning.ProviderExtraFields 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":"internal/reasoning/provider.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d988681b14e5fe9a5dd330e19aa9e559a8dfbf0da35e2d53d09ca3563f6f059"}},{"ruleId":"D1","level":"warning","message":{"text":"robot.SendProactive (cyclomatic 22): robot.SendProactive 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":"internal/robot/proactive.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6b4de1988912a7e90bb5c0d1768a2bbffbad011e850e20b3839983ed68e3ce0"}},{"ruleId":"D1","level":"warning","message":{"text":"update.finishRollback (cyclomatic 22): update.finishRollback 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":"internal/update/rollback_pending.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd4d26195df0efe908c575bb4d825c31a2eb2a8fcf605bc4ed135620878d946b"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.normalizeLLMDraft (cyclomatic 22): workflow.normalizeLLMDraft 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":"internal/workflow/draft_generator.go"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ec8b8c04ee40b5a4a471eaaca13f71009408914fed04698a1166ca404e2f4f"}},{"ruleId":"D1","level":"warning","message":{"text":"CyberStrikeAITab.wireActions (cyclomatic 22): CyberStrikeAITab.wireActions 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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab535d2657de143568ad8cdf06d6b2ee7acbf46ff45263356118795d673da89"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.ensureAssetEditorInteractions (cyclomatic 22): assets.ensureAssetEditorInteractions has cyclomatic complexity 22 (threshold 15). Most of this is not in the body itself: 2 of the 22 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 1516, 1511, 1505, \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":"web/static/js/assets.js"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5eb006af9a16ba34779139509f13ff2934ad3a04e59a2ba2eb92e1cc58e0221"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.saveAsset (cyclomatic 22): assets.saveAsset 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":"web/static/js/assets.js"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3cf305d6d4ee1878f16a39d9d6ebd9b947f918717ac8891684d7d3b2eae200"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.C2.renderTasks (cyclomatic 22): c2.C2.renderTasks has cyclomatic complexity 22 (threshold 15). Of this number, 16 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":"web/static/js/c2.js"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab4098fc64c2ac18d9a6bc0d812e5fc56e61601b3b7858df8d3cef2cc3fa398b"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-plan-progress.handlePlanToolEvent (cyclomatic 22): chat-plan-progress.handlePlanToolEvent 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":"web/static/js/chat-plan-progress.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"3989936d65df91fc797be7f01e1e90d0ce4fd0260e67efe106239373d537eac8"}},{"ruleId":"D1","level":"warning","message":{"text":"modal.prepareSurface (cyclomatic 22): modal.prepareSurface has cyclomatic complexity 22 (threshold 15). Of this number, 21 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":"web/static/js/modal.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"5057edf0d3d2de0508df4d02c392051f9ddcc743143fe99edad9e9c13b75af61"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.integrateProgressToMCPSection (cyclomatic 22): monitor.integrateProgressToMCPSection 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":"web/static/js/monitor.js"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"059eba3f51b4d1b217aa94fa8a59bd395cb0edfe7497ffe0a6f0e6f3b3958f64"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.updateProcessDetailsPaginationButtons (cyclomatic 22): monitor.updateProcessDetailsPaginationButtons has cyclomatic complexity 22 (threshold 15). Of this number, 18 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":"web/static/js/monitor.js"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"d79410e8656419f740af550996f50f17f9e6659c6c829e5faaa92d957bc11034"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderMcpStatsCombinedSection (cyclomatic 22): monitor.renderMcpStatsCombinedSection 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":"web/static/js/monitor.js"},"region":{"startLine":8174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9e34e8b212cddf73c41c6a35b0f36274bf8e87b068583b75c1a1193d6c0a54f"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.switchSettingsSection (cyclomatic 22): settings.switchSettingsSection 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":"web/static/js/settings.js"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b67df1c659591e4e284d12cb5ad279c9e2869e38a97c751886ca4285c9e9043"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.resolveSavedAIChannelId (cyclomatic 22): settings.resolveSavedAIChannelId has cyclomatic complexity 22 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2990}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5e0c0317018567242f905bb552f9687301cbbe28450b686083bfd9071fb6ad4"}},{"ruleId":"D1","level":"warning","message":{"text":"skills.selectSkillPackageFile (cyclomatic 22): skills.selectSkillPackageFile 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":"web/static/js/skills.js"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e544c4d86b8022660eea5707c5db8968d164c5b0ed9e34ad7283560cb21faa5"}},{"ruleId":"D1","level":"warning","message":{"text":"skills.viewSkill (cyclomatic 22): skills.viewSkill has cyclomatic complexity 22 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 11 belong to 2 function literals inside it that branch. To reduce it, 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":"web/static/js/skills.js"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"737423355c0ec2048159fc56001166f270d120c08dc36f60b18e2c76dd629da1"}},{"ruleId":"D1","level":"warning","message":{"text":"storage.renderRows (cyclomatic 22): storage.renderRows has cyclomatic complexity 22 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 11 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":"web/static/js/storage.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"02737ca3d13cd558f00a5c752a97ae3e7d0066369cc45e39c571124246691565"}},{"ruleId":"D1","level":"warning","message":{"text":"storage.renderResult (cyclomatic 22): storage.renderResult has cyclomatic complexity 22 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 10 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":"web/static/js/storage.js"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"7990fab2b0cf0bc5942111eeb9dd87e4427858eccae3cf7d78e19c5a475a0233"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.parseWebshellDbTableColumns (cyclomatic 22): webshell.parseWebshellDbTableColumns has cyclomatic complexity 22 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 5 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":"web/static/js/webshell.js"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec14547fc9b790779bfebc3c0fe6451db55d9e197f6cff03f4d1782b52c04140"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.renderDirectoryTree::renderNode (cyclomatic 22): webshell.renderDirectoryTree::renderNode 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. This shape REPEATS in the file: one other method here (webshell.renderDirectoryTree) 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":"web/static/js/webshell.js"},"region":{"startLine":4614}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffb08c6d1fe8153bc5bbe5680a502d1ba0f40875bf1fbdad5ab9272c98922f1f"}},{"ruleId":"D1","level":"warning","message":{"text":"uploadFileToImplant (cyclomatic 22): uploadFileToImplant 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 6 function items inside it that branch (a function literal at line 3031, a function literal at line 3022, a function literal at line 3045, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c85d29098023dc5aed2e6766dd8a9e2c98bd5850b0d14ea476e0847e566b421"}},{"ruleId":"D1","level":"warning","message":{"text":"applyWebshellDetectedOS (cyclomatic 22): applyWebshellDetectedOS has cyclomatic complexity 22 (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":"web/static/js/webshell.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"f187e380211cf0a044515ec3e991b17ddb709cb28f2bbf43fbc61da127d6ad43"}},{"ruleId":"D1","level":"warning","message":{"text":"probeWebshellConnection (cyclomatic 22): probeWebshellConnection 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 1254, 1236, 1261, \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":"web/static/js/webshell.js"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d16b5cf1d4954ae6ea08ec095af3573c1411f6ee1721d3bb668ed39cf210eb9"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.ListConversationPlanTasksSince (cyclomatic 21): DB.ListConversationPlanTasksSince 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":"internal/database/plantask.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6dd5791bdb7ade07f6dd2f55828b229e825020d43937c3640785abc72034b8c"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationHandler.GetMessageProcessDetails (cyclomatic 21): ConversationHandler.GetMessageProcessDetails 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":"internal/handler/conversation.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"a84cc85c4f72d715dddf1be1374ddc47134c987fae4bb9080b2e1e633b2f25da"}},{"ruleId":"D1","level":"warning","message":{"text":"MonitorHandler.loadExecutionsWithPagination (cyclomatic 21): MonitorHandler.loadExecutionsWithPagination 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":"internal/handler/monitor.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c33987045c9c57564309483c9cd584c5c225d42aac7859eab1c47caeaad1d4"}},{"ruleId":"D1","level":"warning","message":{"text":"WechatRobotHandler.HandleWechatQRCodeStatus (cyclomatic 21): WechatRobotHandler.HandleWechatQRCodeStatus 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":"internal/handler/wechat_robot.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"39552ac3c5ab274c15e2cea9416eaac21132544be4995dad2ad7f7c98f0b5995"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge.RegisterKnowledgeTool (cyclomatic 21): knowledge.RegisterKnowledgeTool 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 2 function literals inside it that branch (lines 102, 35). 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":"internal/knowledge/tool.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5f8e3087694e1eb14bd18666e4581b799ccd898f1b934fd55c90e9d3cfb6dea"}},{"ruleId":"D1","level":"warning","message":{"text":"SimpleJson.extractObjectArray (cyclomatic 21): SimpleJson.extractObjectArray 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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SimpleJson.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"2195ebf307613b967786c2074f32516348c20c330f0ba63fafc4a379ab0cd916"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.C2.renderEvents (cyclomatic 21): c2.C2.renderEvents 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, 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":"web/static/js/c2.js"},"region":{"startLine":4291}}}],"partialFingerprints":{"codehealthFindingId/v1":"7346a111d114e8ab44baeddd60de92d78415f152a114d4ceb7c6a43e7516d5e1"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.renderConversationsPagination (cyclomatic 21): chat.renderConversationsPagination 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":"web/static/js/chat.js"},"region":{"startLine":9917}}}],"partialFingerprints":{"codehealthFindingId/v1":"200a6c28edbc54318cad94689a7d41aed08a39cfa718ce3feea6c61124c957ed"}},{"ruleId":"D1","level":"warning","message":{"text":"fact-graph.resolveGraphNodeType (cyclomatic 21): fact-graph.resolveGraphNodeType 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":"web/static/js/fact-graph.js"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"128de0cd4ec2c347fb4bca4c84fa1f0488507dc54ef29fbbc48a4189d0d5079a"}},{"ruleId":"D1","level":"warning","message":{"text":"info-collect.showFofaParseModal (cyclomatic 21): info-collect.showFofaParseModal has cyclomatic complexity 21 (threshold 15). 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 968, 910, 962). 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":"web/static/js/info-collect.js"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"268012789ec34ecde2ae7e143af242aa013f1b0909186150d37a1ab55585ce78"}},{"ruleId":"D1","level":"warning","message":{"text":"mobile-ui.enableSelectionPanelSwipe (cyclomatic 21): mobile-ui.enableSelectionPanelSwipe 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 4 function literals inside it that branch (lines 302, 316, 327, \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":"web/static/js/mobile-ui.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"02f8971217e317bf7d4dcadae20287bf69dfba7a91d949bf1104859885e2ef2b"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.createVulnerabilityFromCurrentFact (cyclomatic 21): projects.createVulnerabilityFromCurrentFact has cyclomatic complexity 21 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"358d1ddbcd0c2e9dd6cb6d305ef53d88ba76290c0ac54e1ddbedd2f9a5afa7c7"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.loadChatProjectFolderContext (cyclomatic 21): projects.loadChatProjectFolderContext has cyclomatic complexity 21 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 6 belong to 2 function literals inside it that branch. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3413}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b3ae9a38a37b7fef500b91a6e579f1d732ca5b108b09ab03f077752eab6e8bb"}},{"ruleId":"D1","level":"warning","message":{"text":"roles.loadRoleTools (cyclomatic 21): roles.loadRoleTools 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":"web/static/js/roles.js"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"a43025e1c2b1407be4152aa244cf4b0a4423fd0473347628365cb773f99ef011"}},{"ruleId":"D1","level":"warning","message":{"text":"roles.renderRoleToolsPagination (cyclomatic 21): roles.renderRoleToolsPagination 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":"web/static/js/roles.js"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ac515642507af213b832e15257c10b3a8bd7517e02e32786bb910ce4fd20ed"}},{"ruleId":"D1","level":"warning","message":{"text":"tasks.getBatchQueueStatusPresentation (cyclomatic 21): tasks.getBatchQueueStatusPresentation 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":"web/static/js/tasks.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b421c18d20c8732cbdd029b550da09824a462d9d31f9de430021481221cfc7e7"}},{"ruleId":"D1","level":"warning","message":{"text":"tasks.renderBatchQueuesPagination (cyclomatic 21): tasks.renderBatchQueuesPagination 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":"web/static/js/tasks.js"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"42881221ee99682463fa19ca7cef279ade2cfa15a691ceae53cfc116e0c8cbd2"}},{"ruleId":"D1","level":"warning","message":{"text":"wechat-robot.pollWechatBindStatus (cyclomatic 21): wechat-robot.pollWechatBindStatus 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":"web/static/js/wechat-robot.js"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"b402ff0e97650d71351be2f2a0c941832eaf42077deff354cd1e2c00f1360330"}},{"ruleId":"D1","level":"warning","message":{"text":"saveMarkdownAgent (cyclomatic 21): saveMarkdownAgent 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":"web/static/js/agents.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6bfd79644e7a79c4397ec62d7110af383b5f424144de12e6061db6c3f54ac73"}},{"ruleId":"D1","level":"warning","message":{"text":"renderExternalMcpHealth (cyclomatic 21): renderExternalMcpHealth 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":"web/static/js/dashboard.js"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"1377dcc82d61e5f245348c1ef094e6bac8f2959be730b608d672b8e40ffcc4c7"}},{"ruleId":"D1","level":"warning","message":{"text":"Builder.formatAgentTraceFromChatMessages (cyclomatic 20): Builder.formatAgentTraceFromChatMessages 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":"internal/attackchain/builder.go"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cffa4a3027c827d77a982b2aa408e8af46835616c43145498427ae6ce419c64"}},{"ruleId":"D1","level":"warning","message":{"text":"Service.Record (cyclomatic 20): Service.Record 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":"internal/audit/service.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"22303de1d492944c56342c6136fab70eb448eb76b792885217750225b811b031"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.AssignResourcesToUser (cyclomatic 20): DB.AssignResourcesToUser 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":"internal/database/rbac.go"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"96be25ce15e375fbbb1547cd65d7c2783d0da59e42d49208c8692c37e36177f2"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.AssignResourcesToUserAuto (cyclomatic 20): DB.AssignResourcesToUserAuto 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":"internal/database/rbac.go"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfa48bb5839b0cd35efaaf2bc566ffa759710e78bfeb44742b77fdcb7948a5f0"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.startBatchQueueExecution (cyclomatic 20): AgentHandler.startBatchQueueExecution 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":"internal/handler/agent.go"},"region":{"startLine":2409}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b7f8779dee587555e9f20a192ce8bd6604ae5738171e5c7f0da0a3a3852323"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.waitHITLApproval (cyclomatic 20): AgentHandler.waitHITLApproval has cyclomatic complexity 20 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, 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":"internal/handler/hitl.go"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ebf2933548b510fc80d65777520dac86f962c57ae7c0f5ad4d58f96db7e002a"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.runRoleWorkflowStreamIfBound (cyclomatic 20): AgentHandler.runRoleWorkflowStreamIfBound has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_integration.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"e586b66c892f6c7fe1cc39313db8824ce0ede378a6b96e95c294ce38caff95bc"}},{"ruleId":"D1","level":"warning","message":{"text":"BatchTaskManager.ListQueuesForAccess (cyclomatic 20): BatchTaskManager.ListQueuesForAccess 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":"internal/handler/batch_task_manager.go"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb0736b9bf401d03b965f8cb2fab224ed8bf9279b1d757047f36d1830db0b14"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatUploadsHandler.collectReductionFiles (cyclomatic 20): ChatUploadsHandler.collectReductionFiles 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 one function literal inside it that branches (line 473). 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":"internal/handler/chat_uploads.go"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"892c5c864ead7ab6f654dc418e76b583ce8194effa004339ad8d7b9e747aa5e1"}},{"ruleId":"D1","level":"warning","message":{"text":"HITLManager.reconcileRestartInterruptedMessages (cyclomatic 20): HITLManager.reconcileRestartInterruptedMessages 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":"internal/handler/hitl.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"eca0369c38525480dddff4ba492fd702d2184e3e1a94b8ce5d4bc63e74d98d42"}},{"ruleId":"D1","level":"warning","message":{"text":"VulnerabilityHandler.ListVulnerabilities (cyclomatic 20): VulnerabilityHandler.ListVulnerabilities 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":"internal/handler/vulnerability.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec97d09606ce4a670281cdb34ad7a6f0e1434146c48720ebb33f4c24472917f"}},{"ruleId":"D1","level":"warning","message":{"text":"Manager.GetItemsWithOptions (cyclomatic 20): Manager.GetItemsWithOptions 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":"internal/knowledge/manager.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"542ec6d8af11285f12f787cb2e8262aa763c4255e5929c141b28d35a357cedf8"}},{"ruleId":"D1","level":"warning","message":{"text":"multiagent.piModelConfig (cyclomatic 20): multiagent.piModelConfig 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":"internal/multiagent/pi_model.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"920d8fab9f496d7e77e464ff588123f3380ae96916b142145dadfa7475a75d2d"}},{"ruleId":"D1","level":"warning","message":{"text":"security.finalizeJoinedBoundedOutputs (cyclomatic 20): security.finalizeJoinedBoundedOutputs has cyclomatic complexity 20 (threshold 15). Of this number, 18 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":"internal/security/executor.go"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"719ed6f037e90d390fd81ee2d33ee59d49efc3e9d87c5126c6bce2ad4a2d3baf"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor.parseAdditionalArgs (cyclomatic 20): Executor.parseAdditionalArgs 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":"internal/security/executor.go"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c1164bdcbb4b31e3a092767bb9d160c0854332067b36e91fcab0144b048922"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor.executeSystemCommand (cyclomatic 20): Executor.executeSystemCommand 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":"internal/security/executor.go"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"10b2a368484ea088f7f86df2c636ff78fadea9090045346d8533d1642ee4c8f2"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.validateNodeConfigs (cyclomatic 20): workflow.validateNodeConfigs 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":"internal/workflow/validation.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"90e6451bfe5267fe64c699b0ed4c42df59e6fed76112d7599362232e82325605"}},{"ruleId":"D1","level":"warning","message":{"text":"api.streamTest (cyclomatic 20): api.streamTest 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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"467cfe1c192bf3b40710bf4a7a6502484f4b91731bf89d0a79afe5e1dbe6eea0"}},{"ruleId":"D1","level":"warning","message":{"text":"audit-datetime-picker.ensurePopover (cyclomatic 20): audit-datetime-picker.ensurePopover has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 150, 208). 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":"web/static/js/audit-datetime-picker.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5da0b47de1c3ce11f58699fe4dd761dd51bdaa4ceec45e8af0a7ce5e528b32a"}},{"ruleId":"D1","level":"warning","message":{"text":"audit.showAuditLogDetail (cyclomatic 20): audit.showAuditLogDetail has cyclomatic complexity 20 (threshold 15). Of this number, 12 points are the body\u0027s own statements and 8 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":"web/static/js/audit.js"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"89f527c5fa8b9c940247c7b51372bc283f4c790d53568102231b854ca35d7d17"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.C2.setSessionSleep (cyclomatic 20): c2.C2.setSessionSleep has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 3 belong to 2 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":"web/static/js/c2.js"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"6363982c9f2cd7c4c83672c7ad9217266cda3a53883979147aee495ab5d8a9b7"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-files.renderChatFilesTable::rowHtmlTreeFile (cyclomatic 20): chat-files.renderChatFilesTable::rowHtmlTreeFile 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. This shape REPEATS in the file: 2 other methods here (chat-files.renderChatFilesTable, chat-files.renderChatFilesTable::rowHtml) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"205a5afeebf5c5ee368b2241c18e75e705bb1ae76db1dec4258f99278327550d"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-plan-progress.fetchPlanTasks (cyclomatic 20): chat-plan-progress.fetchPlanTasks 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":"web/static/js/chat-plan-progress.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffc4026a1ce2480a84b48cbd195e0fe68558f4d2dfb7a7cf0b54d4bf8e6459b"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.isAnonymousTaskFragmentToolCallDetail (cyclomatic 20): chat.isAnonymousTaskFragmentToolCallDetail 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":"web/static/js/chat.js"},"region":{"startLine":3922}}}],"partialFingerprints":{"codehealthFindingId/v1":"248abc655ee8212341763de02553d31820f3d3c47763f5e21990b1a1cf84ef0e"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.showConversationContextMenu (cyclomatic 20): chat.showConversationContextMenu has cyclomatic complexity 20 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10343}}}],"partialFingerprints":{"codehealthFindingId/v1":"507013a1c39c58b2beb41357fd64ebfea423782a2cf568d75579533c3c3f38b0"}},{"ruleId":"D1","level":"warning","message":{"text":"i18n.initI18n (cyclomatic 20): i18n.initI18n has cyclomatic complexity 20 (threshold 15). Of this number, 13 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":"web/static/js/i18n.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"a611beac4e6c1cb577bbaf86ec7bb6bde0a43ea3c4b0b819e5532fc5e90bafa3"}},{"ruleId":"D1","level":"warning","message":{"text":"info-collect.initInfoCollectProviderSelect (cyclomatic 20): info-collect.initInfoCollectProviderSelect 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 4 function literals inside it that branch (lines 494, 523, 486, \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":"web/static/js/info-collect.js"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"c82c7669a50c8d56fe4ddee377bdafd4d2d072cdb2aa9ba748fad747bd46f609"}},{"ruleId":"D1","level":"warning","message":{"text":"info-collect.bindFofaTableEvents (cyclomatic 20): info-collect.bindFofaTableEvents 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 1364, 1390). 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":"web/static/js/info-collect.js"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5b194692dc9aca9e1bc4c1d13609018c688bdd681d27fd871334dfb263af61"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.setHitlApprovalInterruptedVisualState (cyclomatic 20): monitor.setHitlApprovalInterruptedVisualState 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":"web/static/js/monitor.js"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7eb2b1a189b0daffd0019c2fce39b4ae5957fb2d9f00d39aa3b95ad58f10c3"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.findToolCallItemForHitl (cyclomatic 20): monitor.findToolCallItemForHitl 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":"web/static/js/monitor.js"},"region":{"startLine":4585}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbf540cf5b937ba81128ce313e0da74bc4d6e9f38952370dc955d4bde56b2c6"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.applyMonitorPayload (cyclomatic 20): monitor.applyMonitorPayload 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":"web/static/js/monitor.js"},"region":{"startLine":7654}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad68199d6150758e94c7b9fae5edfbfb095927a6766bf28daa93694b7cf1d9bc"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderMcpTimelineActiveMoments (cyclomatic 20): monitor.renderMcpTimelineActiveMoments has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 8063, 8057, 8056). 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":"web/static/js/monitor.js"},"region":{"startLine":8051}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb9fdfed408269e7be0658108afe0ef6c5345f611676eedb9f42025328ee5f41"}},{"ruleId":"D1","level":"warning","message":{"text":"notifications.renderNotificationList (cyclomatic 20): notifications.renderNotificationList 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 4 function literals inside it that branch (lines 207, 227, 243, \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":"web/static/js/notifications.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"5075cc9abcf44cc233e220086dfdd8d4440851fccbfb01db8aacdc9beaed85b7"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.parseProjectDate (cyclomatic 20): projects.parseProjectDate 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":"web/static/js/projects.js"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"94073c50b547a73dd2a2491ee46a18c9bd732e83240ee0bb9c1fcd521baf0c1c"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.getProjectApprovalTiming (cyclomatic 20): projects.getProjectApprovalTiming has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2659}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed5e0f32caeff09fb449da7315ae6d765a93c13693314d5895806665ee2674e6"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.showProjectConversationPreview (cyclomatic 20): projects.showProjectConversationPreview 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":"web/static/js/projects.js"},"region":{"startLine":3133}}}],"partialFingerprints":{"codehealthFindingId/v1":"e07b0dc83095857b1093d72c62af7dbad0344c05d52ce1bc2a09585281a6dbd3"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.appendChatProjectConversationItem (cyclomatic 20): projects.appendChatProjectConversationItem has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 9 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":"web/static/js/projects.js"},"region":{"startLine":3319}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea22362ebfe81e669ba2c28a3d57092d58a025628005428ed8b2de89cf5b6e2f"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.syncProjectConversationApprovalStatuses (cyclomatic 20): projects.syncProjectConversationApprovalStatuses has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 3708, 3699). 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":"web/static/js/projects.js"},"region":{"startLine":3697}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc0484d2215e9cf6d13f891b912bec1aaeab0d2961c216c49e11763283fb3cad"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.ensureAIConfigShape (cyclomatic 20): settings.ensureAIConfigShape has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2604}}}],"partialFingerprints":{"codehealthFindingId/v1":"aab5b3c53e065ced54fe9f4a7a7672d95c6a9e41c3db4c7d2c6dc05beeab41a0"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.renderAIChannelList (cyclomatic 20): settings.renderAIChannelList 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 3 function literals inside it that branch (lines 2873, 2884, 2895). 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":"web/static/js/settings.js"},"region":{"startLine":2869}}}],"partialFingerprints":{"codehealthFindingId/v1":"629b1315e081909dda27cf3be31c4a0f247a4c868a3a2a43ce164e4c163c5afd"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.testVisionConnection (cyclomatic 20): settings.testVisionConnection 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":"web/static/js/settings.js"},"region":{"startLine":3716}}}],"partialFingerprints":{"codehealthFindingId/v1":"410bdcc058c14ec8a4bd069876c3a58d6e8ca411185516c992895bb9956e5536"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.collectHitlAuditModelEffectiveConfig (cyclomatic 20): settings.collectHitlAuditModelEffectiveConfig has cyclomatic complexity 20 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3801}}}],"partialFingerprints":{"codehealthFindingId/v1":"f00022608d5d200c656b10505ea9ccd38f5f26f2b9a689aeac5213c709b824ea"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.toggleExternalMCP (cyclomatic 20): settings.toggleExternalMCP 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":"web/static/js/settings.js"},"region":{"startLine":4918}}}],"partialFingerprints":{"codehealthFindingId/v1":"056d80fe6464e0802c309aa723e641b733de5a9fe3f1e6c37cd5ba922f1a6408"}},{"ruleId":"D1","level":"warning","message":{"text":"skills.renderSkillsList (cyclomatic 20): skills.renderSkillsList 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, 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":"web/static/js/skills.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ae96d861bab8f5987b9d1aadc82b832afb0380ca1a5770eb01b1a841b0553d"}},{"ruleId":"D1","level":"warning","message":{"text":"tasks.showBatchImportModal (cyclomatic 20): tasks.showBatchImportModal 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, 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":"web/static/js/tasks.js"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"c630e5ceb55d6e29cb5e46875906c8f21540105b033fe1b8e889752a558609fb"}},{"ruleId":"D1","level":"warning","message":{"text":"terminal.createTerminalInContainer (cyclomatic 20): terminal.createTerminalInContainer has cyclomatic complexity 20 (threshold 15). Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to 5 function items inside it that branch (sendResize, sendToWS, a function literal at line 233, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef55827bdc4883abdddde008b6dd4943506223c580d973c52bb193700741bf5"}},{"ruleId":"D1","level":"warning","message":{"text":"tool-guard.addRule (cyclomatic 20): tool-guard.addRule has cyclomatic complexity 20 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 9 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":"web/static/js/tool-guard.js"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0aaaa77406ac73039cc60ae22c2198efbbd398bbc75fb5243888f28ef835622"}},{"ruleId":"D1","level":"warning","message":{"text":"vulnerability.renderVulnerabilityPagination (cyclomatic 20): vulnerability.renderVulnerabilityPagination 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":"web/static/js/vulnerability.js"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07e5d40491a8fa3464465c52cb74c9df28f0532862ec4bf3983576ddfda5b0d"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.renderWebshellTerminalSessions (cyclomatic 20): webshell.renderWebshellTerminalSessions 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 1604, 1594). 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":"web/static/js/webshell.js"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd1da45d369fed219dea3944449d3b93537aff22af10d8d2bdbf37e11bb08ac6"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.graphToElements (cyclomatic 20): workflows.graphToElements 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 3 function literals inside it that branch (lines 186, 200, 209). 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":"web/static/js/workflows.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"f37620a554f9bcd3109328d6b468e1533260782acc0579ea3cd74b73bd4c2d57"}},{"ruleId":"D1","level":"warning","message":{"text":"deleteRetrievalLog (cyclomatic 20): deleteRetrievalLog 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, 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":"web/static/js/knowledge.js"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ec45e052030fefe8151b0079935049e677253c220d75c2c5d4a9ccbd502b29d"}},{"ruleId":"D1","level":"warning","message":{"text":"refreshMonitorPanel (cyclomatic 20): refreshMonitorPanel 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":"web/static/js/monitor.js"},"region":{"startLine":7365}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7d1600dbcbe471d4f301eb5c91995a133232c36314c60e13acc289575c17bf"}},{"ruleId":"D1","level":"warning","message":{"text":"changePassword (cyclomatic 20): changePassword has cyclomatic complexity 20 (threshold 15). Of this number, 19 points are the body\u0027s own statements and 1 belongs 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":"web/static/js/settings.js"},"region":{"startLine":4322}}}],"partialFingerprints":{"codehealthFindingId/v1":"59fc7503888c3f3abdee655fe95535862940c2e93e34a6d9a8225cfef93b634d"}},{"ruleId":"D1","level":"warning","message":{"text":"loadTasks (cyclomatic 20): loadTasks has cyclomatic complexity 20 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 5 belong to 5 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":"web/static/js/tasks.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e1d5d723e678b34392493cdd6969e9b07b115498d00f0bb161e4616a968f18"}},{"ruleId":"D1","level":"warning","message":{"text":"wsInitAgentMode (cyclomatic 20): wsInitAgentMode 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 4 function literals inside it that branch (lines 286, 294, 286, \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":"web/static/js/webshell.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"399fa42cf8f9c22e3a9d54f424215b3d96573fd7436c2c42bdb893ee927e8d2a"}},{"ruleId":"D1","level":"warning","message":{"text":"App.startRobotConnections (cyclomatic 19): App.startRobotConnections has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":869}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5d418497ff438b9c7f37c4f940f7f91aefa13053d4f77f2e175b900d5b43dd6"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.ListVulnerabilitiesByGroupForAccess (cyclomatic 19): DB.ListVulnerabilitiesByGroupForAccess 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":"internal/database/vulnerability.go"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"5706a14e6f7c1afeda92475e54076844943c920cb2d23eb124abcf13fa6b0061"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatUploadsHandler.collectWorkspaceFiles (cyclomatic 19): ChatUploadsHandler.collectWorkspaceFiles has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 549). 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":"internal/handler/chat_uploads.go"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"7629da53651b573f2c777626d69e7008f133f7ce70bb317c3c4636d208262601"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownAgentsHandler.UpdateMarkdownAgent (cyclomatic 19): MarkdownAgentsHandler.UpdateMarkdownAgent 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":"internal/handler/markdown_agents.go"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f499fd182f0aba396eaf965082259f5c85ea553fddd87eaba079eaf445c7298"}},{"ruleId":"D1","level":"warning","message":{"text":"RobotHandler.HandleMessage (cyclomatic 19): RobotHandler.HandleMessage 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":"internal/handler/robot.go"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"06f0cfa9969a842f20c0a728f87ceb4bcecc8dee7ed7cb56a573232259425fab"}},{"ruleId":"D1","level":"warning","message":{"text":"TerminalHandler.RunCommand (cyclomatic 19): TerminalHandler.RunCommand 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":"internal/handler/terminal.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b33d90662b6292805c2d9de057a73776fbe22cee07881b6d3fb524d0f5e3386"}},{"ruleId":"D1","level":"warning","message":{"text":"WebShellHandler.FileOp (cyclomatic 19): WebShellHandler.FileOp 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":"internal/handler/webshell.go"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"c742054d493062eae0e12cb7aa7971373a1adea85716ce6cc0a2ce15b390054b"}},{"ruleId":"D1","level":"warning","message":{"text":"multiagent.resolveMainOrchestratorInstruction (cyclomatic 19): multiagent.resolveMainOrchestratorInstruction 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":"internal/multiagent/orchestrator_instruction.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"616ba6e9bdf1bad61d314136ed66acbf9db1e25b91deee0bb60ed7ea641d8083"}},{"ruleId":"D1","level":"warning","message":{"text":"project.BuildFactIndexBlock (cyclomatic 19): project.BuildFactIndexBlock 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":"internal/project/blackboard.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"1337438e41a054a3d19ba6ff0b1ea4b1912453a4d5b992b38578ad695861261e"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.resolveBinding (cyclomatic 19): workflow.resolveBinding 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":"internal/workflow/bindings.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d65f093c4e5c85bf58a915ca7a6834bb7f16efde727907a7b4e712c37d8a66"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.GenerateDraftFromNaturalLanguage (cyclomatic 19): workflow.GenerateDraftFromNaturalLanguage 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":"internal/workflow/draft_generator.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7329a06c2f1d90cc847270c802718750637d30dc165d135740f8275b8dfa336"}},{"ruleId":"D1","level":"warning","message":{"text":"service-worker.chrome.runtime.onMessage.addListener() (cyclomatic 19): service-worker.chrome.runtime.onMessage.addListener() has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, 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":"plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"669b838da1c53a596430090ae1332b8e01bdfed7be52eb377879e1d76fc510ea"}},{"ruleId":"D1","level":"warning","message":{"text":"agents.loadMarkdownAgents (cyclomatic 19): agents.loadMarkdownAgents 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, 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":"web/static/js/agents.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a855b0453e6cbb0e328635430e42c78c0238760e74d8e118bb7c834b61eb05"}},{"ruleId":"D1","level":"warning","message":{"text":"agents.editMarkdownAgent (cyclomatic 19): agents.editMarkdownAgent 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 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":"web/static/js/agents.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8edaa73c274793da21b884be8c43c218d8eff2f1a6a83e196467014ab297fa"}},{"ruleId":"D1","level":"warning","message":{"text":"api-docs.formatDescription (cyclomatic 19): api-docs.formatDescription 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":"web/static/js/api-docs.js"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c642fe10e5aa344bf93ffa542b01e3727b241714209cd40ac4955fe115a5e3"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.renderAssetImportPreview (cyclomatic 19): assets.renderAssetImportPreview 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, 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":"web/static/js/assets.js"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"99593750c788536268a6e27a885127cfab9505109341f5ea06f279151ebd1648"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.fofaResultToAsset (cyclomatic 19): assets.fofaResultToAsset has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 2 function items inside it that branch (value, firstValue). 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":"web/static/js/assets.js"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4524ed36b19879be65178d152baff52224de5eebb876996bcc56ebf49637f64"}},{"ruleId":"D1","level":"warning","message":{"text":"audit.renderAuditLogs (cyclomatic 19): audit.renderAuditLogs has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 337, 318). 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":"web/static/js/audit.js"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cfe3f2b37284d1e500a3a12276c5e6c9a0d1a2861bced47cb4563f8249dfac"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.finishProcessDetailsRender (cyclomatic 19): chat.finishProcessDetailsRender has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 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":"web/static/js/chat.js"},"region":{"startLine":4542}}}],"partialFingerprints":{"codehealthFindingId/v1":"54d12537fa18f864b2dd3d0698fef361e49571c358e67d58c660ca4c2cf788af"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.loadProjectFilterLocalOptions (cyclomatic 19): chat.loadProjectFilterLocalOptions has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, 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":"web/static/js/chat.js"},"region":{"startLine":9249}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbbe0058dd9cc3b07c9e21faa8c9dbc540ac33a44981d66ccfccbee2ec76fffe"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.finalizeMainResponseStreamItem (cyclomatic 19): monitor.finalizeMainResponseStreamItem has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"03529249582a00d73abd0f209911a9b8f8fa3d7b3dea48e9902c552066f7039d"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.setHitlApprovalTaskAvailability (cyclomatic 19): monitor.setHitlApprovalTaskAvailability has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f745ada52ed82efb05580b7d6b8b63c803b1b8974e2b586e1c262d639f2ac08"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.submitUserInterruptContinue (cyclomatic 19): monitor.submitUserInterruptContinue 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":"web/static/js/monitor.js"},"region":{"startLine":1408}}}],"partialFingerprints":{"codehealthFindingId/v1":"213e655a7a710963b878b1429c94a4bf6d3e17e4890de23126003d01c8f0fb9d"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.workflowHitlDataFromRun (cyclomatic 19): monitor.workflowHitlDataFromRun has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5185}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8d6dc51b462940798e26bd4de0a0b4dfc1c7111b2c624c8f8ffb9c4d260441"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.isToolGuardBlockedResult (cyclomatic 19): monitor.isToolGuardBlockedResult 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":"web/static/js/monitor.js"},"region":{"startLine":5904}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9feeb46e167ee3cba2dbb180d7369df79dad5307fe6806cf7f0dc95ea909cf1"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.buildTimelineSparseHint (cyclomatic 19): monitor.buildTimelineSparseHint 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":"web/static/js/monitor.js"},"region":{"startLine":8027}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7dbd5e2c23cc1812dbab8951e40a2dd6228d32ee2b8d373b98fdb3ab31c8494"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.bindMonitorStatsPanelEvents (cyclomatic 19): monitor.bindMonitorStatsPanelEvents 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 4 function literals inside it that branch (lines 8664, 8644, 8686, \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":"web/static/js/monitor.js"},"region":{"startLine":8640}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fbb4a81ec799de94943202c9f9dafd5f58bef63333a3db38ed3b9b679c16482"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.selectProject (cyclomatic 19): projects.selectProject 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":"web/static/js/projects.js"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"2337eff3f10f938312a2fa30e711fbd25572c38c7765d4586a9f63d73409fefd"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.saveProjectModal (cyclomatic 19): projects.saveProjectModal 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":"web/static/js/projects.js"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"e42293ed67aed4ab346afad13d6ae7486c3ecc7a8cecf80fddb54baea3c04873"}},{"ruleId":"D1","level":"warning","message":{"text":"roles.updateRoleSelectorDisplay (cyclomatic 19): roles.updateRoleSelectorDisplay 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":"web/static/js/roles.js"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1a3d448dac3986db1d7493c7361e1c296939f0483594c4b8889c780950a2d9"}},{"ruleId":"D1","level":"warning","message":{"text":"roles.renderRoleToolsList (cyclomatic 19): roles.renderRoleToolsList has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 941). 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":"web/static/js/roles.js"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"84f84bbdad2a4d6e1bf9c4d869d545aed63dc5de5028a3fb62780f907984387e"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.getRobotStatus (cyclomatic 19): settings.getRobotStatus has cyclomatic complexity 19 (threshold 15). Of this number, 18 points are the body\u0027s own statements and 1 belongs to one function item 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":"web/static/js/settings.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"17476eb19e49d46890755dc98d6c8348c5e3da1d2d633b1872893c447c964cc8"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.renderToolsPagination (cyclomatic 19): settings.renderToolsPagination has cyclomatic complexity 19 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 5 belong to one function item 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":"web/static/js/settings.js"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"983083c27c5413997eab1ed7a8fb86816cf7a6eae027103d7603a192ea8f6223"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.fillVisionConfigFromCurrent (cyclomatic 19): settings.fillVisionConfigFromCurrent has cyclomatic complexity 19 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b35726022a18ecc9f7f14915e69fcadd56122f787c665ca17fb5cedc5892ab"}},{"ruleId":"D1","level":"warning","message":{"text":"skills.renderSkillsMonitor (cyclomatic 19): skills.renderSkillsMonitor has cyclomatic complexity 19 (threshold 15). 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, 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":"web/static/js/skills.js"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"0186681192cc5f2a45c163ad466fd69fc12ffb95e59aedbefa692e2e508a1fab"}},{"ruleId":"D1","level":"warning","message":{"text":"update.renderUpdateApplyBody (cyclomatic 19): update.renderUpdateApplyBody has cyclomatic complexity 19 (threshold 15). Of this number, 15 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":"web/static/js/update.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8a524e10f52f14a6e91a405bc27bb9322d40f4c66961b80f59094e807a5123"}},{"ruleId":"D1","level":"warning","message":{"text":"vulnerability.editVulnerability (cyclomatic 19): vulnerability.editVulnerability 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 1801). 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":"web/static/js/vulnerability.js"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d3f5f0937783f0087e171e31932469fcd3f300b07f1e3c3936795dd777fa02d"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.renderDirectoryTree (cyclomatic 19): webshell.renderDirectoryTree 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. This shape REPEATS in the file: one other method here (webshell.renderDirectoryTree::renderNode) 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":"web/static/js/webshell.js"},"region":{"startLine":4552}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f772cfff9baf98d5dbfe4ccb05ce9cd91a51f476c980c9449b544b63803def"}},{"ruleId":"D1","level":"warning","message":{"text":"copyDetailBlock (cyclomatic 19): copyDetailBlock has cyclomatic complexity 19 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 8 belong to 6 function items inside it that branch. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5846}}}],"partialFingerprints":{"codehealthFindingId/v1":"726b0a6ca6aafdfdda4c5ff5e97370345b654fe5a7c75e51ba521fe22d560bb4"}},{"ruleId":"D1","level":"warning","message":{"text":"prefetchLastAssistantProcessDetails (cyclomatic 19): prefetchLastAssistantProcessDetails 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":"web/static/js/chat.js"},"region":{"startLine":6319}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65ed391a52a9f1b35f3f46c6e67a112e8c8f387f571c986e808d26ffcb1dc93"}},{"ruleId":"D1","level":"warning","message":{"text":"exportAttackChain (cyclomatic 19): exportAttackChain has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 9081, 9093, 9100, \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":"web/static/js/chat.js"},"region":{"startLine":9074}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b65e2a2750c27f448bfb41a56b77415599d105cd6357f0757ea5b98fadbd03"}},{"ruleId":"D1","level":"warning","message":{"text":"probeSelectedAIChannels::probeNextAIChannel (cyclomatic 19): probeSelectedAIChannels::probeNextAIChannel has cyclomatic complexity 19 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3275}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fd69cc61d4a2d65a95a36f44b78717e1c420613072ce7329cc370c555106cfc"}},{"ruleId":"D1","level":"warning","message":{"text":"startInlineEditHITLPolicy (cyclomatic 19): startInlineEditHITLPolicy has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 2998, 2992, 2995, \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":"web/static/js/tasks.js"},"region":{"startLine":2982}}}],"partialFingerprints":{"codehealthFindingId/v1":"1952482d7f8bbcb3f6990fdb218f36fb5ac220ab3fe25dafa6626959fcd05f8b"}},{"ruleId":"D1","level":"warning","message":{"text":"fetchAndRenderWebshellAiConvList (cyclomatic 19): fetchAndRenderWebshellAiConvList has cyclomatic complexity 19 (threshold 15). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 2349, 2370, 2365, \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":"web/static/js/webshell.js"},"region":{"startLine":2342}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d3d557564b15dcadba3ac65eed8ce99bff531083d8694992ad78017a1a3caf"}},{"ruleId":"D1","level":"warning","message":{"text":"toggleWorkflowEnabled (cyclomatic 19): toggleWorkflowEnabled 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":"web/static/js/workflows.js"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"558f1d015d85bee1c1785b401dfff7435534f0210d2a6f8d43dd8c76d4a15d70"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 19): (anonymous) has cyclomatic complexity 19 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, 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":"plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf1e5ccede3f871a3cedc73d66248434ca860b04e46c15616364e1ab5bb682cb"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPBeaconListener.handleCheckIn (cyclomatic 18): HTTPBeaconListener.handleCheckIn 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":"internal/c2/listener_http.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"35fc6a641cdd75aeed95caba3b855a24c2c04b70c273cc120812215e6377cbcc"}},{"ruleId":"D1","level":"warning","message":{"text":"database.vulnerabilityTargetHost (cyclomatic 18): database.vulnerabilityTargetHost has cyclomatic complexity 18 (threshold 15). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: 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":"internal/database/vulnerability.go"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"74934ac5caeecd951dd31baa50238adde71cccdd15d0966444f400efa8c38192"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.MergeAssets (cyclomatic 18): DB.MergeAssets 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":"internal/database/asset.go"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"5742ac366132f988f9a4f5a53e6b5ea4a5db4a618a80b876c3796b5e464764cc"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.CreateVulnerabilityRetest (cyclomatic 18): DB.CreateVulnerabilityRetest 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":"internal/database/vulnerability_retest.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2917ce01a8824613c9d140f255de2e23a3d1b4ac8b7c56ced65c0f1c972e830"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.addModelContextToResponse (cyclomatic 18): handler.addModelContextToResponse 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":"internal/handler/config.go"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5e7d6160a78fcfb4b02877c02e95918e1465a36c925ac7e4623aaa85ce0f740"}},{"ruleId":"D1","level":"warning","message":{"text":"AgentHandler.auditAgentReview (cyclomatic 18): AgentHandler.auditAgentReview 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":"internal/handler/hitl_audit_agent.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d2db05ed08ec0be12b496468e1e76c604b317ce3c89dd6c0021e8e2caee314f"}},{"ruleId":"D1","level":"warning","message":{"text":"AssetHandler.RecordScans (cyclomatic 18): AssetHandler.RecordScans 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":"internal/handler/asset.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"cff0aa3dae8465ef792094d6aa4ba42e8d251c5a2db58fca1e0ace027956490c"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatUploadsHandler.Mkdir (cyclomatic 18): ChatUploadsHandler.Mkdir 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":"internal/handler/chat_uploads.go"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7b1a2a4c894ccd0f0a99e7346e430d5f7a95956aba270f47d46853a21053b9"}},{"ruleId":"D1","level":"warning","message":{"text":"ConfigHandler.resolveProbeSecret (cyclomatic 18): ConfigHandler.resolveProbeSecret has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, 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":"internal/handler/config_secrets.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"031c5e9dd162afcc3e47cbf0d0bc0db8a332a499186af29c31541c5cf1b50446"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowHandler.ResumeRun (cyclomatic 18): WorkflowHandler.ResumeRun 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":"internal/handler/workflow_run.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0129ae37af2312fb3a92ed5c5f09709b3ddc3708706602e8ec34ced397218caa"}},{"ruleId":"D1","level":"warning","message":{"text":"Manager.GetItemsSummary (cyclomatic 18): Manager.GetItemsSummary 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":"internal/knowledge/manager.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"10ba2d16b0f6deedeb4f85888ef9b34eb9c21e75ce8ed52937f1c76ffa66a3e1"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledgePipelineRetriever.Retrieve (cyclomatic 18): knowledgePipelineRetriever.Retrieve 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":"internal/knowledge/retrieval_pipeline.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85433254cfa74fec0722997a7e1275189c161e5113b4bb379745be8df4fa219"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.claudeRequest (cyclomatic 18): Client.claudeRequest 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":"internal/openai/claude_native.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"543caa22d7ba5958a17edd26b085b4fca08f9972ec3ce8e21e6da9fbb5bde4a0"}},{"ruleId":"D1","level":"warning","message":{"text":"skillpackage.ValidateAgentSkillManifest (cyclomatic 18): skillpackage.ValidateAgentSkillManifest 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":"internal/skillpackage/validate.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44922a3f29f06ea38d7138192f178f6db5b35c58e6e8293c5abfa4385209f82"}},{"ruleId":"D1","level":"warning","message":{"text":"update.stashProtected (cyclomatic 18): update.stashProtected 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":"internal/update/apply.go"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"805fbd32dfafa40ce0881badd9f303a740b963cb7e98c38a55d71e0fd4be2fbd"}},{"ruleId":"D1","level":"warning","message":{"text":"update.restoreInterruptedProtected (cyclomatic 18): update.restoreInterruptedProtected 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":"internal/update/apply.go"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f39d54dd2320ff5b16812936542af3fe42ecd022d8baed97575f47d8bd92e8b"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.normalizeLLMNodeConfig (cyclomatic 18): workflow.normalizeLLMNodeConfig 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":"internal/workflow/draft_generator.go"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4e28bc62f9cb63215e1b42bde2cd38ad738ebfe088548355fcb02ac7efcc362"}},{"ruleId":"D1","level":"warning","message":{"text":"CyberStrikeAIClient.streamTest (cyclomatic 18): CyberStrikeAIClient.streamTest 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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbb430c1e81fc1498e6e422e87da0baa7804c5625c0815b6d9bfdb8f43b14c85"}},{"ruleId":"D1","level":"warning","message":{"text":"http-normalize.normalizeRequestBlock (cyclomatic 18): http-normalize.normalizeRequestBlock 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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/http-normalize.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"92ef9dbc096a95d2f78495564fd1e9b9c8b2222dd9033825ee0ceaad593d30d1"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.onSendConfirmed (cyclomatic 18): panel.onSendConfirmed 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":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"23545a91f6f0d46ffd876a8ba8e8249cf7897d49a32b464f4186b6cfe5c35d2c"}},{"ruleId":"D1","level":"warning","message":{"text":"audit.auditMessageLabel (cyclomatic 18): audit.auditMessageLabel 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":"web/static/js/audit.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"743d6fc376cf4ff6fa26c8151a28e618868d72cee67382c94bd646880e32c8fe"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.C2.renderTasksPagination (cyclomatic 18): c2.C2.renderTasksPagination 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. This shape REPEATS in the file: one other method here (c2.C2.renderEventsPagination) 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. This is NOT this file\u0027s highest cyclomatic complexity: c2.runC2SafeAction (cyclomatic 20) 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":"web/static/js/c2.js"},"region":{"startLine":3250}}}],"partialFingerprints":{"codehealthFindingId/v1":"044355e1677ac4d07b5f266ad1e2691b0507b67007ba54f1b23f86203428295b"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.C2.viewTask::renderTaskModal (cyclomatic 18): c2.C2.viewTask::renderTaskModal 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. This is NOT this file\u0027s highest cyclomatic complexity: c2.runC2SafeAction (cyclomatic 20) 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":"web/static/js/c2.js"},"region":{"startLine":3617}}}],"partialFingerprints":{"codehealthFindingId/v1":"563af7e7213313f42ab75d3445432a42a04853dbe5c1dc26c54e823975e8daa4"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.C2.renderEventsPagination (cyclomatic 18): c2.C2.renderEventsPagination 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. This shape REPEATS in the file: one other method here (c2.C2.renderTasksPagination) 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. This is NOT this file\u0027s highest cyclomatic complexity: c2.runC2SafeAction (cyclomatic 20) 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":"web/static/js/c2.js"},"region":{"startLine":4188}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6f71d96e3583e83926426a9683133d4def014b5b2e7c5861f6812b77fbd8e19"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-files.submitChatFilesMkdir (cyclomatic 18): chat-files.submitChatFilesMkdir 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":"web/static/js/chat-files.js"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a289326ab518ce19611af431aba9972e75a4d41f7eb5827bf640a93873826f3"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.openChatSessionSettings (cyclomatic 18): chat.openChatSessionSettings has cyclomatic complexity 18 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: 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":"web/static/js/chat.js"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"20cd409f49c2484d3fcb817f8384d64b1d2ddc855080e8f3265fb19747ab2ad2"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderDashboardWebshellRecent (cyclomatic 18): dashboard.renderDashboardWebshellRecent has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 4 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 619, 613, 634, \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":"web/static/js/dashboard.js"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e18cf0be989a2cf583a0b8a24c1a88fb43b40349ffa34c7ca8625b422f85176"}},{"ruleId":"D1","level":"warning","message":{"text":"hitl.applyHitlDefaultConfigFromServer (cyclomatic 18): hitl.applyHitlDefaultConfigFromServer 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":"web/static/js/hitl.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb555fcfb6641b55e10dcd6b383f887a0217f99dc5da12005774bb4d255372d2"}},{"ruleId":"D1","level":"warning","message":{"text":"info-collect.exportFofaResults (cyclomatic 18): info-collect.exportFofaResults has cyclomatic complexity 18 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 5 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":"web/static/js/info-collect.js"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"193cf3f9884200ffee2da18ea3e2b6ffdbd158c79f86076e9b945ff94e787a06"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.formatTimelineStreamBody (cyclomatic 18): monitor.formatTimelineStreamBody 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":"web/static/js/monitor.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec3726b34aa9599b4b6b4563e32b13b18cf6b00869563a8ea89a67d0f3af9453"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderToolCallApprovalSummary (cyclomatic 18): monitor.renderToolCallApprovalSummary 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":"web/static/js/monitor.js"},"region":{"startLine":4432}}}],"partialFingerprints":{"codehealthFindingId/v1":"39896cad36334c1c789e00556c0d2b3d18b612532e1ae016ad03065f16a95ee0"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.setMcpStatsDistHover (cyclomatic 18): monitor.setMcpStatsDistHover has cyclomatic complexity 18 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 8 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":"web/static/js/monitor.js"},"region":{"startLine":8441}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4c96c56658fd97ad8281e3b6609508515a7cf8f03668aabbe70c07b934f0b1d"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.loadProjectFacts (cyclomatic 18): projects.loadProjectFacts has cyclomatic complexity 18 (threshold 15). 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, 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":"web/static/js/projects.js"},"region":{"startLine":1495}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc1a13b9b46e852c9325fedf0279c63401fefbf6b84ad031a2b9d441a82b20c"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.renderChatProjectFolders (cyclomatic 18): projects.renderChatProjectFolders has cyclomatic complexity 18 (threshold 15). Of this number, 13 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":"web/static/js/projects.js"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"785cf4388683d7f2c61fe1b0d45bd458e8bd64883ca6f165896944970270b126"}},{"ruleId":"D1","level":"warning","message":{"text":"roles.updateRoleToolsStats (cyclomatic 18): roles.updateRoleToolsStats has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1215, 1210). 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":"web/static/js/roles.js"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"414b2f86fa24b78e8260bd04a249910e3bf9d41fee7113f38a73bdfccabf6da7"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.readAIChannelFromMainForm (cyclomatic 18): settings.readAIChannelFromMainForm 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":"web/static/js/settings.js"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31bd27fb50ca421a4e9490ae18ca4c758442164f9755f14086a64a66ef8740d"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.pollExternalMCPStatus (cyclomatic 18): settings.pollExternalMCPStatus 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":"web/static/js/settings.js"},"region":{"startLine":5000}}}],"partialFingerprints":{"codehealthFindingId/v1":"94942406f560fc6a0d1b55b43e3b24f8cacf047941ace04ea732a267425c3fdd"}},{"ruleId":"D1","level":"warning","message":{"text":"tasks.startInlineEditRole (cyclomatic 18): tasks.startInlineEditRole 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 literals inside it that branch (lines 2586, 2589, 2589, \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":"web/static/js/tasks.js"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f9d17676f3af98f2575cc6e7ce34f4f967482edf1fa3b2a7fcba5137da745f7"}},{"ruleId":"D1","level":"warning","message":{"text":"webshell.normalizeWebshellDbSchema (cyclomatic 18): webshell.normalizeWebshellDbSchema has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 3 of the 18 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 2072, 2084, 2077, \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":"web/static/js/webshell.js"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"a985a821168b4be4cc456947247eef86a8274254c50ff7e6ff025fb36605129b"}},{"ruleId":"D1","level":"warning","message":{"text":"workflows.workflowAiAnimateGraph (cyclomatic 18): workflows.workflowAiAnimateGraph 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":"web/static/js/workflows.js"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"2510429c1227ca16904c3e7d979b4ed8432334c4a050b6a75cf1717f81692e04"}},{"ruleId":"D1","level":"warning","message":{"text":"parseAssetImportMatrix (cyclomatic 18): parseAssetImportMatrix 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 4 function literals inside it that branch (lines 299, 301, 293, \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":"web/static/js/assets.js"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"989fd0c86f011979b4f650f637ede79ca0c25e4ed2439941826b1fb859a206f6"}},{"ruleId":"D1","level":"warning","message":{"text":"loadAuditLogs (cyclomatic 18): loadAuditLogs 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":"web/static/js/audit.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5fc7e13e12855761f5d49e06b8d8225ca45be4b48879716ee4eb811faa6c187"}},{"ruleId":"D1","level":"warning","message":{"text":"applyElkLayout (cyclomatic 18): applyElkLayout has cyclomatic complexity 18 (threshold 15). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 509, 532, 531, \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":"web/static/js/fact-graph.js"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b82bfa0bcee5a8153c3ab52e1e1d7f45bbdc1ac0d980f2977ff6b0d1691c66d"}},{"ruleId":"D1","level":"warning","message":{"text":"parseFofaNaturalLanguage (cyclomatic 18): parseFofaNaturalLanguage has cyclomatic complexity 18 (threshold 15). Of this number, 17 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":"web/static/js/info-collect.js"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c99ae1f5db4b18d126791112972a5b91be4604eca1804166bebf2c66f9a3e4"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent.getAvailableTools (cyclomatic 17): Agent.getAvailableTools 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":"internal/agent/agent.go"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"aef61ed9e8cef4a84c3b566a9dfd54ee701f452bae6106cf159a43478ee34f5f"}},{"ruleId":"D1","level":"warning","message":{"text":"app.setupRoutes (cyclomatic 17): app.setupRoutes has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 16 function literals inside it that branch (lines 1011, 1209, 1220, \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":"internal/app/app.go"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a24f652aaa07a2dad6d27a0bdbc3dae60f0bbf4fe8410929330437e18d3075"}},{"ruleId":"D1","level":"warning","message":{"text":"app.registerC2TaskManageTool (cyclomatic 17): app.registerC2TaskManageTool has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to one function literal inside it that branches (line 464). 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":"internal/app/c2_tools.go"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"c24c6a669646e4922a3d290bf00e533c3cb70966029c93614ed82c7e762912ac"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.GenerateOneliner (cyclomatic 17): c2.GenerateOneliner 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":"internal/c2/payload_oneliner.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e3654c2dd71013e58d65bb10592f2bfa257d123dee115ec6e9790f393c384b2"}},{"ruleId":"D1","level":"warning","message":{"text":"Manager.IngestTaskResult (cyclomatic 17): Manager.IngestTaskResult 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":"internal/c2/manager.go"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f295ab5217eacaa383d1f734eb2703baca75e2879698372a33f106d8979cfb6"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.GetConversation (cyclomatic 17): DB.GetConversation 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":"internal/database/conversation.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b5f8cb3092dffe9535afb662fdb98ae1760ae590f00bf411dc2b96a57804ce9"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.LoadToolExecutionsWithPagination (cyclomatic 17): DB.LoadToolExecutionsWithPagination 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":"internal/database/monitor.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"9093890573f8d1556d8931ae47ff54d59fe7037cb58f21343c3992a635a2a482"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.UpsertProjectFact (cyclomatic 17): DB.UpsertProjectFact 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":"internal/database/project.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"30d3ccf298a3b67c40e23dc208f788a1d5cee7471877022e6459532747e3d6aa"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.lookupRBACResourceOptionsByIDs (cyclomatic 17): DB.lookupRBACResourceOptionsByIDs 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":"internal/database/rbac.go"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"caa3a99fb6944cec0a9ac12fef23da01a87f0bf82fbd725612856abc8162b80d"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.relocateManualOrNewUploadToConversation (cyclomatic 17): handler.relocateManualOrNewUploadToConversation 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":"internal/handler/agent.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"3603e63cc012e281d828b7d1806985c1f218a370bfeb556efa12e3cee67c1fdf"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.saveAttachmentsToDateAndConversationDir (cyclomatic 17): handler.saveAttachmentsToDateAndConversationDir 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":"internal/handler/agent.go"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a94b319c7f94d41b1147f3d408eb0a148f1faafef76d197982d2e245e8b477c"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.assetListFilterFromQuery (cyclomatic 17): handler.assetListFilterFromQuery 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":"internal/handler/asset.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1f74333f2ad275f2ce10c65e9b04add7301fe31b688614d8ced29ab032f182"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.updateAIConfig (cyclomatic 17): handler.updateAIConfig 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":"internal/handler/config.go"},"region":{"startLine":2309}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d3099710f9ce8a5b8f943bee9640bc86e489b13b8290c5790826a3516c27629"}},{"ruleId":"D1","level":"warning","message":{"text":"C2Handler.ListTasks (cyclomatic 17): C2Handler.ListTasks 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. This shape REPEATS in the file: one other method here (C2Handler.ListEvents) 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":"internal/handler/c2.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ad71ab820b3c162217fb6bdb83ce98634278ac16b5f6f14b6060d71e5a236db"}},{"ruleId":"D1","level":"warning","message":{"text":"C2Handler.ListEvents (cyclomatic 17): C2Handler.ListEvents 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. This shape REPEATS in the file: one other method here (C2Handler.ListTasks) 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":"internal/handler/c2.go"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5425b8a2f9cd25cf022e75fed4e154fcd35731975bb6f975685e9e227b1c00"}},{"ruleId":"D1","level":"warning","message":{"text":"ProjectHandler.ListFacts (cyclomatic 17): ProjectHandler.ListFacts 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":"internal/handler/project.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"342147d0dedf395bd4f2f06869e1fb0183a578626fac6c1ca7790e508d9a86b5"}},{"ruleId":"D1","level":"warning","message":{"text":"RobotHandler.cmdHelp (cyclomatic 17): RobotHandler.cmdHelp has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de6467b07e2c5da0c21a8831d6d2fa250fe1a5e40b85bd5d87bb93a71d15cef"}},{"ruleId":"D1","level":"warning","message":{"text":"ExecutionService.Submit (cyclomatic 17): ExecutionService.Submit 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":"internal/mcp/execution_service.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"d919200d8a10022b27380b8c3ab592d350b3e599d2e51fb71f5df05feb4b2e96"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.CallTool (cyclomatic 17): Server.CallTool has cyclomatic complexity 17 (threshold 15). Of this number, 11 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":"internal/mcp/server.go"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"960b52573dfd6ad87b72225b4ee5398fa576224fb519e9f72a7ad7ddad3a8296"}},{"ruleId":"D1","level":"warning","message":{"text":"Server.FinishToolExecution (cyclomatic 17): Server.FinishToolExecution 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":"internal/mcp/server.go"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6b0ffb7a85c52e7f593a2a2e64279aec287d46475dd27469a32b1cbf083900"}},{"ruleId":"D1","level":"warning","message":{"text":"openai.patchNativeOpenAIReasoning (cyclomatic 17): openai.patchNativeOpenAIReasoning 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":"internal/openai/native_reasoning_compat.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"659ce0225210cc1df87ac6fd5824007c8147126657e597a35a2e0116f6c4b37b"}},{"ruleId":"D1","level":"warning","message":{"text":"Client.ChatCompletion (cyclomatic 17): Client.ChatCompletion 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":"internal/openai/openai.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b16bbb83b8a25dd65d921f4ac805b65f71354a5e7839c7af35970906734e92a"}},{"ruleId":"D1","level":"warning","message":{"text":"robot.runTelegramPoll (cyclomatic 17): robot.runTelegramPoll 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":"internal/robot/telegram.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd927eac801812f0fdb5c1e26a507fe53d4aace46a2c1e814a94be9a200362f"}},{"ruleId":"D1","level":"warning","message":{"text":"security.streamShellForeground (cyclomatic 17): security.streamShellForeground has cyclomatic complexity 17 (threshold 15). Of this number, 10 points are the body\u0027s own statements and 7 belong to 2 function literals inside it that branch. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/shell_execute_stream.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ec55d67ea8f0419f5762cf1fdc1f66a7b8c74929ae11ef759150ff881abe004"}},{"ruleId":"D1","level":"warning","message":{"text":"Executor.ExecuteTool (cyclomatic 17): Executor.ExecuteTool 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":"internal/security/executor.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"defce556714db5f25c9c4c1eb7982e74f29cf896e054fd95df72bddb0957f590"}},{"ruleId":"D1","level":"warning","message":{"text":"update.scanAdoption (cyclomatic 17): update.scanAdoption 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":"internal/update/adopt.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"44ee64b59175e7f5d5da31bea2ecc09d6b524b139a283bd5ce4ecdf351db29d3"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.runToolNode (cyclomatic 17): workflow.runToolNode 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":"internal/workflow/nodes.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbebe6e5d7ea201f3e64ab678db9db3d3f704b111fc0a1a1bf48ebce21aec47f"}},{"ruleId":"D1","level":"warning","message":{"text":"MarkdownRenderer.toHtml (cyclomatic 17): MarkdownRenderer.toHtml 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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/MarkdownRenderer.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0510215d52a0e966687a11cda5d8ce376486b117cdb19bf79fea6f06c75f2b3"}},{"ruleId":"D1","level":"warning","message":{"text":"markdown.markdownToHtml (cyclomatic 17): markdown.markdownToHtml 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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/markdown.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"faf937f64c44a1a7bd355cc1dd257c59603f875daf9368c8428190d9dccab293"}},{"ruleId":"D1","level":"warning","message":{"text":"storage.saveConfig (cyclomatic 17): storage.saveConfig 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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/storage.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"638e2f3eabc46466825802cf914199c5b64d0ac70408b80660790c07c34abdec"}},{"ruleId":"D1","level":"warning","message":{"text":"panel.fillSelect (cyclomatic 17): panel.fillSelect has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, 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":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"65a2cbdc9894b973eb28fb2a2fab383bc68b0dd8ba287ebd33fac75ca062442d"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.loadAssets (cyclomatic 17): assets.loadAssets has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5b2b158137bc865748a86e1aa64ba205d74a0d3fd6ef55e90724e393271dddc"}},{"ruleId":"D1","level":"warning","message":{"text":"audit.renderAuditLogsPagination (cyclomatic 17): audit.renderAuditLogsPagination has cyclomatic complexity 17 (threshold 15). Of this number, 15 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":"web/static/js/audit.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee2c5ec9539db7d22f35db8cfb6545a338f8a7e8adc0658a22f9645a5c267d67"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.sessionInfoRow (cyclomatic 17): c2.sessionInfoRow has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators. This is NOT this file\u0027s highest cyclomatic complexity: c2.runC2SafeAction (cyclomatic 20) 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":"web/static/js/c2.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b6ae6e2a48a7846880a8ae53447ffb030bb5eafd88da363fd396dac7a92832"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.setAssistantTurnTiming (cyclomatic 17): chat.setAssistantTurnTiming 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":"web/static/js/chat.js"},"region":{"startLine":5119}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9458f00d202cf4224c84fdad25046535a53e0961d0933f65946b46b01761ac9"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.ensureMcpCallSectionChrome (cyclomatic 17): chat.ensureMcpCallSectionChrome 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":"web/static/js/chat.js"},"region":{"startLine":5212}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6d27af7add8d58b980a27bdd87ef9db829d2a84965789e960f2d7d885250d46"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.loadAttackChain (cyclomatic 17): chat.loadAttackChain has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":7029}}}],"partialFingerprints":{"codehealthFindingId/v1":"5e64f81c3b1559e8e6fc1d723101e41e2159c364c71064b41b8fcfd3af24cd6e"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderRecommendedActions (cyclomatic 17): dashboard.renderRecommendedActions has cyclomatic complexity 17 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 3 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":"web/static/js/dashboard.js"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e20d43662b623f1747fc8ab34bb9d2f10587784d1e4a49151d27a70033192c5"}},{"ruleId":"D1","level":"warning","message":{"text":"dashboard.renderRecentVulns (cyclomatic 17): dashboard.renderRecentVulns has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1270, 1261, 1277, \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":"web/static/js/dashboard.js"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2bdd5a5272644661a3d991299f4f800215edfc66d36f38c3509d699c7537e13"}},{"ruleId":"D1","level":"warning","message":{"text":"hitl.renderHitlPagination (cyclomatic 17): hitl.renderHitlPagination has cyclomatic complexity 17 (threshold 15). Of this number, 15 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":"web/static/js/hitl.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e767e7c8ae7af565234e3a6312f3c6495dc8a729f8f998bfc75644c6f4f30e7"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge.getTimeAgo (cyclomatic 17): knowledge.getTimeAgo 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. This is NOT this file\u0027s highest cyclomatic complexity: knowledge.renderRetrievalLogs (cyclomatic 28) 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":"web/static/js/knowledge.js"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2388eea98ec7026eb67ae9fddb31ad5e39550c7d0d180d757af8d1e27582a1b"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge.showRetrievalLogDetailsModal (cyclomatic 17): knowledge.showRetrievalLogDetailsModal has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1852, 1858). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: knowledge.renderRetrievalLogs (cyclomatic 28) 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":"web/static/js/knowledge.js"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d863f92565d8cfffe1081fc55aa1730b560a88c196750a93a86aa420c87a923"}},{"ruleId":"D1","level":"warning","message":{"text":"mobile-ui.enableDrawerSwipe (cyclomatic 17): mobile-ui.enableDrawerSwipe 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 990, 1008, 982). 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":"web/static/js/mobile-ui.js"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7ab95bf6d7b578debdef7487cb691aa1ea61927ec71b29841e1b18244f67547"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.piMainStreamPlanningTitle (cyclomatic 17): monitor.piMainStreamPlanningTitle 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":"web/static/js/monitor.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"df6da852d1947b5a5cf4f476668983853745cb90f3be6d4fa42702be94796bec"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.hitlPendingItemToData (cyclomatic 17): monitor.hitlPendingItemToData has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5342}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9838b7bc3a0380eba205dbd3c598e85ebd9ff0756de162f6883609d4f82630e"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.bindMcpStatsTimelineEvents (cyclomatic 17): monitor.bindMcpStatsTimelineEvents has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 7961, 7985, 7947). 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":"web/static/js/monitor.js"},"region":{"startLine":7942}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ca60cf2d4779db291d97429600ab66ecf1d9ab82303a687533571d302612ebf"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderMcpStatsChartAside (cyclomatic 17): monitor.renderMcpStatsChartAside has cyclomatic complexity 17 (threshold 15). Most of this is not in the body itself: 5 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 8922, 8917). 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":"web/static/js/monitor.js"},"region":{"startLine":8913}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcb7ef7a4940e5a20c3440b945694984f06a27fa7dc3ccf7dcc0d1a6dfe3466"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.appendChatProjectFolderItem (cyclomatic 17): projects.appendChatProjectFolderItem has cyclomatic complexity 17 (threshold 15). Of this number, 12 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":"web/static/js/projects.js"},"region":{"startLine":3202}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6c075c85fbd939b7c6d3018d7a32116ed4dfa0e60612c43bb01f56feaf2055"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.updateAIChannelEditorChrome (cyclomatic 17): settings.updateAIChannelEditorChrome has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"51513cc8d62ce73137419406fe3896fc2181ecf04515dbd5c3e275b4b92634db"}},{"ruleId":"D1","level":"warning","message":{"text":"tasks.filterAndSortTasks (cyclomatic 17): tasks.filterAndSortTasks 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 one function literal inside it that branches (line 389). 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":"web/static/js/tasks.js"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"710d94503402f1e679297c6e622394c59fb2c6395f121d0352e3157b53283d76"}},{"ruleId":"D1","level":"warning","message":{"text":"tasks.startInlineEditSchedule (cyclomatic 17): tasks.startInlineEditSchedule 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 5 function literals inside it that branch (lines 2817, 2838, 2844, \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":"web/static/js/tasks.js"},"region":{"startLine":2812}}}],"partialFingerprints":{"codehealthFindingId/v1":"5445640880289f71b4fed505049380f6583f3ddf1996eca610efd814a3875f0e"}},{"ruleId":"D1","level":"warning","message":{"text":"update.renderUpdateRemoteBody (cyclomatic 17): update.renderUpdateRemoteBody has cyclomatic complexity 17 (threshold 15). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/update.js"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"0477486a806c5da7647b12bd1af863363f2c5b48272da4f7455337143ee09b7d"}},{"ruleId":"D1","level":"warning","message":{"text":"vulnerability.renderVulnerabilities (cyclomatic 17): vulnerability.renderVulnerabilities 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":"web/static/js/vulnerability.js"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a70331bb121e9178197198a2953242a9e98d600981226c9484ce73ff705fd00"}},{"ruleId":"D1","level":"warning","message":{"text":"vulnerability.loadVulnerabilityAlertSubscription (cyclomatic 17): vulnerability.loadVulnerabilityAlertSubscription has cyclomatic complexity 17 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f644e53335098fdf9cf78c6e85c02b0bd605a21439481519908ad3fce9d67a"}},{"ruleId":"D1","level":"warning","message":{"text":"saveSessionNote (cyclomatic 17): saveSessionNote 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 3 function literals inside it that branch (lines 2017, 2036, 2024). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: runC2SafeAction (cyclomatic 20) 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":"web/static/js/c2.js"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f914abf7d827b135eec889b275459d59235dc5f91e80de3e5651e576226e036"}},{"ruleId":"D1","level":"warning","message":{"text":"syncAssistantReasoningContentFromServer (cyclomatic 17): syncAssistantReasoningContentFromServer has cyclomatic complexity 17 (threshold 15). Of this number, 16 points are the body\u0027s own statements and 1 belongs 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":"web/static/js/chat.js"},"region":{"startLine":3857}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2b907b293850500a939621b061f84268b56a776a586afe2d8101763eb88ff3"}},{"ruleId":"D1","level":"warning","message":{"text":"refreshLastAssistantProcessDetails (cyclomatic 17): refreshLastAssistantProcessDetails 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":"web/static/js/monitor.js"},"region":{"startLine":5487}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee8040ab079957d546fdf096b015d2e58598841ad8862730c8c51f64eca7059"}},{"ruleId":"D1","level":"warning","message":{"text":"loadActiveTasks (cyclomatic 17): loadActiveTasks 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 5 function literals inside it that branch (lines 6939, 6943, 6945, \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":"web/static/js/monitor.js"},"region":{"startLine":6936}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c1684caf1e9bd069b1ff3a987250f146a96eaa669514d81a1119ce6b2bc19c"}},{"ruleId":"D1","level":"warning","message":{"text":"saveInlineConcurrency (cyclomatic 17): saveInlineConcurrency 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":"web/static/js/tasks.js"},"region":{"startLine":2747}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bc3c35beb2364052d216349eb05b849f1ca154661c48011cf37bea8d0e31c6e"}},{"ruleId":"D1","level":"warning","message":{"text":"confirmVulnerabilityRetest (cyclomatic 17): confirmVulnerabilityRetest 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":"web/static/js/vulnerability.js"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4db077eee1301770e9545bce227949c8a22d1b1a3a12c70914b75724e44a40e"}},{"ruleId":"D1","level":"warning","message":{"text":"resolveWebshellAiStreamRequest (cyclomatic 17): resolveWebshellAiStreamRequest 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 3 function literals inside it that branch (lines 165, 162, 178). 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":"web/static/js/webshell.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef8656659ac3e8ddeba82d3cd658500ec2b9e9f485af5032ae18dd171695b9d"}},{"ruleId":"D1","level":"warning","message":{"text":"saveWorkflowDraft (cyclomatic 17): saveWorkflowDraft 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":"web/static/js/workflows.js"},"region":{"startLine":2232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e294f60e52626571958b5d417b97bad6796ae1db08aaf68dfe602a1405a6965a"}},{"ruleId":"D1","level":"warning","message":{"text":"Agent.executeToolViaMCP (cyclomatic 16): Agent.executeToolViaMCP has cyclomatic complexity 16 (threshold 15). Of this number, 15 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":"internal/agent/agent.go"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d58c480a3eaf34b8a66165e0de667d400633297672a659e71b9c8ab1fd2630f"}},{"ruleId":"D1","level":"warning","message":{"text":"app.registerC2SessionTool (cyclomatic 16): app.registerC2SessionTool 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 one function literal inside it that branches (line 264). 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":"internal/app/c2_tools.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cc7a4f95541e940f0926241684de0faaa637e47527cb6b87d1aa913dda77a71"}},{"ruleId":"D1","level":"warning","message":{"text":"HTTPBeaconListener.handleFileServe (cyclomatic 16): HTTPBeaconListener.handleFileServe 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":"internal/c2/listener_http.go"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"f370e7a133910153b342b52604b9879ed8faebfd3abff0707b87d3b59482eab0"}},{"ruleId":"D1","level":"warning","message":{"text":"WebSocketListener.handleConn (cyclomatic 16): WebSocketListener.handleConn 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, 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":"internal/c2/listener_websocket.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1efe0cecc8008023dfe99776610bd1464fca66307c96d5abe68ada438370627"}},{"ruleId":"D1","level":"warning","message":{"text":"OpenAIConfig.EffectiveMaxTotalTokens (cyclomatic 16): OpenAIConfig.EffectiveMaxTotalTokens 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":"internal/config/context_profile.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c1ce5b0d853a144d65bc65f643ef4457fea711bd14483bba7a3606286b641a4"}},{"ruleId":"D1","level":"warning","message":{"text":"database.columnDefinitions (cyclomatic 16): database.columnDefinitions has cyclomatic complexity 16 (threshold 15). Of this number, 10 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":"internal/database/schema_reconcile.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"941bdfc7fdf03529fde86857f80d7051a55c35ac1c07913a931020caba084379"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.ListAssignableRBACResourcesPage (cyclomatic 16): DB.ListAssignableRBACResourcesPage has cyclomatic complexity 16 (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":"internal/database/rbac.go"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecc3c3b0e3177e395a2d27b717d49d25c60b7f23f01ae69f596276ce94894159"}},{"ruleId":"D1","level":"warning","message":{"text":"DB.MergeVulnerabilities (cyclomatic 16): DB.MergeVulnerabilities 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":"internal/database/vulnerability_workspace.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78d15202feaa73625c736b1a7019cd556795c95f2aece334aad62422559e8c0"}},{"ruleId":"D1","level":"warning","message":{"text":"handler.appendVulnerabilityMarkdown (cyclomatic 16): handler.appendVulnerabilityMarkdown 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":"internal/handler/vulnerability.go"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dced12dfad2e5326ae68d28dfdeb3f44a1d682ad280d262bc81ff955f390afe"}},{"ruleId":"D1","level":"warning","message":{"text":"ChatUploadsHandler.collectConversationArtifactFiles (cyclomatic 16): ChatUploadsHandler.collectConversationArtifactFiles 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 619). 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":"internal/handler/chat_uploads.go"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"79e697243684ebe2009a454954ef4b48643dc2a6ecb61949c7772006e822c96f"}},{"ruleId":"D1","level":"warning","message":{"text":"ConversationHandler.GetConversationPlanTasks (cyclomatic 16): ConversationHandler.GetConversationPlanTasks 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":"internal/handler/conversation.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d8dd19d33e9a2d1bada510eb6cf85c8d9f2bec61d08ef8cd9b0222f5d65b61c"}},{"ruleId":"D1","level":"warning","message":{"text":"RobotHandler.getOrCreateConversation (cyclomatic 16): RobotHandler.getOrCreateConversation 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":"internal/handler/robot.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"de51cb7a4c9bb69de37040ae084f28794e8d86bf5af4a20e5d5a9967969db9cb"}},{"ruleId":"D1","level":"warning","message":{"text":"UpdateHandler.startJob (cyclomatic 16): UpdateHandler.startJob 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 423). 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":"internal/handler/update.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ab4dd1fc3ddda95f1073a8477803ff47d5d1e42c7420903fd9926e6c49cc73"}},{"ruleId":"D1","level":"warning","message":{"text":"VulnerabilityHandler.ExportVulnerabilities (cyclomatic 16): VulnerabilityHandler.ExportVulnerabilities 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":"internal/handler/vulnerability.go"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"f555e42849f25bf347428b3ae18e444d37bb5b539f3b6fcac30123274f000ce8"}},{"ruleId":"D1","level":"warning","message":{"text":"WebShellHandler.Exec (cyclomatic 16): WebShellHandler.Exec 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":"internal/handler/webshell.go"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb01307cdfb862cd11116a1bff76ee72454f1f362751f8e479feb7ad7290cb0"}},{"ruleId":"D1","level":"warning","message":{"text":"WorkflowHandler.CreatePackageInspection (cyclomatic 16): WorkflowHandler.CreatePackageInspection 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":"internal/handler/workflow_package.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"3aa7d468350d8b6766305155935ee52371a731f35f7fe28cbcf896f49a4f3496"}},{"ruleId":"D1","level":"warning","message":{"text":"Manager.SearchItemsByKeyword (cyclomatic 16): Manager.SearchItemsByKeyword 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":"internal/knowledge/manager.go"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a293e12e06d64043d86b73ff2aceae26a07b251b5dd100ee3929d3154ebc31"}},{"ruleId":"D1","level":"warning","message":{"text":"nativeMultiQuery.Retrieve (cyclomatic 16): nativeMultiQuery.Retrieve 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":"internal/knowledge/wire_retriever.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb7566e6f296ed21907a4bb253627b04b90c1a84c96e89050c9b23ba97645fb7"}},{"ruleId":"D1","level":"warning","message":{"text":"modelmeta.detectOpenAICompatible (cyclomatic 16): modelmeta.detectOpenAICompatible 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":"internal/modelmeta/context.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"82379f5a19d227afb6bcfaf78464fbdb9d66077e9ffbef1aebd13e8c11bb0990"}},{"ruleId":"D1","level":"warning","message":{"text":"project.extractBodySyncLinksBlock (cyclomatic 16): project.extractBodySyncLinksBlock 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":"internal/project/fact_body_links.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3f2ff6b1680f500c13862b1330682b78b96af2f80543fa6d3de6c6def6595ca"}},{"ruleId":"D1","level":"warning","message":{"text":"security.startShellSessionContext (cyclomatic 16): security.startShellSessionContext 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":"internal/security/process_scope.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7551948153882747ba472219aedc53daf6e1bdb2256e3d2c41f341a3546e3f5"}},{"ruleId":"D1","level":"warning","message":{"text":"update.recoverAdoption (cyclomatic 16): update.recoverAdoption 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":"internal/update/adopt.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a9dacd2d7896ad4be8e6747ef132c002d2d4db74d4b2f83234c28512ba33128"}},{"ruleId":"D1","level":"warning","message":{"text":"update.validateBuildFiles (cyclomatic 16): update.validateBuildFiles 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":"internal/update/recovery_evidence.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab54dfa5616cc93624b71b55949de003cdcdb5573fdc157e890edaacd68e4964"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.DryRunGraphJSON (cyclomatic 16): workflow.DryRunGraphJSON 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":"internal/workflow/dry_run.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a77c4da2cf3a2c2de61346733cf2321f33b4ef380fdca8f217a401f3e762c6"}},{"ruleId":"D1","level":"warning","message":{"text":"workflow.ResumeWorkflowRun (cyclomatic 16): workflow.ResumeWorkflowRun 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":"internal/workflow/resume.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"095290c56c3204b4f4a99ee2eb05acdee5a9d38bcb3367bdb7f02e0f83a1778a"}},{"ruleId":"D1","level":"warning","message":{"text":"mcp_pent_claude_agent._run_claude_agent (cyclomatic 16): mcp_pent_claude_agent._run_claude_agent 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":"mcp-servers/pent_claude_agent/mcp_pent_claude_agent.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"2943c640faa7a5971112bf3be3bfe29b48651654c210bd873c6937b8c2adb8ea"}},{"ruleId":"D1","level":"warning","message":{"text":"formatter.toPrompt (cyclomatic 16): formatter.toPrompt 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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/formatter.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5cf48160cf72c9046c38eec2207bf5a700ce429daed19786d6be8428606d4df"}},{"ruleId":"D1","level":"warning","message":{"text":"assets.renderAssetCoverage (cyclomatic 16): assets.renderAssetCoverage has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac337e70c151c495c25c7291220d4a4967c777e9f515c91d08c9a7108a5c7fa"}},{"ruleId":"D1","level":"warning","message":{"text":"c2.C2.loadSessionTasks (cyclomatic 16): c2.C2.loadSessionTasks 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 2 function literals inside it that branch (lines 3448, 3488). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: c2.runC2SafeAction (cyclomatic 20) 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":"web/static/js/c2.js"},"region":{"startLine":3447}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb76019db2a52be4883a36d08218f8d68580043bc8bb7142464db1847f3de818"}},{"ruleId":"D1","level":"warning","message":{"text":"chat-files.deleteChatFolderFromBrowse (cyclomatic 16): chat-files.deleteChatFolderFromBrowse 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":"web/static/js/chat-files.js"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabd637ba934b6ac9e16c6ca788f647b810adcca705e05b01cac3da016a3310e"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.populateChatAIChannelSelect (cyclomatic 16): chat.populateChatAIChannelSelect has cyclomatic complexity 16 (threshold 15). Of this number, 11 points are the body\u0027s own statements and 5 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":"web/static/js/chat.js"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddf332bd23cd3b998f242d85d2303a456ffd6098e46298deebdaf911de37feaa"}},{"ruleId":"D1","level":"warning","message":{"text":"chat.regenerateAttackChain (cyclomatic 16): chat.regenerateAttackChain has cyclomatic complexity 16 (threshold 15). Of this number, 15 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":"web/static/js/chat.js"},"region":{"startLine":8208}}}],"partialFingerprints":{"codehealthFindingId/v1":"33bd65f0bdf693f5e3dff98802ad06d1da8714cd5e8acbe5c2d6d5790e2af217"}},{"ruleId":"D1","level":"warning","message":{"text":"info-collect.inferTargetFromRow (cyclomatic 16): info-collect.inferTargetFromRow 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":"web/static/js/info-collect.js"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a5c52b1b596eeb2f4e2ba6101e80da2bf459249aa26ee1936d607cab35d46b1"}},{"ruleId":"D1","level":"warning","message":{"text":"info-collect.formatFofaRowSummary (cyclomatic 16): info-collect.formatFofaRowSummary 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 3 function literals inside it that branch (lines 1272, 1257, 1264). 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":"web/static/js/info-collect.js"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"80f6d1c39b2b36296637a5c5dbb4192bf83a5affc3bd806594d67e728bb2bffa"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge.searchKnowledgeItems (cyclomatic 16): knowledge.searchKnowledgeItems has cyclomatic complexity 16 (threshold 15). Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: these branches sit side by side rather than nested inside one another, so extracting each one on its own would leave a function per branch. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This is NOT this file\u0027s highest cyclomatic complexity: knowledge.renderRetrievalLogs (cyclomatic 28) 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":"web/static/js/knowledge.js"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"3863fa88fa14c8cb7a35b978ac3a6241a231c55470301207ffa09eddd334c3b5"}},{"ruleId":"D1","level":"warning","message":{"text":"knowledge.formatTime (cyclomatic 16): knowledge.formatTime 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. This is NOT this file\u0027s highest cyclomatic complexity: knowledge.renderRetrievalLogs (cyclomatic 28) 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":"web/static/js/knowledge.js"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"13e0bd9dc734197375c9d71b86991888c566389281002cf9d6c2900789724dd3"}},{"ruleId":"D1","level":"warning","message":{"text":"mobile-ui.enableSheetSwipe (cyclomatic 16): mobile-ui.enableSheetSwipe 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 3 function literals inside it that branch (lines 1040, 1051, 1029). 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":"web/static/js/mobile-ui.js"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60cbaf57b6ebd931bd953a31a4d1e25679875a8a5378ad85d6490560082dd42"}},{"ruleId":"D1","level":"warning","message":{"text":"modal.document.addEventListener(\u0022keydown\u0022) (cyclomatic 16): modal.document.addEventListener(\u0022keydown\u0022) has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/modal.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cbfcc5ee4e3e0f2e269696124e01f99e9ae2dda12094bfc4a876a74a6865e0"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor._normalizeEmphasisMarkersForMarkdown::normalizeLine (cyclomatic 16): monitor._normalizeEmphasisMarkersForMarkdown::normalizeLine 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":"web/static/js/monitor.js"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf28af027e0531219c753c89b59edcb89dc15d08b6e40c2e44e0f77e4cf89162"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.performHardCancelProgressTask (cyclomatic 16): monitor.performHardCancelProgressTask 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":"web/static/js/monitor.js"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4494e3297528cb548c1114b4132ea7e3b121b49b3675789e9c286f74bb294a4"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.ensureProcessDetailsReturnLatestControl (cyclomatic 16): monitor.ensureProcessDetailsReturnLatestControl has cyclomatic complexity 16 (threshold 15). Of this number, 13 points are the body\u0027s own statements and 3 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":"web/static/js/monitor.js"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"7524a0ea788ab35d0de3a49e2e64b967776b94a1c49589775f6d3db6363fcc46"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderDirectHitlSidebarApproval (cyclomatic 16): monitor.renderDirectHitlSidebarApproval 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":"web/static/js/monitor.js"},"region":{"startLine":4923}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d954d2ec9dff539f3571b0704613ed735f349ee3f91861010db4cfe4eb4e1c6"}},{"ruleId":"D1","level":"warning","message":{"text":"monitor.renderInlineWorkflowHitlApproval::submit (cyclomatic 16): monitor.renderInlineWorkflowHitlApproval::submit 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":"web/static/js/monitor.js"},"region":{"startLine":5140}}}],"partialFingerprints":{"codehealthFindingId/v1":"dada4e638a5ed513f1f6ceeb1fde55f7d30eff8449169436594e32765a4eff95"}},{"ruleId":"D1","level":"warning","message":{"text":"projects.linkFactToExistingVulnerability (cyclomatic 16): projects.linkFactToExistingVulnerability 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":"web/static/js/projects.js"},"region":{"startLine":1707}}}],"partialFingerprints":{"codehealthFindingId/v1":"e031d966c1139d3a9328b1317d8daa84909d33969ccf43f0dda0a24366f94db6"}},{"ruleId":"D1","level":"warning","message":{"text":"rbac.renderRbacResourcePicker (cyclomatic 16): rbac.renderRbacResourcePicker has cyclomatic complexity 16 (threshold 15). Of this number, 8 points are the body\u0027s own statements and 8 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":"web/static/js/rbac.js"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"60b81c96e6d57077028133d36bdb4250a74c4df9d988c864742fbc8bcd33641d"}},{"ruleId":"D1","level":"warning","message":{"text":"sanitize-markdown.installDomPurifyHooks (cyclomatic 16): sanitize-markdown.installDomPurifyHooks 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 46). 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":"web/static/js/sanitize-markdown.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53b2171709b982ec4c23bd7e5f89fc7566df51dc11983b4d6abbe8b155e370c"}},{"ruleId":"D1","level":"warning","message":{"text":"settings.syncHitlAuditBackendUI (cyclomatic 16): settings.syncHitlAuditBackendUI has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function item 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":"web/static/js/settings.js"},"region":{"startLine":3764}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c53ced9285da52a5abb3af0892df1258d66be9f81cd5d45692fa8fcfe7e6e3e"}},{"ruleId":"D1","level":"warning","message":{"text":"tool-guard.testLocalRule (cyclomatic 16): tool-guard.testLocalRule 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":"web/static/js/tool-guard.js"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff5b6d364518a1142081ca8360441ac48d21b3fc6ab6a133e58460855eb2658"}},{"ruleId":"D1","level":"warning","message":{"text":"generateRobotBindingCode (cyclomatic 16): generateRobotBindingCode 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":"web/static/js/auth.js"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"86d4a832fc00ee041628d99ff19798f9839fb6930a76f5be122e9cd91ea916e4"}},{"ruleId":"D1","level":"warning","message":{"text":"editListener (cyclomatic 16): editListener has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 6 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1267, 1241, 1265, \u2026). The decisions are inside those literals, which nothing outside this body can call, review or test on its own, so splitting the enclosing body is not the move available here. To reduce it, lift the literals\u0027 work into a named function or method at the enclosing scope and have each literal call it, then reduce whichever part then reads as the largest. This is NOT this file\u0027s highest cyclomatic complexity: runC2SafeAction (cyclomatic 20) 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":"web/static/js/c2.js"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"acb651cb1b3abb81ff3d6b94a677251ca8f79c756276b4a6d545347d9d79fd56"}},{"ruleId":"D1","level":"warning","message":{"text":"submitSessionSleep (cyclomatic 16): submitSessionSleep has cyclomatic complexity 16 (threshold 15). Of this number, 9 points are the body\u0027s own statements and 7 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. This is NOT this file\u0027s highest cyclomatic complexity: runC2SafeAction (cyclomatic 20) 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":"web/static/js/c2.js"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f74037182be5b015fd296776b2c44f7295b12f02088f9dd950031e49a3d7a52"}},{"ruleId":"D1","level":"warning","message":{"text":"chatFilesUploadFile (cyclomatic 16): chatFilesUploadFile 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":"web/static/js/chat-files.js"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"b52622eed9f3286ecb0cde807f58058a7ffa992b47fb01f72035bf9e6f28e7ec"}},{"ruleId":"D1","level":"warning","message":{"text":"submitFofaSearch (cyclomatic 16): submitFofaSearch 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":"web/static/js/info-collect.js"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea631884a1a100996b6a19924ed1a4a236ffa2119e66b0903f0b309aa991e605"}},{"ruleId":"D1","level":"warning","message":{"text":"refreshHitlBadge (cyclomatic 16): refreshHitlBadge has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 927, 937, 943, \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":"web/static/js/mobile-ui.js"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b4a53a6049b53e62faf77c928484bb5b80a81ecb76243ff92ec78b67401d7d1"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) has cyclomatic complexity 16 (threshold 15). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, separate the cases: extract each independent branch into its own named function, and where the body has guards that only reject input, fold those into early returns at the top."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/modal.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c72d2fd70a01ebd502abcc34b1ec05c45930d61b2e247124a715272bbc1c54"}},{"ruleId":"D1","level":"warning","message":{"text":"refreshMonitorPanelWithFilter (cyclomatic 16): refreshMonitorPanelWithFilter 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":"web/static/js/monitor.js"},"region":{"startLine":7604}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf40586e8cbb6ac300bc372e7dc5cc928aa10c6a974795e546b97613ea2e165"}},{"ruleId":"D1","level":"warning","message":{"text":"initChatProjectSelector (cyclomatic 16): initChatProjectSelector 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 5 function literals inside it that branch (lines 4045, 4064, 4056, \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":"web/static/js/projects.js"},"region":{"startLine":4040}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c54b309edeec93b48db25e37594a08044d3761fce8fc6bdfcbaeefa23d2bf63"}},{"ruleId":"D1","level":"warning","message":{"text":"renderRbacUsers (cyclomatic 16): renderRbacUsers has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 565, 559, 567, \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":"web/static/js/rbac.js"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"01fce9466f9d8f130ea37523006b99951f66aceca1aa3e7d07932f61ecbf7e26"}},{"ruleId":"D1","level":"warning","message":{"text":"startBatchQueue (cyclomatic 16): startBatchQueue 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":"web/static/js/tasks.js"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffbcbf729ab5d2b874689c93accd8290e16ccd91622cff016bf0a0024c519b48"}},{"ruleId":"D1","level":"warning","message":{"text":"selectWebshell::ensureDbTableColumns (cyclomatic 16): selectWebshell::ensureDbTableColumns 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":"web/static/js/webshell.js"},"region":{"startLine":3059}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fb17672902a503a514b4f7e2cfaf579d59437eaf173428e6eb2c76530b852fb"}},{"ruleId":"D1","level":"warning","message":{"text":"selectWebshell::ensureDbDatabaseColumns (cyclomatic 16): selectWebshell::ensureDbDatabaseColumns 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":"web/static/js/webshell.js"},"region":{"startLine":3098}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cfa8e04cf9a9109d77044760492a78da59263978a4ce9d2024f6c1503a774e0"}},{"ruleId":"D1","level":"warning","message":{"text":"runWebshellAiSend (cyclomatic 16): runWebshellAiSend 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":"web/static/js/webshell.js"},"region":{"startLine":3383}}}],"partialFingerprints":{"codehealthFindingId/v1":"108ef8a00537d1a6c52ad26c7c18af294bc2177d0ce37404bf63164ae46cc744"}},{"ruleId":"D1","level":"warning","message":{"text":"webshellFileRead (cyclomatic 16): webshellFileRead has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 4847, 4863, 4857, \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":"web/static/js/webshell.js"},"region":{"startLine":4839}}}],"partialFingerprints":{"codehealthFindingId/v1":"92cc79970f4afd1a216d5cc44d0091f062fd16401a7a9cffc7727c6f1ff92f34"}},{"ruleId":"D2","level":"warning","message":{"text":"handleStreamEvent (cognitive 777): handleStreamEvent has cognitive complexity 777 (threshold 15). Drivers by points: if/else 141 (320 pts), ternaries 110 (264 pts), boolean chains 179, error handling 4 (10 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 340). Of this number, 756 points are the body\u0027s own statements and 21 belong to 10 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":"web/static/js/monitor.js"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"201317f2a1e4f61069cb05778fd521d8b946e8a7b0452b5ad2664e8e7d59936f"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.createProgressCallback (cognitive 464): AgentHandler.createProgressCallback has cognitive complexity 464 (threshold 15). Drivers by points: if/else 131 (390 pts), loops 13 (41 pts), boolean chains 30, match/switch 1 (3 pts) (nesting depth added 289). Most of this is not in the body itself: 4 of the 464 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 1163, 1036, 1128, \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":"internal/handler/agent.go"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"e063b055fb405a186cf1dc6d73583bd63e1d61f54c78dc3a25b05f078bcfa841"}},{"ruleId":"D2","level":"warning","message":{"text":"runWebshellAiSend::(anonymous)::processChunk (cognitive 403): runWebshellAiSend::(anonymous)::processChunk has cognitive complexity 403 (threshold 15). Drivers by points: if/else 82 (187 pts), ternaries 35 (128 pts), boolean chains 76, error handling 3 (11 pts), loops 1 (nesting depth added 206). 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":"web/static/js/webshell.js"},"region":{"startLine":3544}}}],"partialFingerprints":{"codehealthFindingId/v1":"4371c70bb9e11c2aaa0f7aad19698bf04d6c0a98d061beb784fe8941f2923680"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshWebshellUIOnLanguageChange (cognitive 276): refreshWebshellUIOnLanguageChange has cognitive complexity 276 (threshold 15). Drivers by points: if/else 62 (176 pts), boolean chains 68, ternaries 11 (32 pts) (nesting depth added 135). Of this number, 274 points are the body\u0027s own statements and 2 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":"web/static/js/webshell.js"},"region":{"startLine":5031}}}],"partialFingerprints":{"codehealthFindingId/v1":"036a8b3ad14e1fbbd87ffaa913e773978bb798f4b519c25d75cd4fed3c02153b"}},{"ruleId":"D2","level":"warning","message":{"text":"loadConfig (cognitive 274): loadConfig has cognitive complexity 274 (threshold 15). Drivers by points: if/else 98 (132 pts), boolean chains 87, ternaries 19 (43 pts), other 11, error handling 1 (nesting depth added 58). Of this number, 263 points are the body\u0027s own statements and 11 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":"web/static/js/settings.js"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"e751ab0d4ba4327c3635e3c5511dc7496d672e21364540b4294fc88f4e48792e"}},{"ruleId":"D2","level":"warning","message":{"text":"renderProcessDetails::renderOneProcessDetail (cognitive 269): renderProcessDetails::renderOneProcessDetail has cognitive complexity 269 (threshold 15). Drivers by points: ternaries 67 (157 pts), if/else 50 (60 pts), boolean chains 52 (nesting depth added 100). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4299}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b5e6d188afd3c02714ec824adaa148fe05e085c338d5a27b083ad5822dc63f2"}},{"ruleId":"D2","level":"warning","message":{"text":"addTimelineItem (cognitive 259): addTimelineItem has cognitive complexity 259 (threshold 15). Drivers by points: ternaries 39 (92 pts), boolean chains 86, if/else 58 (80 pts), error handling 1 (nesting depth added 75). Of this number, 257 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6638}}}],"partialFingerprints":{"codehealthFindingId/v1":"757c7cc1d5d59ce2af4548efd12afa66049d1f4677b43db3353c6374a8644614"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigHandler.UpdateConfig (cognitive 205): ConfigHandler.UpdateConfig has cognitive complexity 205 (threshold 15). Drivers by points: if/else 80 (178 pts), loops 8 (23 pts), boolean chains 4 (nesting depth added 113). Of this number, 198 points are the body\u0027s own statements and 7 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":"internal/handler/config.go"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1dc6561bcf6157cf5374c83f0a98d23cc9b5ffead6be7a62d68229022cb654f"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.buildCommandArgs (cognitive 177): Executor.buildCommandArgs has cognitive complexity 177 (threshold 15). Drivers by points: if/else 47 (145 pts), loops 8 (18 pts), boolean chains 11, match/switch 1 (3 pts) (nesting depth added 110). 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":"internal/security/executor.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"9225f1a84a24d8fbc80d8310c2d33931cf51d25c1b33e18746654b54069e31d8"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshDashboard (cognitive 172): refreshDashboard has cognitive complexity 172 (threshold 15). Drivers by points: if/else 64 (92 pts), boolean chains 39, ternaries 21 (35 pts), error handling 3 (4 pts), other 2 (nesting depth added 43). Of this number, 151 points are the body\u0027s own statements and 21 belong to 11 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":"web/static/js/dashboard.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"49eb2638df2f1ea5586e6188d4326455bfc35a786d0eaeb55f88347cd093f6b9"}},{"ruleId":"D2","level":"warning","message":{"text":"renderAttackChain (cognitive 164): renderAttackChain has cognitive complexity 164 (threshold 15). Drivers by points: if/else 59 (71 pts), ternaries 30 (50 pts), boolean chains 36, error handling 4 (7 pts) (nesting depth added 35). Of this number, 29 points are the body\u0027s own statements and 135 belong to 36 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":"web/static/js/chat.js"},"region":{"startLine":7135}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb34eb79d355b5c7da41673b604450a64224493ae2a8d00f0add28ecb9a4f0ef"}},{"ruleId":"D2","level":"warning","message":{"text":"applySettings (cognitive 161): applySettings has cognitive complexity 161 (threshold 15). Drivers by points: boolean chains 98, ternaries 25 (33 pts), if/else 16 (19 pts), other 6, error handling 4, loops 1 (nesting depth added 11). Of this number, 129 points are the body\u0027s own statements and 32 belong to 14 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":"web/static/js/settings.js"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaab95b91c261a3dc381b1366c3a60d6c91d2fea6b872fdedf5eba78768d5165"}},{"ruleId":"D2","level":"warning","message":{"text":"piRun.executePiLocal (cognitive 143): piRun.executePiLocal has cognitive complexity 143 (threshold 15). Drivers by points: if/else 55 (122 pts), loops 4 (9 pts), boolean chains 7, match/switch 2 (5 pts) (nesting depth added 75). Of this number, 95 points are the body\u0027s own statements and 48 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":"internal/multiagent/pi_local_tools.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffa370c04223a8d1cf88acaa6027affd7d70258167e918480a38e019f8d79c0"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigHandler.GetTools (cognitive 138): ConfigHandler.GetTools has cognitive complexity 138 (threshold 15). Drivers by points: if/else 51 (108 pts), boolean chains 17, loops 6 (12 pts), match/switch 1 (nesting depth added 63). Of this number, 136 points are the body\u0027s own statements and 2 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":"internal/handler/config.go"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"6072d8f5458f40c831d9f08b9a66a89002dbfeb3a0c6f2bb1e3feb5dc2cc82be"}},{"ruleId":"D2","level":"warning","message":{"text":"buildWebshellTimelineItemFromDetail (cognitive 135): buildWebshellTimelineItemFromDetail has cognitive complexity 135 (threshold 15). Drivers by points: ternaries 41 (83 pts), boolean chains 28, if/else 17 (19 pts), error handling 2 (5 pts) (nesting depth added 47). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2220}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce18e322f05f84701f904ce226012d0e733bb64907ab4ef3a431676307828d14"}},{"ruleId":"D2","level":"warning","message":{"text":"initTerminal (cognitive 134): initTerminal has cognitive complexity 134 (threshold 15). Drivers by points: if/else 64 (79 pts), boolean chains 38, error handling 3 (7 pts), loops 6, ternaries 2 (4 pts) (nesting depth added 21). Most of this is not in the body itself: 14 of the 134 points are its own statements and the rest belongs to 20 function items inside it that branch (a function literal at line 2355, a function literal at line 2488, handlePasteText, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c02e97535f52263259cc766d3f2915f51d838280eede8d162a07877b3b689330"}},{"ruleId":"D2","level":"warning","message":{"text":"loadConversation (cognitive 124): loadConversation has cognitive complexity 124 (threshold 15). Drivers by points: if/else 62 (106 pts), boolean chains 58, ternaries 16 (46 pts), error handling 10 (17 pts) (nesting depth added 81). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6381}}}],"partialFingerprints":{"codehealthFindingId/v1":"d72c0b432be9fb25a8af1d1d0e27770c2354fc948329ff3a9fd8bbb77d675f72"}},{"ruleId":"D2","level":"warning","message":{"text":"sendMessage (cognitive 123): sendMessage has cognitive complexity 123 (threshold 15). Drivers by points: if/else 47 (63 pts), boolean chains 29, ternaries 12 (20 pts), error handling 5 (9 pts), loops 2 (nesting depth added 28). Of this number, 97 points are the body\u0027s own statements and 26 belong to 13 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":"web/static/js/chat.js"},"region":{"startLine":2248}}}],"partialFingerprints":{"codehealthFindingId/v1":"4539e68caa3abb19214f2417e5eaa2f1c2ea64b965a3796d3f03ad646991e023"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.MultiAgentLoopStream (cognitive 122): AgentHandler.MultiAgentLoopStream has cognitive complexity 122 (threshold 15). Drivers by points: if/else 52 (105 pts), match/switch 3 (9 pts), boolean chains 7, loops 1 (nesting depth added 59). Of this number, 83 points are the body\u0027s own statements and 39 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":"internal/handler/multi_agent.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd29e9c93303c9ae9e399ac8160f44e84daf413e3377b989917fcd2057ea0bd"}},{"ruleId":"D2","level":"warning","message":{"text":"TCPReverseListener.handleTCPBeaconSession (cognitive 121): TCPReverseListener.handleTCPBeaconSession has cognitive complexity 121 (threshold 15). Drivers by points: if/else 40 (110 pts), boolean chains 8, match/switch 1 (2 pts), loops 1 (nesting depth added 71). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8003922bcaa3ae4446c4d4f8d3bd8851c8b36fff86a935ca0aca267f97c0311"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.SingleAgentLoopStream (cognitive 120): AgentHandler.SingleAgentLoopStream has cognitive complexity 120 (threshold 15). Drivers by points: if/else 51 (104 pts), match/switch 3 (9 pts), boolean chains 6, loops 1 (nesting depth added 59). Of this number, 81 points are the body\u0027s own statements and 39 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":"internal/handler/single_agent.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5aac4caddd1ac2c54682cd8fe0b4654bb5edd7e7eb99cd76191ca7c5af1722"}},{"ruleId":"D2","level":"warning","message":{"text":"piRun.run (cognitive 117): piRun.run has cognitive complexity 117 (threshold 15). Drivers by points: if/else 62 (98 pts), boolean chains 10, loops 6, match/switch 2 (3 pts) (nesting depth added 37). Of this number, 47 points are the body\u0027s own statements and 70 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":"internal/multiagent/pi_runner.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9e315ec7e1c08bf7ec61dadc0697abb7c89c52616bef82d191038a63c874e7"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.ParseTraceMessages (cognitive 111): agent.ParseTraceMessages has cognitive complexity 111 (threshold 15). Drivers by points: if/else 28 (97 pts), loops 3 (9 pts), boolean chains 5 (nesting depth added 75). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agent/agent_trace.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b88b2b22f4ae78fd8173f5f7a2c973d253aad16479947db70b9d2b1d258ee1c"}},{"ruleId":"D2","level":"warning","message":{"text":"attachRunningTaskEventStream (cognitive 108): attachRunningTaskEventStream has cognitive complexity 108 (threshold 15). Drivers by points: if/else 41 (59 pts), boolean chains 36, ternaries 4 (7 pts), error handling 3 (5 pts), loops 1 (nesting depth added 23). Most of this is not in the body itself: 5 of the 108 points are its own statements and the rest belongs to 11 function items inside it that branch (a function literal at line 5625, (anonymous)::dispatchTaskEvent, a function literal at line 5630, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5611}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a200f7838ec53731c4d89d034c8fdf3d24cd62d76f8cc435157bddc618cd83"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshProgressAndTimelineI18n (cognitive 108): refreshProgressAndTimelineI18n has cognitive complexity 108 (threshold 15). Drivers by points: if/else 37 (45 pts), boolean chains 33, ternaries 15 (27 pts), error handling 1 (3 pts) (nesting depth added 22). None of this is in the body itself: all 108 points belong to 9 function items inside it that branch (a function literal at line 9573, a function literal at line 9555, a function literal at line 9680, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9533}}}],"partialFingerprints":{"codehealthFindingId/v1":"425682fc02513ea05037e645c3af7d8a685694338fa5b10ee03160804f98ba3b"}},{"ruleId":"D2","level":"warning","message":{"text":"showBatchQueueDetail (cognitive 107): showBatchQueueDetail has cognitive complexity 107 (threshold 15). Drivers by points: ternaries 41 (48 pts), if/else 22 (30 pts), boolean chains 21, error handling 3 (8 pts) (nesting depth added 20). Of this number, 65 points are the body\u0027s own statements and 42 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":"web/static/js/tasks.js"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"04015cb7b1c2e11eb7ae2648cffe6a1229476c8cb6c7b259e93f697291ff5278"}},{"ruleId":"D2","level":"warning","message":{"text":"update.finishPendingBuild (cognitive 100): update.finishPendingBuild has cognitive complexity 100 (threshold 15). Drivers by points: if/else 41 (90 pts), boolean chains 10 (nesting depth added 49). 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":"internal/update/apply.go"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"50d90e3218b9384bbea704b6021bded32fcc04c2506196a6bcf4cfe0795224e4"}},{"ruleId":"D2","level":"warning","message":{"text":"initPage (cognitive 100): initPage has cognitive complexity 100 (threshold 15). Drivers by points: if/else 43 (81 pts), boolean chains 9, error handling 3 (9 pts), match/switch 1 (nesting depth added 44). Of this number, 81 points are the body\u0027s own statements and 19 belong to 7 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/router.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"8322dc9eda9af75b1657d5abe00ebd30146cc60e44dc37c2795dec619fed4ef2"}},{"ruleId":"D2","level":"warning","message":{"text":"app.mcpToolAuthorizer (cognitive 97): app.mcpToolAuthorizer has cognitive complexity 97 (threshold 15). Drivers by points: if/else 40 (77 pts), boolean chains 19, match/switch 1 (nesting depth added 37). None of this is in the body itself: all 97 points belong to one function literal inside it that branches (line 16). 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":"internal/app/mcp_authorization.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"726dd71b90ac74015de719a8371acdd75b559049a06c6a758f0dc9e538166541"}},{"ruleId":"D2","level":"warning","message":{"text":"initWebshellTerminal (cognitive 97): initWebshellTerminal has cognitive complexity 97 (threshold 15). Drivers by points: if/else 31 (49 pts), boolean chains 22, ternaries 7 (15 pts), error handling 5 (10 pts), loops 1 (nesting depth added 31). Most of this is not in the body itself: 14 of the 97 points are its own statements and the rest belongs to 9 function items inside it that branch (a function literal at line 4047, writeWebshellOutput, a function literal at line 4119, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3985}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e9ebd619b5cd1d7ac4160eed83f2032a8ce1cd4afefbcfd6a687574904e06dc"}},{"ruleId":"D2","level":"warning","message":{"text":"app.New (cognitive 96): app.New has cognitive complexity 96 (threshold 15). Drivers by points: if/else 50 (86 pts), loops 3 (6 pts), boolean chains 4 (nesting depth added 39). Of this number, 50 points are the body\u0027s own statements and 46 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":"internal/app/app.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef76575d38c87ee549132717d6956f04f6be8787b2b4bda3ab5ecc31ef3056b9"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.enrichSpecWithI18nKeys (cognitive 91): handler.enrichSpecWithI18nKeys has cognitive complexity 91 (threshold 15). Drivers by points: if/else 18 (71 pts), loops 5 (17 pts), match/switch 1 (3 pts) (nesting depth added 67). 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":"internal/handler/openapi_i18n.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfd7eab5b02be275d915efbbf5810943d019742182fc2faf1226b7b873eb8044"}},{"ruleId":"D2","level":"warning","message":{"text":"restoreHitlInlineForConversation (cognitive 91): restoreHitlInlineForConversation has cognitive complexity 91 (threshold 15). Drivers by points: if/else 23 (45 pts), ternaries 7 (20 pts), boolean chains 13, error handling 4 (9 pts), loops 2 (4 pts) (nesting depth added 42). 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":"web/static/js/monitor.js"},"region":{"startLine":5375}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a507922cc5c213c5f756983b0fc8f722a255a1c3d4f06b2a5eac2872feb059b"}},{"ruleId":"D2","level":"warning","message":{"text":"Pi.Run (cognitive 90): Pi.Run has cognitive complexity 90 (threshold 15). Drivers by points: if/else 30 (69 pts), match/switch 6 (16 pts), boolean chains 3, loops 2 (nesting depth added 49). Of this number, 58 points are the body\u0027s own statements and 32 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":"internal/agentruntime/pi.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"71c36e5f8daf7f8875fe39f1cc71a8673b8a2b3a7bc376626462b10525115274"}},{"ruleId":"D2","level":"warning","message":{"text":"webshell.selectWebshell (cognitive 90): webshell.selectWebshell has cognitive complexity 90 (threshold 15). Drivers by points: boolean chains 172, if/else 123 (144 pts), ternaries 12, error handling 3 (6 pts) (nesting depth added 24). 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 (webshell.selectWebshell::applyActiveDbProfileToForm) 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":"web/static/js/webshell.js"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d21cfa297f10084e73c592391e54848cf67d7dc1fd5052d12a09dd3c0856ff"}},{"ruleId":"D2","level":"warning","message":{"text":"loadProcessDetailsPaginated (cognitive 90): loadProcessDetailsPaginated has cognitive complexity 90 (threshold 15). Drivers by points: ternaries 16 (31 pts), boolean chains 28, if/else 16 (26 pts), error handling 2 (4 pts), loops 1 (nesting depth added 27). Of this number, 88 points are the body\u0027s own statements and 2 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce3fc3d52436d56a6cd52d995ead085585aff75549e90860de04389b683f8a7"}},{"ruleId":"D2","level":"warning","message":{"text":"webshell.renderDirectoryTree (cognitive 88): webshell.renderDirectoryTree has cognitive complexity 88 (threshold 15). Drivers by points: if/else 22 (34 pts), boolean chains 28, ternaries 13 (22 pts), loops 2 (4 pts) (nesting depth added 23). Of this number, 27 points are the body\u0027s own statements and 61 belong to 13 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":"web/static/js/webshell.js"},"region":{"startLine":4552}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f3dcb4f9d86216c5ca3cfb528a3e26bc8c6eac74ab4daf882e8ac7a12f6cba"}},{"ruleId":"D2","level":"warning","message":{"text":"app.registerC2ProfileTool (cognitive 87): app.registerC2ProfileTool has cognitive complexity 87 (threshold 15). Drivers by points: if/else 25 (62 pts), loops 6 (24 pts), match/switch 1 (nesting depth added 55). None of this is in the body itself: all 87 points belong to one function literal inside it that branches (line 714). 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":"internal/app/c2_tools.go"},"region":{"startLine":689}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2edbb16cdbda5daad4f11ca1ca50f062456c9bb168d6abdea490d403ab4e2ec"}},{"ruleId":"D2","level":"warning","message":{"text":"renderExternalMCPList (cognitive 85): renderExternalMCPList has cognitive complexity 85 (threshold 15). Drivers by points: ternaries 34 (68 pts), boolean chains 11, if/else 4 (5 pts), loops 1 (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":"web/static/js/settings.js"},"region":{"startLine":4502}}}],"partialFingerprints":{"codehealthFindingId/v1":"06a3522a3272e52c786d981934e477b14e6ddad85f54ffe0330b1d5c74eaa089"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.ChatCompletionStreamWithToolCalls (cognitive 83): Client.ChatCompletionStreamWithToolCalls has cognitive complexity 83 (threshold 15). Drivers by points: if/else 32 (72 pts), loops 6 (9 pts), boolean chains 2 (nesting depth added 43). 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":"internal/openai/openai.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"2944108816974f39e82efeb33d195b2946eb57620008dd6635f3280345541984"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.RegisterBatchTaskMCPTools (cognitive 80): handler.RegisterBatchTaskMCPTools has cognitive complexity 80 (threshold 15). Drivers by points: if/else 59 (68 pts), boolean chains 9, match/switch 1 (2 pts), loops 1 (nesting depth added 10). Most of this is not in the body itself: 2 of the 80 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 200, 58, 488, \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":"internal/handler/batch_task_mcp.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"92945111537b926208842af37ef0d2bd41840394abb5654f7cbbe8ddba66ec7a"}},{"ruleId":"D2","level":"warning","message":{"text":"coalesceProcessDetailsToolPairs (cognitive 79): coalesceProcessDetailsToolPairs has cognitive complexity 79 (threshold 15). Drivers by points: if/else 19 (54 pts), boolean chains 14, loops 3 (9 pts), ternaries 1 (2 pts) (nesting depth added 42). Of this number, 72 points are the body\u0027s own statements and 7 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":"web/static/js/monitor.js"},"region":{"startLine":6314}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ef9d7efb5952906286c7fac23f0ae6cc5382666e018df53cf9e7ec10caeac0"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.GetProcessDetailsSummary (cognitive 78): DB.GetProcessDetailsSummary has cognitive complexity 78 (threshold 15). Drivers by points: if/else 36 (67 pts), boolean chains 7, loops 2, match/switch 1 (2 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a966e2d8e6cb54dfb8b8e175ddab5cb54af2711c1867f4be74ae925a412f2d6"}},{"ruleId":"D2","level":"warning","message":{"text":"piRun.executePiPlan (cognitive 77): piRun.executePiPlan has cognitive complexity 77 (threshold 15). Drivers by points: if/else 24 (59 pts), loops 7 (15 pts), boolean chains 3 (nesting depth added 43). 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":"internal/multiagent/pi_plan_tools.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"13ecbc03e3f23451b082ab2053a86d7b8f6f2cefc60652a484f0e7365146c3ec"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.transformSecretTree (cognitive 73): handler.transformSecretTree has cognitive complexity 73 (threshold 15). Drivers by points: if/else 13 (52 pts), loops 4 (14 pts), boolean chains 6, match/switch 1 (nesting depth added 49). 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":"internal/handler/config_secrets.go"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"f962c5a9bdfad8906513ee3bd73d242997865c26ffc988dd721862b787896455"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.invokeGraph (cognitive 72): workflow.invokeGraph has cognitive complexity 72 (threshold 15). Drivers by points: if/else 25 (60 pts), loops 5 (8 pts), boolean chains 4 (nesting depth added 38). Of this number, 71 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/native_runtime.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f74a36f0cc0ef7226fd3f2bc3d63b2123a3537ea507287838e81dacb8aeabec7"}},{"ruleId":"D2","level":"warning","message":{"text":"editRole (cognitive 72): editRole has cognitive complexity 72 (threshold 15). Drivers by points: if/else 27 (51 pts), boolean chains 11, ternaries 3 (8 pts), error handling 1 (2 pts) (nesting depth added 30). Of this number, 48 points are the body\u0027s own statements and 24 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":"web/static/js/roles.js"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"81140c8adc568830e6a00c80284a032fd11bf43cbac0cad6b42ce706b2c37a34"}},{"ruleId":"D2","level":"warning","message":{"text":"project.BuildProjectFactGraph (cognitive 70): project.BuildProjectFactGraph has cognitive complexity 70 (threshold 15). Drivers by points: if/else 31 (57 pts), loops 8 (11 pts), boolean chains 2 (nesting depth added 29). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_edges.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6b766a52503590249c1bfe03c251086b6ac0603f9d59c29427219c4ae94fcfc"}},{"ruleId":"D2","level":"warning","message":{"text":"renderMCPDetailModal (cognitive 70): renderMCPDetailModal has cognitive complexity 70 (threshold 15). Drivers by points: if/else 18 (29 pts), ternaries 13 (25 pts), boolean chains 13, error handling 2 (3 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":"web/static/js/chat.js"},"region":{"startLine":5600}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b8ea4f34a3aece54af2acaaa4c19d6fdacfad592eaab9d34d9b21042f57980"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.prepareMultiAgentSession (cognitive 68): AgentHandler.prepareMultiAgentSession has cognitive complexity 68 (threshold 15). Drivers by points: if/else 40 (55 pts), boolean chains 13 (nesting depth added 15). Of this number, 66 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent_prepare.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d843de673a356c044f237db81957e3135934fe8f30ee842b43d3a1d6b0ae78"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.loadConversation::renderOneMessage (cognitive 68): chat.loadConversation::renderOneMessage has cognitive complexity 68 (threshold 15). Drivers by points: ternaries 14 (32 pts), boolean chains 23, if/else 8 (13 pts) (nesting depth added 23). 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":"web/static/js/chat.js"},"region":{"startLine":6531}}}],"partialFingerprints":{"codehealthFindingId/v1":"8abba2abf80e6fcec96409f597697926509b4e02e6ae656d24e5ab8d3a7ede82"}},{"ruleId":"D2","level":"warning","message":{"text":"buildInlineHitlApprovalHtml (cognitive 68): buildInlineHitlApprovalHtml has cognitive complexity 68 (threshold 15). Drivers by points: ternaries 23 (38 pts), boolean chains 22, if/else 6 (8 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":"web/static/js/monitor.js"},"region":{"startLine":4607}}}],"partialFingerprints":{"codehealthFindingId/v1":"29f5fcc165480521e8492df6aa98a0046ae2f89f50215f970a484b17fb8bb3f2"}},{"ruleId":"D2","level":"warning","message":{"text":"roles.saveRole (cognitive 67): roles.saveRole has cognitive complexity 67 (threshold 15). Drivers by points: if/else 21 (45 pts), boolean chains 11, ternaries 8 (10 pts), error handling 1 (nesting depth added 26). Of this number, 48 points are the body\u0027s own statements and 19 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":"web/static/js/roles.js"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"097c84ad4b0b83340e1bc0a74afe1f23022240875b9fd4694ae7b4cbf1e5e270"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.validateWorkflowGraph (cognitive 66): workflows.validateWorkflowGraph has cognitive complexity 66 (threshold 15). Drivers by points: if/else 25 (34 pts), boolean chains 28, loops 2 (4 pts) (nesting depth added 11). Most of this is not in the body itself: 11 of the 66 points are its own statements and the rest belongs to 16 function items inside it that branch (a function literal at line 2130, visit, a function literal at line 2125, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"e51166d52da92310aecfe3c3a560a35638956bbba2be33dee0a00978be35b337"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigHandler.ApplyConfig (cognitive 65): ConfigHandler.ApplyConfig has cognitive complexity 65 (threshold 15). Drivers by points: if/else 42 (59 pts), boolean chains 6 (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":"internal/handler/config.go"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"95cead38607cdc1adb8c124911ac01561fe5c4234ff7f9e76bdc655f249c09e8"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.BuildChainFromConversation (cognitive 64): Builder.BuildChainFromConversation has cognitive complexity 64 (threshold 15). Drivers by points: if/else 30 (53 pts), loops 5 (7 pts), boolean chains 4 (nesting depth added 25). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/builder.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d35c31ca521ed16ec81536e798d57b83fd5562944d4537e742cc7d2c55c07fb"}},{"ruleId":"D2","level":"warning","message":{"text":"app.registerWebshellManagementTools (cognitive 62): app.registerWebshellManagementTools has cognitive complexity 62 (threshold 15). Drivers by points: if/else 44 (54 pts), boolean chains 7, loops 1 (nesting depth added 10). Most of this is not in the body itself: 1 of the 62 points is its own statement and the rest belongs to 7 function literals inside it that branch (lines 1941, 1735, 2071, \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":"internal/app/app.go"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cf74278c4b121d9e542a471f2df1dd68d4444f58d2e627eb24724c8e7285791"}},{"ruleId":"D2","level":"warning","message":{"text":"loadConversations (cognitive 62): loadConversations has cognitive complexity 62 (threshold 15). Drivers by points: if/else 29 (40 pts), ternaries 12 (15 pts), boolean chains 6, error handling 1 (nesting depth added 14). Of this number, 47 points are the body\u0027s own statements and 15 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":"web/static/js/chat.js"},"region":{"startLine":10004}}}],"partialFingerprints":{"codehealthFindingId/v1":"db9de066319cc907eb346619406c2c6d0479ed458d496fabc3e9fb43d1253975"}},{"ruleId":"D2","level":"warning","message":{"text":"update.Rollback (cognitive 60): update.Rollback has cognitive complexity 60 (threshold 15). Drivers by points: if/else 35 (54 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (2 pts) (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":907}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad163e9576457379626bf41b026581e19fed38deef53719ddcbeed429b8f420"}},{"ruleId":"D2","level":"warning","message":{"text":"syncModelListFetchButtons (cognitive 60): syncModelListFetchButtons has cognitive complexity 60 (threshold 15). Drivers by points: if/else 28 (36 pts), boolean chains 15, ternaries 5 (9 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":"web/static/js/settings.js"},"region":{"startLine":3478}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a1e5dde2739b4eaf47fb94149557c9f746611045a5ee4c91d3f5de53c1ed487"}},{"ruleId":"D2","level":"warning","message":{"text":"parseWebshellListItems (cognitive 60): parseWebshellListItems has cognitive complexity 60 (threshold 15). Drivers by points: if/else 18 (45 pts), boolean chains 9, ternaries 1 (5 pts), loops 1 (nesting depth added 31). 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":"web/static/js/webshell.js"},"region":{"startLine":4325}}}],"partialFingerprints":{"codehealthFindingId/v1":"9129f4fc74786914976aaa6f67fba8bc2a29f7f901c42fad628e541822cdf1b0"}},{"ruleId":"D2","level":"warning","message":{"text":"project.SyncBodyLinksSection (cognitive 59): project.SyncBodyLinksSection has cognitive complexity 59 (threshold 15). Drivers by points: if/else 13 (47 pts), loops 3 (9 pts), boolean chains 3 (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":"internal/project/fact_body_links.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c334058f552ceb1da42354f28e87e1f2ae138df97dcfc124832b266addf074"}},{"ruleId":"D2","level":"warning","message":{"text":"webshell.runWebshellAiSend::appendTimelineItem (cognitive 59): webshell.runWebshellAiSend::appendTimelineItem has cognitive complexity 59 (threshold 15). Drivers by points: ternaries 14 (35 pts), boolean chains 10, if/else 7 (9 pts), error handling 2 (5 pts) (nesting depth added 26). 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":"web/static/js/webshell.js"},"region":{"startLine":3418}}}],"partialFingerprints":{"codehealthFindingId/v1":"094a98c4c2aab64787fec5485cb2dac1f87c628158f50cb544e4881a30f879bc"}},{"ruleId":"D2","level":"warning","message":{"text":"app.registerC2ListenerTool (cognitive 58): app.registerC2ListenerTool has cognitive complexity 58 (threshold 15). Drivers by points: if/else 23 (50 pts), boolean chains 5, loops 1 (2 pts), match/switch 1 (nesting depth added 28). None of this is in the body itself: all 58 points belong to one function literal inside it that branches (line 85). 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":"internal/app/c2_tools.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b078c3df8e95f51f9e0a91b564f1a9150309f404d5b1ca85feeb74aaf5118a4e"}},{"ruleId":"D2","level":"warning","message":{"text":"app.registerProjectFactTools (cognitive 58): app.registerProjectFactTools has cognitive complexity 58 (threshold 15). Drivers by points: if/else 41 (48 pts), loops 4 (6 pts), boolean chains 4 (nesting depth added 9). Most of this is not in the body itself: 5 of the 58 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 119, 194, 370, \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":"internal/app/project_fact_tools.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2ea46ecdd7613f15b2b189a12f79ed7c872ec94d1d56ca8b25f00841cca4a74"}},{"ruleId":"D2","level":"warning","message":{"text":"render (cognitive 58): render has cognitive complexity 58 (threshold 15). Drivers by points: boolean chains 35, if/else 10 (12 pts), ternaries 8 (11 pts) (nesting depth added 5). Of this number, 31 points are the body\u0027s own statements and 27 belong to 15 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":"web/static/js/fact-graph.js"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c0fd46ffe792ab9d4703ee827109e98bd491eefdd5a2a32663bdd5d3f634b8"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.executeOneBatchSubTask (cognitive 57): AgentHandler.executeOneBatchSubTask has cognitive complexity 57 (threshold 15). Drivers by points: if/else 38 (50 pts), boolean chains 6, match/switch 1 (nesting depth added 12). Of this number, 54 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_queue_executor.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d967e20975a411f443242f60281bf678b927a28cb25ef85c1d97d469358885"}},{"ruleId":"D2","level":"warning","message":{"text":"project.BuildWorkspaceInventoryBlock (cognitive 57): project.BuildWorkspaceInventoryBlock has cognitive complexity 57 (threshold 15). Drivers by points: if/else 18 (40 pts), boolean chains 7, match/switch 2 (7 pts), loops 2 (3 pts) (nesting depth added 28). Most of this is not in the body itself: 7 of the 57 points are its own statements and the rest belongs to one function literal inside it that branches (line 27). 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":"internal/project/workspace_inventory.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1ae268fdaef6e42df26450eb19854b329bbf6f3efce41e76ac8d145ff60aa1"}},{"ruleId":"D2","level":"warning","message":{"text":"worker.run (cognitive 57): worker.run has cognitive complexity 57 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 22, ternaries 4 (7 pts), loops 2, error handling 1 (nesting depth added 9). Of this number, 44 points are the body\u0027s own statements and 13 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":"runtime/pi/src/worker.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"77ddd2019064500e75fa547cef4a72554bcc2e3a488f5876453833a664a1559b"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderMonitorExecutions (cognitive 57): monitor.renderMonitorExecutions has cognitive complexity 57 (threshold 15). Drivers by points: ternaries 22 (28 pts), if/else 13 (17 pts), boolean chains 12 (nesting depth added 10). Of this number, 46 points are the body\u0027s own statements and 11 belong to one function literal inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9045}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c5277814316d1341ed357e13d7cb3e40b5d1203b0f26e4e8acdfd5290300a7"}},{"ruleId":"D2","level":"warning","message":{"text":"saveExternalMCP (cognitive 57): saveExternalMCP has cognitive complexity 57 (threshold 15). Drivers by points: if/else 16 (26 pts), ternaries 8 (15 pts), boolean chains 11, loops 2 (3 pts), error handling 2 (nesting depth added 18). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":4734}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72defe9cece3a838cae142091c698e52c6aaef20cfcce7ebee24eb32d622cbd"}},{"ruleId":"D2","level":"warning","message":{"text":"renderFileList (cognitive 57): renderFileList has cognitive complexity 57 (threshold 15). Drivers by points: if/else 17 (23 pts), boolean chains 18, ternaries 8 (16 pts) (nesting depth added 14). Of this number, 23 points are the body\u0027s own statements and 34 belong to 20 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":"web/static/js/webshell.js"},"region":{"startLine":4413}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e6caf5545f7c963b738ee50ac5d19fb2fe608059adb07734df5e8f3946f3cd"}},{"ruleId":"D2","level":"warning","message":{"text":"testWebshellConnection (cognitive 56): testWebshellConnection has cognitive complexity 56 (threshold 15). Drivers by points: boolean chains 23, if/else 17 (21 pts), ternaries 6 (11 pts), error handling 1 (nesting depth added 9). Of this number, 31 points are the body\u0027s own statements and 25 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":"web/static/js/webshell.js"},"region":{"startLine":5229}}}],"partialFingerprints":{"codehealthFindingId/v1":"fabb03c5f81c5e450b55cd3f6fe511aaaa390affb2ba5f68123ae25204d00864"}},{"ruleId":"D2","level":"warning","message":{"text":"RobotHandler.handleRobotCommand (cognitive 55): RobotHandler.handleRobotCommand has cognitive complexity 55 (threshold 15). Drivers by points: boolean chains 29, if/else 13 (19 pts), match/switch 4 (7 pts) (nesting depth added 9). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"db90e277edad3f976028aa3cba02f3edea1cd7e69149b3c68fe86e2878716fd6"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRecentFacts (cognitive 55): renderRecentFacts has cognitive complexity 55 (threshold 15). Drivers by points: if/else 10 (20 pts), ternaries 8 (14 pts), boolean chains 11, error handling 2 (10 pts) (nesting depth added 24). Of this number, 23 points are the body\u0027s own statements and 32 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":"web/static/js/dashboard.js"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"d48a5b4bfa4fb538c2f32f4370a4695d4cd602af5d79cad90ebf2f5d6659f382"}},{"ruleId":"D2","level":"warning","message":{"text":"nativeSplitter.Transform (cognitive 54): nativeSplitter.Transform has cognitive complexity 54 (threshold 15). Drivers by points: if/else 12 (35 pts), loops 6 (16 pts), boolean chains 3 (nesting depth added 33). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/splitter.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba1b47c5001c08d16f4edd3c7bad9da32dc0228a73ef5271d6edce142e3aabc"}},{"ruleId":"D2","level":"warning","message":{"text":"renderProcessDetails (cognitive 54): renderProcessDetails has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 86 (186 pts), if/else 99 (122 pts), boolean chains 87, other 2, loops 1 (nesting depth added 123). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4069}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1dfaf23393f819ed246e7de531413618e9cfa645361f4664e4d8c00b617e00e"}},{"ruleId":"D2","level":"warning","message":{"text":"renderToolCallDetailContent (cognitive 54): renderToolCallDetailContent has cognitive complexity 54 (threshold 15). Drivers by points: ternaries 11 (28 pts), if/else 10 (17 pts), boolean chains 7, error handling 1 (2 pts) (nesting depth added 25). 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":"web/static/js/monitor.js"},"region":{"startLine":6078}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fcd8bb29bb44ca0aa10ffb14db4ae81d93c5779883ff590effddc9c9b9ff4f4"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent.repairOrphanToolMessages (cognitive 53): Agent.repairOrphanToolMessages has cognitive complexity 53 (threshold 15). Drivers by points: if/else 15 (37 pts), loops 4 (11 pts), boolean chains 3, match/switch 1 (2 pts) (nesting depth added 30). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agent/agent.go"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3b901abb9d7d3c595f73848b59d4fba842363218366ab4f0186971b3751bdd1"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTaskManager.LoadFromDB (cognitive 53): BatchTaskManager.LoadFromDB has cognitive complexity 53 (threshold 15). Drivers by points: if/else 22 (47 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"fccf1b6ac1e9e04a0af0e9ef2973d02c4a8b3db3095865ce1b313fdbade331c8"}},{"ruleId":"D2","level":"warning","message":{"text":"testHitlAuditModelConnection (cognitive 53): testHitlAuditModelConnection has cognitive complexity 53 (threshold 15). Drivers by points: ternaries 13 (28 pts), if/else 13 (19 pts), boolean chains 5, error handling 1 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3824}}}],"partialFingerprints":{"codehealthFindingId/v1":"32223ac7be82f4d1eace23a81b8c9d185cdf8048e6ae1e6eac9feb5be9ce9de5"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent.getAvailableTools (cognitive 52): Agent.getAvailableTools has cognitive complexity 52 (threshold 15). Drivers by points: if/else 17 (46 pts), loops 3 (6 pts) (nesting depth added 32). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agent/agent.go"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef600f6bb0bfe6023b72fa3099002e63b3482b7c49a46a78511e7b1538575d9"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-files.renderChatFilesTable (cognitive 52): chat-files.renderChatFilesTable has cognitive complexity 52 (threshold 15). Drivers by points: ternaries 43 (66 pts), if/else 24 (32 pts), boolean chains 23, loops 1 (2 pts) (nesting depth added 32). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This shape REPEATS in the file: 2 other methods here (chat-files.renderChatFilesTable::rowHtml, chat-files.renderChatFilesTable::rowHtmlTreeFile) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"060b92c6e6dfc708803482693729b5a779f08d4adfa2c1ecd23c3c3940c178f5"}},{"ruleId":"D2","level":"warning","message":{"text":"saveKnowledgeItem (cognitive 52): saveKnowledgeItem has cognitive complexity 52 (threshold 15). Drivers by points: if/else 22 (33 pts), boolean chains 9, ternaries 6, error handling 3 (4 pts) (nesting depth added 12). Of this number, 49 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":"web/static/js/knowledge.js"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"47c0ef26a2e74d6878700199d33f84a4208984e1233c90ddf1699fdf325db575"}},{"ruleId":"D2","level":"warning","message":{"text":"startProcessDetailsLatestFollow (cognitive 52): startProcessDetailsLatestFollow has cognitive complexity 52 (threshold 15). Drivers by points: if/else 28 (29 pts), boolean chains 20, ternaries 3 (nesting depth added 1). Most of this is not in the body itself: 15 of the 52 points are its own statements and the rest belongs to 19 function items inside it that branch (onScroll, onWheel, onKeyDown, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"914811b4d7c503181f6abfb5d659eaf50b393ff86e276142ae333ded85bb349e"}},{"ruleId":"D2","level":"warning","message":{"text":"multiagent.runPiMulti (cognitive 51): multiagent.runPiMulti has cognitive complexity 51 (threshold 15). Drivers by points: if/else 32 (45 pts), boolean chains 5, loops 1 (nesting depth added 13). Of this number, 29 points are the body\u0027s own statements and 22 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":"internal/multiagent/pi_runner.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b6f130c81bc50f900053631bce099df9035239a07c1cc7add00b6234dccdd2"}},{"ruleId":"D2","level":"warning","message":{"text":"onEvent (cognitive 51): onEvent has cognitive complexity 51 (threshold 15). Drivers by points: if/else 14 (22 pts), boolean chains 17, error handling 3 (9 pts), ternaries 1 (3 pts) (nesting depth added 16). Of this number, 44 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":"web/static/js/c2.js"},"region":{"startLine":4388}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace79ccba713c75227c478389b6a2e3cfecb3612901f994107ba527c95d3491b"}},{"ruleId":"D2","level":"warning","message":{"text":"database.tokenizeSchema (cognitive 49): database.tokenizeSchema has cognitive complexity 49 (threshold 15). Drivers by points: if/else 12 (32 pts), loops 4 (10 pts), boolean chains 7 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/schema_reconcile.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"939ea13a0455e10d8af6633b37f61bc7f5188940dacbb3cf7ccba09eb0344133"}},{"ruleId":"D2","level":"warning","message":{"text":"router.updateNavState (cognitive 49): router.updateNavState has cognitive complexity 49 (threshold 15). Drivers by points: if/else 26 (43 pts), boolean chains 6 (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":"web/static/js/router.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"585c27136296347ac125cdacb3e0c5a9b123c221f80977d0d17272f4d08e2269"}},{"ruleId":"D2","level":"warning","message":{"text":"vulnerability.syncVulnerabilityFiltersFromLocationHash (cognitive 49): vulnerability.syncVulnerabilityFiltersFromLocationHash has cognitive complexity 49 (threshold 15). Drivers by points: if/else 29 (38 pts), boolean chains 11 (nesting depth added 9). 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":"web/static/js/vulnerability.js"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"728d2a286ee7919d759f0e6a66ea8d22c3e33c7d6c6e2371341fcee460e94507"}},{"ruleId":"D2","level":"warning","message":{"text":"restoreWorkflowHitlInlineForConversation (cognitive 49): restoreWorkflowHitlInlineForConversation has cognitive complexity 49 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 11, error handling 4 (7 pts), ternaries 2 (5 pts), loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5218}}}],"partialFingerprints":{"codehealthFindingId/v1":"5199d980edb3c48b85d96687ea0c6e44b5bff20941bdd9504da46479243ea9e7"}},{"ruleId":"D2","level":"warning","message":{"text":"database.normalizeAsset (cognitive 48): database.normalizeAsset has cognitive complexity 48 (threshold 15). Drivers by points: if/else 20 (42 pts), boolean chains 5, loops 1 (nesting depth added 22). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"62936844a7b74e4e62bcac1f914a8da0efec9d3afa49659df3fad966e8332126"}},{"ruleId":"D2","level":"warning","message":{"text":"hitl.openHitlLogModal (cognitive 48): hitl.openHitlLogModal has cognitive complexity 48 (threshold 15). Drivers by points: if/else 21 (27 pts), boolean chains 16, ternaries 2 (5 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":"web/static/js/hitl.js"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f55ef834562da0d9cf9641d67eea576e49850aa9a125d46290ca6bb8f33a37"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatUploadsHandler.collectFiles (cognitive 47): ChatUploadsHandler.collectFiles has cognitive complexity 47 (threshold 15). Drivers by points: if/else 25 (34 pts), loops 3 (7 pts), boolean chains 6 (nesting depth added 13). Of this number, 31 points are the body\u0027s own statements and 16 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":"internal/handler/chat_uploads.go"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"a12c2dae3a68b94afe3ee92865094127dcef252d167ce0eeb8032ab3a375aa3e"}},{"ruleId":"D2","level":"warning","message":{"text":"addMessage (cognitive 47): addMessage has cognitive complexity 47 (threshold 15). Drivers by points: if/else 24 (29 pts), boolean chains 9, ternaries 3 (5 pts), error handling 2 (4 pts) (nesting depth added 9). Of this number, 46 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3558}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a206c72c66b8877e7258c28f948cf5b30d5ce41a38bfdb7d7746fedcafd839"}},{"ruleId":"D2","level":"warning","message":{"text":"deleteKnowledgeItem (cognitive 47): deleteKnowledgeItem has cognitive complexity 47 (threshold 15). Drivers by points: if/else 15 (36 pts), boolean chains 6, error handling 2 (3 pts), ternaries 2 (nesting depth added 22). Of this number, 27 points are the body\u0027s own statements and 20 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":"web/static/js/knowledge.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f790b7dd923fcdc5cb16e25bc658c0d46f1356c2838826923ea980607faeab3"}},{"ruleId":"D2","level":"warning","message":{"text":"loadToolsList (cognitive 47): loadToolsList has cognitive complexity 47 (threshold 15). Drivers by points: if/else 18 (24 pts), ternaries 4 (12 pts), boolean chains 9, error handling 1, other 1 (nesting depth added 14). Of this number, 44 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":"web/static/js/settings.js"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe5076a49a2060e7c0f8c89631465402fb80e19b21196cdfbcbdc79db6527f81"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTaskManager.ListQueuesForAccess (cognitive 46): BatchTaskManager.ListQueuesForAccess has cognitive complexity 46 (threshold 15). Drivers by points: if/else 15 (38 pts), loops 3 (6 pts), boolean chains 2 (nesting depth added 26). 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":"internal/handler/batch_task_manager.go"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f11bdfff3418936ebfb6dde58dc3f7d4674f373e08a79a29303bc29aee87f3e"}},{"ruleId":"D2","level":"warning","message":{"text":"update.Apply (cognitive 46): update.Apply has cognitive complexity 46 (threshold 15). Drivers by points: if/else 34 (41 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3a27cd621b9b3b788a2caeeb513a9ae72a2c5ffa08b65ed457c0177bff659e"}},{"ruleId":"D2","level":"warning","message":{"text":"updateIndexProgress (cognitive 46): updateIndexProgress has cognitive complexity 46 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 13, ternaries 3 (6 pts), error handling 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"910d314c051d28ccf6a462b30fafa699944bcf86ceb1dbbd9b5a18f8fc5370dc"}},{"ruleId":"D2","level":"warning","message":{"text":"renderToolsList (cognitive 46): renderToolsList has cognitive complexity 46 (threshold 15). Drivers by points: ternaries 18 (25 pts), if/else 10 (12 pts), boolean chains 9 (nesting depth added 9). Most of this is not in the body itself: 9 of the 46 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1420, 1471). 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":"web/static/js/settings.js"},"region":{"startLine":1389}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac94e1caa5c99bcbae673f5d7ed0e77e28a98e01300a8d4d5cb60cced734016"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.EnqueueTask (cognitive 45): Manager.EnqueueTask has cognitive complexity 45 (threshold 15). Drivers by points: if/else 17 (36 pts), boolean chains 5, loops 1 (4 pts) (nesting depth added 22). Of this number, 42 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":"internal/c2/manager.go"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dd2bc91210c0a2515905c091fff09de8818a4e4cb35800710fe3bddf9f3a6d4"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.ProcessMessageForRobot (cognitive 45): AgentHandler.ProcessMessageForRobot has cognitive complexity 45 (threshold 15). Drivers by points: if/else 24 (34 pts), boolean chains 7, loops 1 (3 pts), match/switch 1 (nesting depth added 12). Of this number, 43 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"57002560331c89f403d4ac2b572ac536333689622f7d209dd6cc0cd0305c3849"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeHandler.GetItems (cognitive 45): KnowledgeHandler.GetItems has cognitive complexity 45 (threshold 15). Drivers by points: if/else 18 (32 pts), loops 4 (9 pts), boolean chains 4 (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":"internal/handler/knowledge.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ac2495729cf29437a9bac94ccfae4570167c54b807521c1ca94702b3bc1ef3"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRetrievalLogs (cognitive 45): renderRetrievalLogs has cognitive complexity 45 (threshold 15). Drivers by points: if/else 12 (27 pts), ternaries 13, error handling 1 (3 pts), boolean chains 2 (nesting depth added 17). Most of this is not in the body itself: 2 of the 45 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1378, 1386, 1403, \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":"web/static/js/knowledge.js"},"region":{"startLine":1362}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d2ce67b62502f835649573ac2528a074277154fbd3ff22b9200c69a69d633d"}},{"ruleId":"D2","level":"warning","message":{"text":"app.initializeKnowledge (cognitive 44): app.initializeKnowledge has cognitive complexity 44 (threshold 15). Drivers by points: if/else 22 (40 pts), loops 1 (3 pts), boolean chains 1 (nesting depth added 20). Of this number, 16 points are the body\u0027s own statements and 28 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":"internal/app/app.go"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f756f4fa55b87c0a11a9cfcc374670ac1c96d1dfc0151b3924b7e5a272e61c"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.ApplyWorkflowPackageImport (cognitive 44): DB.ApplyWorkflowPackageImport has cognitive complexity 44 (threshold 15). Drivers by points: if/else 30 (39 pts), boolean chains 4, match/switch 1 (nesting depth added 9). 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":"internal/database/workflow_package.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4fa1f4d2126c3df8ad364e5cef609e43ebeebb42c35fb4e5f9b1fa2790885a3"}},{"ruleId":"D2","level":"warning","message":{"text":"update.buildAndSwap (cognitive 44): update.buildAndSwap has cognitive complexity 44 (threshold 15). Drivers by points: if/else 22 (36 pts), boolean chains 8 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"e891359ba46fba98f565ad4eb8ee7449a45aa6c73199b3cc37afccb1465b6b2f"}},{"ruleId":"D2","level":"warning","message":{"text":"1.onEvent (cognitive 44): 1.onEvent has cognitive complexity 44 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 11, ternaries 1 (3 pts), 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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/BurpExtender.java"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"52320ff5b801e3bbc7a0079fa0c228d86c24f85f5cc6167187e79a10617ea845"}},{"ruleId":"D2","level":"warning","message":{"text":"terminal.removeTerminalTab (cognitive 44): terminal.removeTerminalTab has cognitive complexity 44 (threshold 15). Drivers by points: if/else 17 (28 pts), loops 5 (8 pts), boolean chains 5, ternaries 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad8feab865f4221eb4c20e2e8413e0e7c07c1237c34520746be8af5f2aab169"}},{"ruleId":"D2","level":"warning","message":{"text":"token-usage.renderTokenUsageAnalysis (cognitive 44): token-usage.renderTokenUsageAnalysis has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 14 (18 pts), boolean chains 12, if/else 9, loops 5 (nesting depth added 4). Of this number, 17 points are the body\u0027s own statements and 27 belong to 9 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":"web/static/js/token-usage.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"7468284326b36fe3302e6ad2f2c1000f575fc35b5621352824276f513a226530"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshChatPanelI18n (cognitive 44): refreshChatPanelI18n has cognitive complexity 44 (threshold 15). Drivers by points: if/else 13 (24 pts), ternaries 5 (8 pts), boolean chains 7, error handling 2 (5 pts) (nesting depth added 17). Of this number, 21 points are the body\u0027s own statements and 23 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":"web/static/js/chat.js"},"region":{"startLine":11158}}}],"partialFingerprints":{"codehealthFindingId/v1":"e664329d34ad1f54ab04dda20a40afe5b3d3790fdc74f040b1e52d6bbccd87dc"}},{"ruleId":"D2","level":"warning","message":{"text":"workflowAiBuildDraft (cognitive 44): workflowAiBuildDraft has cognitive complexity 44 (threshold 15). Drivers by points: ternaries 16 (27 pts), if/else 8 (12 pts), boolean chains 5 (nesting depth added 15). Of this number, 39 points are the body\u0027s own statements and 5 belong to 6 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":"web/static/js/workflows.js"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"40fa240053a82c8b1aa9d4cff5f82fa8d303379c3b1a6b1fc1700d8753ca697e"}},{"ruleId":"D2","level":"warning","message":{"text":"mergeToolResultIntoCallItem (cognitive 43): mergeToolResultIntoCallItem has cognitive complexity 43 (threshold 15). Drivers by points: if/else 13 (19 pts), ternaries 12 (15 pts), boolean chains 9 (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":"web/static/js/monitor.js"},"region":{"startLine":6197}}}],"partialFingerprints":{"codehealthFindingId/v1":"f89ef7ac8bc88d0599142889059afb49b1851e1d3cdfa4b50442b8b4d0764d7d"}},{"ruleId":"D2","level":"warning","message":{"text":"buildMcpTimelineSvg (cognitive 43): buildMcpTimelineSvg has cognitive complexity 43 (threshold 15). Drivers by points: ternaries 20 (21 pts), boolean chains 15, if/else 6 (7 pts) (nesting depth added 2). Most of this is not in the body itself: 11 of the 43 points are its own statements and the rest belongs to 13 function literals inside it that branch (lines 7890, 7879, 7868, \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":"web/static/js/monitor.js"},"region":{"startLine":7812}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d5f849f469c7679019b512d86c37d66dbf0e48089a409a5e880892adc9db27"}},{"ruleId":"D2","level":"warning","message":{"text":"saveWebshellConnection (cognitive 43): saveWebshellConnection has cognitive complexity 43 (threshold 15). Drivers by points: boolean chains 21, if/else 14 (15 pts), ternaries 5 (6 pts), error handling 1 (nesting depth added 2). Of this number, 36 points are the body\u0027s own statements and 7 belong to 5 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":"web/static/js/webshell.js"},"region":{"startLine":5296}}}],"partialFingerprints":{"codehealthFindingId/v1":"abdda702412b78f4ce156286a5850726b1261984c7c2a90d4225236dd44a827a"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.updateExternalMCPConfig (cognitive 42): handler.updateExternalMCPConfig has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (28 pts), loops 4 (10 pts), boolean chains 4 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/external_mcp.go"},"region":{"startLine":408}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8d75cd9b5c8c2ad2c7bf1b999d632914968455cac5e88611a2faefa439e74e"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.validateNodeConfigs (cognitive 42): workflow.validateNodeConfigs has cognitive complexity 42 (threshold 15). Drivers by points: if/else 13 (38 pts), match/switch 1 (2 pts), boolean chains 1, loops 1 (nesting depth added 26). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/validation.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"7192555e2d0db735e0343755e7ed0cee5ca4dd608c801b251470f531fa50bfe9"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.assetImportRecord (cognitive 42): assets.assetImportRecord has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 26, if/else 12 (13 pts), ternaries 2, error handling 1 (nesting depth added 1). Of this number, 40 points are the body\u0027s own statements and 2 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":"web/static/js/assets.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"d173f6b62639a2ef6786a0f17cbaea2e901ae7a3b294c863f5d6a8611ea52f60"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderMcpStatsToolsPanel (cognitive 42): monitor.renderMcpStatsToolsPanel has cognitive complexity 42 (threshold 15). Drivers by points: boolean chains 22, ternaries 16 (19 pts), if/else 1 (nesting depth added 3). Most of this is not in the body itself: 6 of the 42 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 8848, 8831, 8824, \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":"web/static/js/monitor.js"},"region":{"startLine":8822}}}],"partialFingerprints":{"codehealthFindingId/v1":"c481a83bfa3695293c5b40f16173ae12e78301a1ab04a75e0f068bca9a028a4a"}},{"ruleId":"D2","level":"warning","message":{"text":"submitLogin (cognitive 42): submitLogin has cognitive complexity 42 (threshold 15). Drivers by points: if/else 14 (20 pts), ternaries 5 (13 pts), boolean chains 7, error handling 2 (nesting depth added 14). Of this number, 41 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/auth.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f2a397ae23708168b2b0a4cb52a63d684829487de1d7ec122383085773d6c0"}},{"ruleId":"D2","level":"warning","message":{"text":"updateMentionCandidates (cognitive 42): updateMentionCandidates has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 8 (17 pts), if/else 12 (16 pts), boolean chains 9 (nesting depth added 13). Most of this is not in the body itself: 8 of the 42 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 3084, 3069, 3059, \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":"web/static/js/chat.js"},"region":{"startLine":3043}}}],"partialFingerprints":{"codehealthFindingId/v1":"9edec2da194db29f08c14a17f37073bd932a1ab060faff6964d25345de4333ef"}},{"ruleId":"D2","level":"warning","message":{"text":"renderVulnerabilityBrowser (cognitive 42): renderVulnerabilityBrowser has cognitive complexity 42 (threshold 15). Drivers by points: ternaries 11 (19 pts), if/else 9 (12 pts), boolean chains 9, loops 1, other 1 (nesting depth added 11). Of this number, 35 points are the body\u0027s own statements and 7 belong to 8 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba14f99ebfa8e01158d9603bddb68abd9d31452f147a61ecc0aa0b3476c6351c"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.reconcileSchema (cognitive 41): DB.reconcileSchema has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (34 pts), loops 5 (7 pts) (nesting depth added 19). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/schema_reconcile.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c84186a4817a22d74f2a35f1499f2c2cb32bcf57397e061dae34788df980c7e"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatUploadsHandler.Upload (cognitive 41): ChatUploadsHandler.Upload has cognitive complexity 41 (threshold 15). Drivers by points: if/else 25 (39 pts), boolean chains 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa88b43507656948cc4b1332c2e423224fe9c6b7ebd71189494d9ff8e1f77ad"}},{"ruleId":"D2","level":"warning","message":{"text":"WebShellHandler.buildFileCommand (cognitive 41): WebShellHandler.buildFileCommand has cognitive complexity 41 (threshold 15). Drivers by points: if/else 19 (39 pts), boolean chains 1, match/switch 1 (nesting depth added 20). 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":"internal/handler/webshell.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a8a3efa89f1003cf1bf305c1c87bd8a2a1a5505c702f4e904a7e872a0ef7ab"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.handleCallTool (cognitive 41): Server.handleCallTool has cognitive complexity 41 (threshold 15). Drivers by points: if/else 27 (38 pts), boolean chains 3 (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":"internal/mcp/server.go"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b666ea4ae5af693c0df7a75ce5c609ec53c1c82e6fa14939f4ed6ac0a6df149"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.ChatCompletionStream (cognitive 41): Client.ChatCompletionStream has cognitive complexity 41 (threshold 15). Drivers by points: if/else 23 (39 pts), boolean chains 1, loops 1 (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/openai.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"74cc096e827f5a145b1dfe32a8822c8ab622e866d9a03b5bf1dc7d2f287b9945"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.renderSeverityInsights (cognitive 41): dashboard.renderSeverityInsights has cognitive complexity 41 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 13, ternaries 7 (11 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, 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":"web/static/js/dashboard.js"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eb029916f2d1c77d2862bc406687ec03e148f2024eb0ae8458cf2d706e8471a"}},{"ruleId":"D2","level":"warning","message":{"text":"renderDashboardAccessOverview (cognitive 41): renderDashboardAccessOverview has cognitive complexity 41 (threshold 15). Drivers by points: if/else 17 (22 pts), boolean chains 13, ternaries 3 (4 pts), error handling 1 (2 pts) (nesting depth added 7). Of this number, 34 points are the body\u0027s own statements and 7 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":"web/static/js/dashboard.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f643dbcb318206bdf915d4a17d50701ef3c39ee1edc5774f34cd2ccd1b5bc6a6"}},{"ruleId":"D2","level":"warning","message":{"text":"renderDashboardAlertBanner (cognitive 41): renderDashboardAlertBanner has cognitive complexity 41 (threshold 15). Drivers by points: if/else 18 (21 pts), error handling 9 (15 pts), boolean chains 5 (nesting depth added 9). Of this number, 33 points are the body\u0027s own statements and 8 belong to 4 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":"web/static/js/dashboard.js"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"74118fcaf17f2dc4d59cddc52a2e1bd5dc294e1c04320436762798b695a73ebb"}},{"ruleId":"D2","level":"warning","message":{"text":"toggleToolDetail (cognitive 41): toggleToolDetail has cognitive complexity 41 (threshold 15). Drivers by points: ternaries 7 (17 pts), if/else 8 (13 pts), boolean chains 9, error handling 1 (2 pts) (nesting depth added 16). Of this number, 21 points are the body\u0027s own statements and 20 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":"web/static/js/settings.js"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab904fef1d9a07125e3c03946b7c1f6239ac75c3447e73e6ddb7c0788d5679dd"}},{"ruleId":"D2","level":"warning","message":{"text":"database.vulnerabilityTargetsJSON (cognitive 40): database.vulnerabilityTargetsJSON has cognitive complexity 40 (threshold 15). Drivers by points: if/else 14 (28 pts), boolean chains 9, loops 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability_workspace.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"1513e009ff05aa228b288c874e8c192d923d4cf826e478835788a26609a2f172"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.GetItemsWithOptions (cognitive 40): Manager.GetItemsWithOptions has cognitive complexity 40 (threshold 15). Drivers by points: if/else 15 (30 pts), loops 3 (7 pts), boolean chains 3 (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":"internal/knowledge/manager.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"83d8f5e7b76c435a405f9f93522f0e8e141348fb38c81eb705a8effbf3712eb6"}},{"ruleId":"D2","level":"warning","message":{"text":"api-docs.renderRequestBody (cognitive 40): api-docs.renderRequestBody has cognitive complexity 40 (threshold 15). Drivers by points: if/else 18 (26 pts), boolean chains 8, ternaries 4 (6 pts) (nesting depth added 10). Most of this is not in the body itself: 15 of the 40 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 374, 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":"web/static/js/api-docs.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ddc6de2a6093f6e256feadb29aea0981fe245e03fa7655fd6c8a9daa861693"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.ensureProjectSidebarStructure (cognitive 40): chat.ensureProjectSidebarStructure has cognitive complexity 40 (threshold 15). Drivers by points: if/else 21 (34 pts), boolean chains 6 (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":"web/static/js/chat.js"},"region":{"startLine":6089}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f6284ee476e95a635d76af9e2aad19f850b7872a8b9fe8a2b51e025ba99ae37"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchChatSystemModelsForChannel (cognitive 40): fetchChatSystemModelsForChannel has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 23, if/else 10 (13 pts), error handling 2, ternaries 2 (nesting depth added 3). Of this number, 36 points are the body\u0027s own statements and 4 belong to 5 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":"web/static/js/chat.js"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"42eaba7526d9f6c9b1dc1fa2a8d76b7184a78c8a98e4d9f586e1562a916153c4"}},{"ruleId":"D2","level":"warning","message":{"text":"formatConversationAsMarkdown (cognitive 40): formatConversationAsMarkdown has cognitive complexity 40 (threshold 15). Drivers by points: boolean chains 18, if/else 10 (13 pts), ternaries 7 (9 pts) (nesting depth added 5). Most of this is not in the body itself: 12 of the 40 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 10702, 10717). 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":"web/static/js/chat.js"},"region":{"startLine":10683}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd14f2b2d7350763c744cf248cb73b23eb2cbb2bf5a44e7bdbcb0232fde7e100"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.formatAgentTraceFromChatMessages (cognitive 39): Builder.formatAgentTraceFromChatMessages has cognitive complexity 39 (threshold 15). Drivers by points: if/else 11 (27 pts), loops 4 (7 pts), match/switch 1 (3 pts), boolean chains 2 (nesting depth added 21). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/builder.go"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac22a92ae8d20b1ec624e6527e7de6a10bdfd66114365ba90fd8ffa4a9dbb5f"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.migrateVulnerabilitiesConversationFK (cognitive 39): DB.migrateVulnerabilitiesConversationFK has cognitive complexity 39 (threshold 15). Drivers by points: if/else 27 (34 pts), loops 4, boolean chains 1 (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":"internal/database/schema_legacy.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bf5e1813e84505efe55bff24c8f30d539fbd5023e04123052053d172f97b3bc"}},{"ruleId":"D2","level":"warning","message":{"text":"robot.handleDingMessage (cognitive 39): robot.handleDingMessage has cognitive complexity 39 (threshold 15). Drivers by points: if/else 19 (32 pts), loops 1 (4 pts), boolean chains 3 (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":"internal/robot/ding.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"786c5ad56d25939fafa689fee0fd39783a5615025ff9408a4ada96c119327e35"}},{"ruleId":"D2","level":"warning","message":{"text":"update.checkRecoveryValue (cognitive 39): update.checkRecoveryValue has cognitive complexity 39 (threshold 15). Drivers by points: if/else 13 (30 pts), loops 3 (6 pts), boolean chains 2, match/switch 1 (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/recovery_evidence.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cb12096134a0386b24b3e614d6863f7ac2361dc2e811c65607719b864fbb57d"}},{"ruleId":"D2","level":"warning","message":{"text":"formatTaskCommand (cognitive 39): formatTaskCommand has cognitive complexity 39 (threshold 15). Drivers by points: ternaries 8 (17 pts), if/else 8 (14 pts), boolean chains 5, error handling 1 (2 pts), match/switch 1 (nesting depth added 16). Of this number, 38 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":"web/static/js/c2.js"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f5c5e8d89644ccf8b940c61d9d77c551ae0035c61b54be4d015b56ab0db767b"}},{"ruleId":"D2","level":"warning","message":{"text":"bindChatScrollListeners (cognitive 39): bindChatScrollListeners has cognitive complexity 39 (threshold 15). Drivers by points: if/else 23 (28 pts), boolean chains 8, ternaries 1 (2 pts), other 1 (nesting depth added 6). Most of this is not in the body itself: 6 of the 39 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 710, 721, 691, \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":"web/static/js/chat-scroll.js"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc2452234cf02a608b5cd0b832d05eb7ca88f61df25045662ad765a48947ec9f"}},{"ruleId":"D2","level":"warning","message":{"text":"bindInlineHitlApproval::submit (cognitive 39): bindInlineHitlApproval::submit has cognitive complexity 39 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 13, ternaries 5 (8 pts), error handling 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":"web/static/js/monitor.js"},"region":{"startLine":4751}}}],"partialFingerprints":{"codehealthFindingId/v1":"44272002936cddafa2bf0dddbcd8c98d775b6406b17e84f84c0685c260037f5b"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatUploadsHandler.Export (cognitive 38): ChatUploadsHandler.Export has cognitive complexity 38 (threshold 15). Drivers by points: if/else 19 (32 pts), boolean chains 5, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":866}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccacb13511ba5ffbd8ec9cb74cd79a350d002a1bb4f18ec2604c76256e86230c"}},{"ruleId":"D2","level":"warning","message":{"text":"report.Render (cognitive 38): report.Render has cognitive complexity 38 (threshold 15). Drivers by points: if/else 20 (26 pts), loops 8 (12 pts) (nesting depth added 10). Of this number, 36 points are the body\u0027s own statements and 2 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":"internal/report/docx.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cffb5b2d4cf103aab4329373d00644f4271391d59619f25f119a83a7cd8fdae"}},{"ruleId":"D2","level":"warning","message":{"text":"info-collect.refreshInfoCollectProviderUI (cognitive 38): info-collect.refreshInfoCollectProviderUI has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 13, ternaries 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"web/static/js/info-collect.js"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a0a8b9353ede4778dccbb20eb35a51e488763f07c5f8ca86c182967ada1bb86"}},{"ruleId":"D2","level":"warning","message":{"text":"skills.saveSkill (cognitive 38): skills.saveSkill has cognitive complexity 38 (threshold 15). Drivers by points: if/else 18 (24 pts), boolean chains 12, error handling 1, ternaries 1 (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"web/static/js/skills.js"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8ae56fb1014a918742a52645d9b36968477471067cb57ace4287161f163587"}},{"ruleId":"D2","level":"warning","message":{"text":"followAgentRunAfterHitlDecision (cognitive 38): followAgentRunAfterHitlDecision has cognitive complexity 38 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 8, error handling 3 (5 pts), loops 1, ternaries 1 (nesting depth added 14). Of this number, 32 points are the body\u0027s own statements and 6 belong to 8 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"d297c0a79631e9f7489b21bef89794621cbf7d5b54b153b19477c39859c98433"}},{"ruleId":"D2","level":"warning","message":{"text":"writeAIChannelToMainForm (cognitive 38): writeAIChannelToMainForm has cognitive complexity 38 (threshold 15). Drivers by points: boolean chains 17, if/else 13, ternaries 4 (8 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":"web/static/js/settings.js"},"region":{"startLine":2679}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8c28637bf08b12b107b7679d9cd61b98b4276ac1c45af0fcbed7d990dff854"}},{"ruleId":"D2","level":"warning","message":{"text":"app.authorizeC2Action (cognitive 37): app.authorizeC2Action has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (29 pts), boolean chains 6, loops 1 (2 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/mcp_authorization.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"456234525c2d7962b37d1db10e303c9cf532920b731830eb9fa667af3b50060a"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatUploadsHandler.ResolvePath (cognitive 37): ChatUploadsHandler.ResolvePath has cognitive complexity 37 (threshold 15). Drivers by points: if/else 17 (33 pts), boolean chains 3, match/switch 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":"internal/handler/chat_uploads.go"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"003cd67662acb854d2f0276a80ab8d89e460937cdf89a9c748df028b201b54c2"}},{"ruleId":"D2","level":"warning","message":{"text":"MonitorHandler.loadExecutionsWithPagination (cognitive 37): MonitorHandler.loadExecutionsWithPagination has cognitive complexity 37 (threshold 15). Drivers by points: if/else 12 (25 pts), boolean chains 6, loops 2 (6 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":"internal/handler/monitor.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"7849395f569b07834cd9d2e6d96f86629078a1953ae4ad9640e68bab9d7a4868"}},{"ruleId":"D2","level":"warning","message":{"text":"reasoning.ProviderExtraFields (cognitive 37): reasoning.ProviderExtraFields has cognitive complexity 37 (threshold 15). Drivers by points: if/else 15 (32 pts), boolean chains 4, 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":"internal/reasoning/provider.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c33e3290a1a112e13055c1e1502cc7941e65da68b39a6cae064b7341b8a098"}},{"ruleId":"D2","level":"warning","message":{"text":"update.Adopt (cognitive 37): update.Adopt has cognitive complexity 37 (threshold 15). Drivers by points: if/else 27 (35 pts), boolean chains 1, loops 1 (nesting depth added 8). Of this number, 36 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body: 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":"internal/update/adopt.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"12857c4982b4715d6e61650afb984848a939d512b4b1a63510c872daadbf9705"}},{"ruleId":"D2","level":"warning","message":{"text":"workflowpackage.InspectArchive (cognitive 37): workflowpackage.InspectArchive has cognitive complexity 37 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 11, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/package/inspector.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"844bfaebd7b7776e8cc7770d68e5f01e3aeb5052453b969bf8a938ea458026ed"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRbacRoles (cognitive 37): renderRbacRoles has cognitive complexity 37 (threshold 15). Drivers by points: ternaries 10 (19 pts), if/else 11 (13 pts), boolean chains 5 (nesting depth added 11). Of this number, 29 points are the body\u0027s own statements and 8 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":"web/static/js/rbac.js"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"27a7e41b755138ff790b5ca67cc67e8b4219c9250dd35d97242be941cb2f5f19"}},{"ruleId":"D2","level":"warning","message":{"text":"main.main (cognitive 36): main.main has cognitive complexity 36 (threshold 15). Drivers by points: if/else 26 (31 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/server/main.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"650b65cf841102568539e9eed4673166f46afa16e7e974ee91cf75c78e4d1f70"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.UpsertAssets (cognitive 36): DB.UpsertAssets has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (31 pts), boolean chains 4, loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac7bce955295fc7af76ddbba86bbd3fbcfcc3a85eee6665f43dafa0b41352b6"}},{"ruleId":"D2","level":"warning","message":{"text":"RoleHandler.UpdateRole (cognitive 36): RoleHandler.UpdateRole has cognitive complexity 36 (threshold 15). Drivers by points: if/else 20 (34 pts), loops 2 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"6808c842fcf02d657dde4d206925ac7165709f6e3c1f308b50fb7687b0cb8104"}},{"ruleId":"D2","level":"warning","message":{"text":"Retriever.vectorSearch (cognitive 36): Retriever.vectorSearch has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (24 pts), boolean chains 6, loops 3, match/switch 1 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/retriever.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"3df428a08101c3f04b3c7026cb1d7f69b674af5475fb32ca54e802cd6f1a8231"}},{"ruleId":"D2","level":"warning","message":{"text":"SQLiteIndexer.Store (cognitive 36): SQLiteIndexer.Store has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (28 pts), loops 6 (7 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/sqlite_indexer.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e117ae334bfe81a3967077c592051609c7dd61ffc3666128f27787e9ca6f5ca"}},{"ruleId":"D2","level":"warning","message":{"text":"robot.runTelegramPoll (cognitive 36): robot.runTelegramPoll has cognitive complexity 36 (threshold 15). Drivers by points: if/else 11 (29 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 20). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/telegram.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a14ec75b19a452a8f62c1a12ecba511bda1cd6022f5bf5e205df14087c1d553"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleJson.extractObjectArray (cognitive 36): SimpleJson.extractObjectArray has cognitive complexity 36 (threshold 15). Drivers by points: if/else 15 (29 pts), loops 3 (5 pts), boolean chains 2 (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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SimpleJson.java"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5d673eb7dcead019c593d78400d3083c84e3cad7f68224eae592ccee3f85030"}},{"ruleId":"D2","level":"warning","message":{"text":"i18n.applyTranslations (cognitive 36): i18n.applyTranslations has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (19 pts), boolean chains 13, error handling 3, ternaries 1 (nesting depth added 6). Of this number, 17 points are the body\u0027s own statements and 19 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":"web/static/js/i18n.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"924143d09c49844e88c14eaf41f2775a9151521a606e16012cd868e88fa9c405"}},{"ruleId":"D2","level":"warning","message":{"text":"tasks.showBatchImportModal (cognitive 36): tasks.showBatchImportModal has cognitive complexity 36 (threshold 15). Drivers by points: if/else 13 (28 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 17). Of this number, 24 points are the body\u0027s own statements and 12 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":"web/static/js/tasks.js"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"04071efc99b96b6383783823a71edde0eec4b07dbfb6ce9516360fd6bdd917a5"}},{"ruleId":"D2","level":"warning","message":{"text":"testOpenAIConnection (cognitive 36): testOpenAIConnection has cognitive complexity 36 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 11, ternaries 5 (10 pts), error handling 1 (nesting depth added 9). Of this number, 34 points are the body\u0027s own statements and 2 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":"web/static/js/settings.js"},"region":{"startLine":4072}}}],"partialFingerprints":{"codehealthFindingId/v1":"d604cde529c4154cf96a31485cc9aefa43605423343f05849ff2d29ede3fd878"}},{"ruleId":"D2","level":"warning","message":{"text":"renderWebshellList (cognitive 36): renderWebshellList has cognitive complexity 36 (threshold 15). Drivers by points: boolean chains 22, if/else 9, ternaries 4 (5 pts) (nesting depth added 1). Most of this is not in the body itself: 7 of the 36 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 1168, 1155, 1211, \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":"web/static/js/webshell.js"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"df5515a730f639a04be0a0f82e25b6f3af66d69cd00fba1c075179f9b23e25e9"}},{"ruleId":"D2","level":"warning","message":{"text":"loadWebshellAiHistory (cognitive 36): loadWebshellAiHistory has cognitive complexity 36 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 8, ternaries 4 (6 pts), error handling 2 (3 pts) (nesting depth added 8). Most of this is not in the body itself: 4 of the 36 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 3341, 3330, 3335, \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":"web/static/js/webshell.js"},"region":{"startLine":3325}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23294eb6b0cdd8823aca85c62e2e9007fd297a181b8dee81be24faa137a660a"}},{"ruleId":"D2","level":"warning","message":{"text":"renderWorkflowPackageResolution (cognitive 36): renderWorkflowPackageResolution has cognitive complexity 36 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 4 (7 pts), boolean chains 6 (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":"web/static/js/workflows.js"},"region":{"startLine":2690}}}],"partialFingerprints":{"codehealthFindingId/v1":"085e50899df77c7dff791aa191ac1affaf04b873bcb84e238aee849fd4174e0b"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.UpdateAssetsBulk (cognitive 35): DB.UpdateAssetsBulk has cognitive complexity 35 (threshold 15). Drivers by points: if/else 18 (28 pts), loops 4 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc19c1710ba7e31ff8d834a0da35ac37f527221c960d73cad5274bf301350f5e"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.ListConversationPlanTasksSince (cognitive 35): DB.ListConversationPlanTasksSince has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (31 pts), boolean chains 2, loops 2 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/plantask.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"39defc15c73e030bdf7c1e56dc002d32238256c3ad5f941a012e85122135d15f"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.BootstrapRBAC (cognitive 35): DB.BootstrapRBAC has cognitive complexity 35 (threshold 15). Drivers by points: if/else 19 (31 pts), loops 4 (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":"internal/database/rbac.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9063fb35adca178470b0f694f3526a355df510a0e61fd5afadc726ae100c2584"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.RunRoleBoundWorkflow (cognitive 35): workflow.RunRoleBoundWorkflow has cognitive complexity 35 (threshold 15). Drivers by points: if/else 21 (33 pts), loops 1, match/switch 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/runner.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"907e9203a6b51efaadf8fc904a73bba09c5f36ec9ec36b4093c94b6d76779920"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderMonitorStats (cognitive 35): monitor.renderMonitorStats has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 13, ternaries 11 (12 pts), if/else 8 (10 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":8976}}}],"partialFingerprints":{"codehealthFindingId/v1":"40badce27d940fe5cba6be408ca0a9d672af881d194166f2ecc82f9f8207a240"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.readTypedConfig (cognitive 35): workflows.readTypedConfig has cognitive complexity 35 (threshold 15). Drivers by points: boolean chains 30, if/else 3 (4 pts), match/switch 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae13b341e6444e5f488a51c07266b6131310b0035fa9a1485ff9c4508a5fe5a0"}},{"ruleId":"D2","level":"warning","message":{"text":"showConversationContextMenu (cognitive 35): showConversationContextMenu has cognitive complexity 35 (threshold 15). Drivers by points: if/else 17 (23 pts), ternaries 3 (10 pts), boolean chains 2 (nesting depth added 13). Of this number, 32 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10343}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b563d4fe929b3ec927613ad9ff36d479016e9bcd1273f8b1a0146aa83c678eb"}},{"ruleId":"D2","level":"warning","message":{"text":"showProjectFactGraphNode (cognitive 35): showProjectFactGraphNode has cognitive complexity 35 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 12, ternaries 5 (8 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8dbfe2832d26169a6723cf3b215e07ed1d484e491142499c89820746843468a"}},{"ruleId":"D2","level":"warning","message":{"text":"loadVulnerabilities (cognitive 35): loadVulnerabilities has cognitive complexity 35 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 9, ternaries 5 (6 pts), error handling 1 (nesting depth added 4). Of this number, 33 points are the body\u0027s own statements and 2 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":"web/static/js/vulnerability.js"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2058270ea929a037cee282dfec9ec017405470ce2e4cb503aff174c66da92bd"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.runRoleWorkflowStreamIfBound (cognitive 34): AgentHandler.runRoleWorkflowStreamIfBound has cognitive complexity 34 (threshold 15). Drivers by points: if/else 19 (31 pts), boolean chains 2, loops 1 (nesting depth added 12). Of this number, 33 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":"internal/handler/workflow_integration.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"9dc3b08c75abeaa4a44da0e9e82cbdd75614d216e52148d1984325e4ec3d8634"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectHandler.UpdateFact (cognitive 34): ProjectHandler.UpdateFact has cognitive complexity 34 (threshold 15). Drivers by points: if/else 21 (28 pts), boolean chains 6 (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":"internal/handler/project.go"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"d411e267e356eabd5f5ead25b519b5ca58e53803a61affc932a4b6470e44f50e"}},{"ruleId":"D2","level":"warning","message":{"text":"multiagent.resolveMainOrchestratorInstruction (cognitive 34): multiagent.resolveMainOrchestratorInstruction has cognitive complexity 34 (threshold 15). Drivers by points: if/else 13 (30 pts), boolean chains 3, 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":"internal/multiagent/orchestrator_instruction.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d4df8109edda81a381d3a97ce8e31bc25bda29f96952a6d08a11a5852a68ac6"}},{"ruleId":"D2","level":"warning","message":{"text":"security.streamCommandOutput (cognitive 34): security.streamCommandOutput has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (23 pts), match/switch 3 (6 pts), boolean chains 2, loops 2, jumps 1 (nesting depth added 12). Of this number, 22 points are the body\u0027s own statements and 12 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":"internal/security/executor.go"},"region":{"startLine":1127}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe470d615f8777b8435dd808893ca70d58e5481a63ea7a4266aec685fc700e2"}},{"ruleId":"D2","level":"warning","message":{"text":"api.streamTest (cognitive 34): api.streamTest has cognitive complexity 34 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 5, error handling 1 (3 pts), loops 2 (3 pts) (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"31b1f40be604a1b879aabef6cfdbabbcd2344362e8e36c0f374f212c23b9b47f"}},{"ruleId":"D2","level":"warning","message":{"text":"api-docs.formatDescription (cognitive 34): api-docs.formatDescription has cognitive complexity 34 (threshold 15). Drivers by points: if/else 14 (29 pts), boolean chains 3, loops 1, ternaries 1 (nesting depth added 15). Of this number, 33 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":"web/static/js/api-docs.js"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"265187f89bbd388d9a28c61b6ec5f4fce01fa56f66a248af3d1271b4bb942ce7"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.pollExternalMCPStatus (cognitive 34): settings.pollExternalMCPStatus has cognitive complexity 34 (threshold 15). Drivers by points: if/else 8 (20 pts), ternaries 2 (6 pts), boolean chains 5, error handling 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":5000}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dd131c928d6fa5c6f9fa7b0e39201537651123058b0989cf7b62c8941313fc0"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshHitlPending (cognitive 34): refreshHitlPending has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 13, if/else 9, ternaries 6 (8 pts), error handling 3 (4 pts) (nesting depth added 3). Of this number, 26 points are the body\u0027s own statements and 8 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":"web/static/js/hitl.js"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec4f85c30c50527f7771ca3f484a53e33d997675628c3a45637e2718988f48a"}},{"ruleId":"D2","level":"warning","message":{"text":"renderMonitorPagination (cognitive 34): renderMonitorPagination has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 17, boolean chains 14, if/else 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9265}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4fb8aa72cf2af130fc924a96e03acb901e73b1a49ac312bcf5c8b8b64f99b7"}},{"ruleId":"D2","level":"warning","message":{"text":"watchdogProbe (cognitive 34): watchdogProbe has cognitive complexity 34 (threshold 15). Drivers by points: boolean chains 19, if/else 8, ternaries 2 (4 pts), error handling 2 (3 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/update.js"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff9432cfbfa486e7a4be93be334f484932b9c129c0ebe91cf3277e8a9603180"}},{"ruleId":"D2","level":"warning","message":{"text":"renderTypedConfig (cognitive 34): renderTypedConfig has cognitive complexity 34 (threshold 15). Drivers by points: ternaries 10 (19 pts), boolean chains 7, if/else 4 (7 pts), match/switch 1 (nesting depth added 12). Of this number, 25 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":"web/static/js/workflows.js"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"d276b5d2daf76a29d87a619433ba86a056c226c208159972206031cb962c4937"}},{"ruleId":"D2","level":"warning","message":{"text":"config.Load (cognitive 33): config.Load has cognitive complexity 33 (threshold 15). Drivers by points: if/else 22 (30 pts), loops 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"723693bacaee35a260aec5925ffdd99beb99544c2a95b5c7d5505a7be7975627"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.GetAssetStats (cognitive 33): DB.GetAssetStats has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (26 pts), loops 5, 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":"internal/database/asset.go"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"830947a9bdc0dafdca25fa250692219f58d00b5c61cdc216e401a60227ab3b15"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigHandler.resolveProbeHeaders (cognitive 33): ConfigHandler.resolveProbeHeaders has cognitive complexity 33 (threshold 15). Drivers by points: if/else 12 (24 pts), loops 3 (5 pts), boolean chains 3, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config_probe_headers.go"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"710779b37d26b6d99652c424a5df5d153add70879551d85a29dc8fb64e0e9bb9"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownAgentsHandler.CreateMarkdownAgent (cognitive 33): MarkdownAgentsHandler.CreateMarkdownAgent has cognitive complexity 33 (threshold 15). Drivers by points: if/else 23 (30 pts), boolean chains 3 (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":"internal/handler/markdown_agents.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"922fb9e177074b756bb3aff9086bb3c8b09d76360efff2523cac5c04278475a0"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge.RegisterKnowledgeTool (cognitive 33): knowledge.RegisterKnowledgeTool has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 5 (8 pts), boolean chains 2 (nesting depth added 12). None of this is in the body itself: all 33 points belong to 2 function literals inside it that branch (lines 102, 35). 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":"internal/knowledge/tool.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"67af20adfaec2a70f1ba489ecb636edc91cfb87f571722b28ccab22665cc2b43"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecutionService.finishEntry (cognitive 33): ExecutionService.finishEntry has cognitive complexity 33 (threshold 15). Drivers by points: if/else 19 (25 pts), boolean chains 6, match/switch 1 (2 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":"internal/mcp/execution_service.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b6a2e28faca3504be7b4987b37dfe7e77dcfb975603d478be24d56a70bb2c1"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalMCPManager.CallTool (cognitive 33): ExternalMCPManager.CallTool has cognitive complexity 33 (threshold 15). Drivers by points: if/else 25 (29 pts), boolean chains 4 (nesting depth added 4). Most of this is not in the body itself: 9 of the 33 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 723, 789, 777, \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":"internal/mcp/external_manager.go"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36cd63e00a5cdc493c5bead90d608c99362f1d9028b55af689e6ba48807f8d0"}},{"ruleId":"D2","level":"warning","message":{"text":"worker.importHistory (cognitive 33): worker.importHistory has cognitive complexity 33 (threshold 15). Drivers by points: if/else 8 (21 pts), error handling 1 (5 pts), loops 2 (4 pts), boolean chains 3 (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":"runtime/pi/src/worker.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed1d366d36a3037ac345789aeae276bad95121b18f5661715919a8728a675b04"}},{"ruleId":"D2","level":"warning","message":{"text":"info-collect.initInfoCollectPage (cognitive 33): info-collect.initInfoCollectPage has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 11, error handling 1 (nesting depth added 7). Of this number, 24 points are the body\u0027s own statements and 9 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":"web/static/js/info-collect.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"5861eeb10e774fb5d1f3d3df526e20414e2d621459f2bbee57fc42d2e14fec3d"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderMcpStatsInsightPanel (cognitive 33): monitor.renderMcpStatsInsightPanel has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 17 (19 pts), boolean chains 11, if/else 2 (3 pts) (nesting depth added 3). Most of this is not in the body itself: 14 of the 33 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 8499, 8519, 8494). 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":"web/static/js/monitor.js"},"region":{"startLine":8487}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b77e87862503ea549f438e8b628500e0e7208eb27f72b9477836e513c7d0258"}},{"ruleId":"D2","level":"warning","message":{"text":"renderTestSection (cognitive 33): renderTestSection has cognitive complexity 33 (threshold 15). Drivers by points: ternaries 8 (18 pts), boolean chains 9, if/else 5 (6 pts) (nesting depth added 11). Most of this is not in the body itself: 12 of the 33 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 568, 533, 553, \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":"web/static/js/api-docs.js"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb6ceba4be736f00f304f2036dd03d1f096ea1d125859c27954075f90ce0be0d"}},{"ruleId":"D2","level":"warning","message":{"text":"copyCurlCommand (cognitive 33): copyCurlCommand has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 7, error handling 4 (7 pts), ternaries 2 (3 pts) (nesting depth added 7). Of this number, 20 points are the body\u0027s own statements and 13 belong to 7 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":"web/static/js/api-docs.js"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"127b7cec238fdd7bcd2effb3b44d04c59850a5c6e1eca15f34621c730ed12c39"}},{"ruleId":"D2","level":"warning","message":{"text":"initChatAgentModeFromConfig (cognitive 33): initChatAgentModeFromConfig has cognitive complexity 33 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 11, ternaries 3 (4 pts), error handling 2 (nesting depth added 4). Of this number, 25 points are the body\u0027s own statements and 8 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":"web/static/js/chat.js"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bac89e13ee83997d8234bcddc01cd850c6956effaf6b6eea7a9e6d5ef24564"}},{"ruleId":"D2","level":"warning","message":{"text":"syncHitlConfigFromServer (cognitive 33): syncHitlConfigFromServer has cognitive complexity 33 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 6 (9 pts), boolean chains 7, error handling 3 (7 pts) (nesting depth added 8). Of this number, 32 points are the body\u0027s own statements and 1 belongs 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":"web/static/js/hitl.js"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde8c1afde823c5a3fd181ab68554cdf7cd7a003b39a1ae0b07310ee7286a451"}},{"ruleId":"D2","level":"warning","message":{"text":"updateProcessDetailsPaginationButtons (cognitive 33): updateProcessDetailsPaginationButtons has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (21 pts), ternaries 4 (8 pts), boolean chains 4 (nesting depth added 11). Of this number, 26 points are the body\u0027s own statements and 7 belong to 6 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":"web/static/js/monitor.js"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"de03c7e8663f640376c1775823758a70c5180881f288b29fd62908cd2d6f711a"}},{"ruleId":"D2","level":"warning","message":{"text":"renderActiveTasks (cognitive 33): renderActiveTasks has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (17 pts), ternaries 7 (11 pts), boolean chains 5 (nesting depth added 7). Most of this is not in the body itself: 7 of the 33 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 7146, openActiveTaskConversation, (anonymous)::_t, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7091}}}],"partialFingerprints":{"codehealthFindingId/v1":"0beb837887eaea1d965e373fcdfa4a1afd333453a705b342926dd55e9c104b5b"}},{"ruleId":"D2","level":"warning","message":{"text":"openNotificationTarget (cognitive 33): openNotificationTarget has cognitive complexity 33 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 8, error handling 2 (6 pts) (nesting depth added 9). Of this number, 18 points are the body\u0027s own statements and 15 belong to 5 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/notifications.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ccbabdc6769999f8fe7cb89d62876c228d97569a256351eef6dd8e1ae404e21"}},{"ruleId":"D2","level":"warning","message":{"text":"attackchain.PromoteToProject (cognitive 32): attackchain.PromoteToProject has cognitive complexity 32 (threshold 15). Drivers by points: if/else 16 (26 pts), boolean chains 4, loops 2 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/promote_project.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7846541f189f0ada58770163598ad5b0cb0fee36bed9009cc7d6357ba95249b"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.AssignResourcesToUserAuto (cognitive 32): DB.AssignResourcesToUserAuto has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (26 pts), loops 4 (5 pts), boolean chains 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"0efc7d0e789cc25a33a3b057d1fc48e62baba5f39ebb501eb68f2ce98f4db4c8"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatUploadsHandler.Download (cognitive 32): ChatUploadsHandler.Download has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (28 pts), boolean chains 4 (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":"internal/handler/chat_uploads.go"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"37ede5d70c5b5bad5e8296929f08d77c9315dd050076ca13de47ad76475bed97"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.GetItemsSummary (cognitive 32): Manager.GetItemsSummary has cognitive complexity 32 (threshold 15). Drivers by points: if/else 11 (22 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 15). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/manager.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"d88378b4d69d6393eadbfb655c630ba9ad4280c9bbee1036b3bdd837b1150db0"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownRenderer.toHtml (cognitive 32): MarkdownRenderer.toHtml has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (28 pts), ternaries 1 (2 pts), boolean chains 1, loops 1 (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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/MarkdownRenderer.java"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"655a59d9976049db9e6da1b4b9846348355936e58fcbb23ae06654bd0523a370"}},{"ruleId":"D2","level":"warning","message":{"text":"markdown.markdownToHtml (cognitive 32): markdown.markdownToHtml has cognitive complexity 32 (threshold 15). Drivers by points: if/else 13 (27 pts), boolean chains 2, ternaries 1 (2 pts), loops 1 (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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/markdown.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c73143c69ab5d3e3cf9ea27827ca7020f722c1025c6115715abb98a4d7b123f"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.renderProcessDetails::formatProcessDetailPiRunRetryMessage (cognitive 32): chat.renderProcessDetails::formatProcessDetailPiRunRetryMessage has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 7 (13 pts), boolean chains 12, if/else 6 (7 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":"web/static/js/chat.js"},"region":{"startLine":4261}}}],"partialFingerprints":{"codehealthFindingId/v1":"9717c90715ed1621c985e3eb5b5d3c9a8870707f0c946f97077cff40a5892b07"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.showNodeDetails (cognitive 32): chat.showNodeDetails has cognitive complexity 32 (threshold 15). Drivers by points: if/else 17 (26 pts), boolean chains 6 (nesting depth added 9). Of this number, 31 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":"web/static/js/chat.js"},"region":{"startLine":7961}}}],"partialFingerprints":{"codehealthFindingId/v1":"f51370b1c0db518dfda365dfe3cb391883072ea7e2396b1e6aecbdaae3a4e1c0"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.pruneLiveTimelineIfNeeded (cognitive 32): monitor.pruneLiveTimelineIfNeeded has cognitive complexity 32 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 12, loops 1, ternaries 1 (nesting depth added 9). Of this number, 30 points are the body\u0027s own statements and 2 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":"web/static/js/monitor.js"},"region":{"startLine":6583}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c446fd5a5a4f6c18bc20a80c8b8d39b4dc8304886bebae05d1c94758303a1ac"}},{"ruleId":"D2","level":"warning","message":{"text":"syncAssistantTurnSummary (cognitive 32): syncAssistantTurnSummary has cognitive complexity 32 (threshold 15). Drivers by points: ternaries 12 (19 pts), if/else 8, boolean chains 5 (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":"web/static/js/chat.js"},"region":{"startLine":5150}}}],"partialFingerprints":{"codehealthFindingId/v1":"847a89213b6c9878993a80e4aac2ee3da4fc670a8725c55cb4dea87cecaa568a"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchModelList (cognitive 32): fetchModelList has cognitive complexity 32 (threshold 15). Drivers by points: if/else 14 (18 pts), ternaries 4 (7 pts), boolean chains 6, error handling 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3618}}}],"partialFingerprints":{"codehealthFindingId/v1":"38c987b412d78d69a2f2b107921f1455dd174b598bd4eb4514bd0d1a365395a6"}},{"ruleId":"D2","level":"warning","message":{"text":"saveToolsConfig (cognitive 32): saveToolsConfig has cognitive complexity 32 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts), ternaries 5 (9 pts), error handling 2, loops 1 (nesting depth added 6). Of this number, 23 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":"web/static/js/settings.js"},"region":{"startLine":4159}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c3d038320f3422470771b37442928e76a6de674be2cdb48c9f3c251d720c792"}},{"ruleId":"D2","level":"warning","message":{"text":"agentruntime.preparePiRuntime (cognitive 31): agentruntime.preparePiRuntime has cognitive complexity 31 (threshold 15). Drivers by points: if/else 20 (29 pts), loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentruntime/build.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c7806aae0670d7f0760ad4843bf9f5f264131db1ab414bc85955f2f0f8940c5"}},{"ruleId":"D2","level":"warning","message":{"text":"app.registerAssetTools (cognitive 31): app.registerAssetTools has cognitive complexity 31 (threshold 15). Drivers by points: if/else 25 (27 pts), boolean chains 3, loops 1 (nesting depth added 2). Most of this is not in the body itself: 2 of the 31 points are its own statements and the rest belongs to 6 function literals inside it that branch (lines 83, 33, 61, \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":"internal/app/asset_tools.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fc8663b80d71f0e9cd06ef8defcd19981cd24ab7c803c8144536416f288bcdd"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.saveAttachmentsToDateAndConversationDir (cognitive 31): handler.saveAttachmentsToDateAndConversationDir has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (29 pts), boolean chains 1, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b55ab60c4586aed56dbc2c6d4117660802f7b3066d43f4039f76a63f90177d"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.updateAIConfig (cognitive 31): handler.updateAIConfig has cognitive complexity 31 (threshold 15). Drivers by points: if/else 16 (29 pts), loops 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":2309}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6f01405056837659575a6873db490d3d49aed256065d84fe48b9ed0b5cc502"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTaskManager.loadQueueFromDB (cognitive 31): BatchTaskManager.loadQueueFromDB has cognitive complexity 31 (threshold 15). Drivers by points: if/else 21 (26 pts), boolean chains 4, loops 1 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"737fc9fb2f4a965c4151abcded95d35ccc4a6813b37e7465a1ac813a96cb291c"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsHandler.GetSkills (cognitive 31): SkillsHandler.GetSkills has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/skills.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"c135f253e6bd2bbce1c47b47a17460c5cbc8fe95860c9fe5c992d76bfe4ccdac"}},{"ruleId":"D2","level":"warning","message":{"text":"nativeMultiQuery.Retrieve (cognitive 31): nativeMultiQuery.Retrieve has cognitive complexity 31 (threshold 15). Drivers by points: if/else 9 (22 pts), loops 4 (7 pts), boolean chains 2 (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":"internal/knowledge/wire_retriever.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7972f101970f8418abaa0e08b6d8984d3687da633e566e7f99e4898f0acd95b"}},{"ruleId":"D2","level":"warning","message":{"text":"robot.SendProactive (cognitive 31): robot.SendProactive has cognitive complexity 31 (threshold 15). Drivers by points: if/else 11 (23 pts), loops 2 (4 pts), boolean chains 3, match/switch 1 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/proactive.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"44a214ee1e8beb280704339078eeee7c4b7ecca48dd72a8f5760d7e0dfa3086f"}},{"ruleId":"D2","level":"warning","message":{"text":"security.findStandaloneAmpersandPositions (cognitive 31): security.findStandaloneAmpersandPositions has cognitive complexity 31 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 7, 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":"internal/security/shell_background_io.go"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0174f9ee97635d424ea74935bd3d550cb15d2fbebaa615b4909f74f0ec850b"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.GenerateDraftFromNaturalLanguage (cognitive 31): workflow.GenerateDraftFromNaturalLanguage has cognitive complexity 31 (threshold 15). Drivers by points: if/else 18 (28 pts), boolean chains 2, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/draft_generator.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"839674c1d3ef31215e881a92b2f162f0c65a30470c5de69e985d70651635b453"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.initializeChatUI (cognitive 31): chat.initializeChatUI has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (27 pts), boolean chains 4 (nesting depth added 17). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3315}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e06a3e87072178ca181169d542c9499114c5f5501d375b0617aef8397c5cef"}},{"ruleId":"D2","level":"warning","message":{"text":"integrateProgressToMCPSection (cognitive 31): integrateProgressToMCPSection has cognitive complexity 31 (threshold 15). Drivers by points: if/else 15 (20 pts), ternaries 5 (8 pts), boolean chains 3 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"33ec449506362680469a0292dfa46b2ccc71f8125b1d5392e32538c0384ecc3f"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveInlineHitlDecision (cognitive 31): resolveInlineHitlDecision has cognitive complexity 31 (threshold 15). Drivers by points: boolean chains 20, if/else 9 (11 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":"web/static/js/monitor.js"},"region":{"startLine":4529}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca47242026cd2061b0b7900c1e779454fb022291f857cd7c5e29c7cbdaf86fc"}},{"ruleId":"D2","level":"warning","message":{"text":"toggleExternalMCP (cognitive 31): toggleExternalMCP has cognitive complexity 31 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 6, error handling 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":4918}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c1a52b01fcaeff8fc113d0d42c3e13a426b0ec88209b506923741686527d0d8"}},{"ruleId":"D2","level":"warning","message":{"text":"createBatchQueue (cognitive 31): createBatchQueue has cognitive complexity 31 (threshold 15). Drivers by points: ternaries 10, boolean chains 9, if/else 9, error handling 2 (3 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c39a969625ab43311439e64299b28f7df516e3d6a5a8d2bc042b476e57d310"}},{"ruleId":"D2","level":"warning","message":{"text":"agents.LoadMarkdownAgentsDir (cognitive 30): agents.LoadMarkdownAgentsDir has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (27 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 17). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agents/markdown.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3070054616881f1399f39630a0d5b8f59cb5a1a8deda22d6913ef6c795ac1e79"}},{"ruleId":"D2","level":"warning","message":{"text":"App.RunWithContext (cognitive 30): App.RunWithContext has cognitive complexity 30 (threshold 15). Drivers by points: if/else 16 (24 pts), boolean chains 3, match/switch 2 (3 pts) (nesting depth added 9). Of this number, 20 points are the body\u0027s own statements and 10 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":"internal/app/app.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"702ca4b54dcaf0038fc66fa6a2933be3286115398c41f6294c48df4d6ca5fec9"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.formatProcessDetailsForAttackChain (cognitive 30): Builder.formatProcessDetailsForAttackChain has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 5, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/builder.go"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"58bde084a95c2ffd31cf22567e82a1f77b5b478f21780f3aa5a5bef888196c08"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatUploadsHandler.collectReductionFiles (cognitive 30): ChatUploadsHandler.collectReductionFiles has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (24 pts), boolean chains 5, loops 1 (nesting depth added 11). Most of this is not in the body itself: 4 of the 30 points are its own statements and the rest belongs to one function literal inside it that branches (line 473). 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":"internal/handler/chat_uploads.go"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8dd727564bc7e9825c6da7cd6324cfe045ee5e7d74c239481b8329b600eb2b"}},{"ruleId":"D2","level":"warning","message":{"text":"update.validateRollbackEvidence (cognitive 30): update.validateRollbackEvidence has cognitive complexity 30 (threshold 15). Drivers by points: if/else 14 (20 pts), boolean chains 10 (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":"internal/update/recovery_evidence.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"056f398b75accd8af08c7522e35626206ba28b85ec4007216e0071a5acada625"}},{"ruleId":"D2","level":"warning","message":{"text":"update.finishRollback (cognitive 30): update.finishRollback has cognitive complexity 30 (threshold 15). Drivers by points: if/else 15 (24 pts), boolean chains 6 (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":"internal/update/rollback_pending.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a81196a02cb1aa21d62b0815020539ccd06fcf7572871241229b90720f23dfa"}},{"ruleId":"D2","level":"warning","message":{"text":"audit-datetime-picker.ensurePopover (cognitive 30): audit-datetime-picker.ensurePopover has cognitive complexity 30 (threshold 15). Drivers by points: if/else 18 (27 pts), boolean chains 3 (nesting depth added 9). Most of this is not in the body itself: 1 of the 30 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 150, 208). 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":"web/static/js/audit-datetime-picker.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef1bc11a84b394298a7f8502806d4b3d35183ac721d6e16f71a454acd6803c14"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-files.deleteChatFolderFromBrowse (cognitive 30): chat-files.deleteChatFolderFromBrowse has cognitive complexity 30 (threshold 15). Drivers by points: if/else 8 (16 pts), ternaries 3 (7 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 14). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83fc71dd81ea44e14ceee67199cbe542a6ecd4e501840ee83818afc19396633"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.fetchMentionTools (cognitive 30): chat.fetchMentionTools has cognitive complexity 30 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 11, ternaries 2 (3 pts), error handling 2, loops 1 (nesting depth added 7). Of this number, 20 points are the body\u0027s own statements and 10 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":"web/static/js/chat.js"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b62fb4493caa9856d1d691017aafa18b0dde933266e147e48b4cd3b2eacbdfe"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.formatPiRunRetryMessage (cognitive 30): monitor.formatPiRunRetryMessage has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 7 (12 pts), boolean chains 11, if/else 6 (7 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2729}}}],"partialFingerprints":{"codehealthFindingId/v1":"26f197d2d20baa47ac2e1cbe11080b4ec70f9bf708ba478608c68cf973515794"}},{"ruleId":"D2","level":"warning","message":{"text":"roles.loadRoleTools (cognitive 30): roles.loadRoleTools has cognitive complexity 30 (threshold 15). Drivers by points: if/else 10 (19 pts), boolean chains 10, error handling 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":"web/static/js/roles.js"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"074dffa0f76a2316a51d840dc3d38e678692708d22750b91008424e70a915d83"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.resolveModelListCredentials (cognitive 30): settings.resolveModelListCredentials has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 27, if/else 3. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3443}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a2d11827ad952a63209ce1e7836e613a5060a9b440b401e93c92fd618cb242c"}},{"ruleId":"D2","level":"warning","message":{"text":"webshell.buildWebshellDbCommand (cognitive 30): webshell.buildWebshellDbCommand has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 21, if/else 6, ternaries 2 (3 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"f38fc80aa9c5bafd89e813b1c229c986a3273487cddf2ab7ecf9ef4fcb7b85a4"}},{"ruleId":"D2","level":"warning","message":{"text":"testAPI (cognitive 30): testAPI has cognitive complexity 30 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 7, error handling 3 (5 pts), ternaries 3 (4 pts) (nesting depth added 5). Of this number, 22 points are the body\u0027s own statements and 8 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":"web/static/js/api-docs.js"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a1329722f37ea0d5a7b08c28bda6a2c102ea2e4cd1c8007dae14510b2b1ddb"}},{"ruleId":"D2","level":"warning","message":{"text":"exportChatFiles (cognitive 30): exportChatFiles has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 8 (11 pts), if/else 8 (10 pts), boolean chains 6, error handling 2 (3 pts) (nesting depth added 6). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e0b1eddc6dcdbf9363cf2ff7da79e9802e31ac412f38658b5b647e10798c55a"}},{"ruleId":"D2","level":"warning","message":{"text":"applyHitlSidebarConfig (cognitive 30): applyHitlSidebarConfig has cognitive complexity 30 (threshold 15). Drivers by points: ternaries 8 (15 pts), if/else 9 (10 pts), boolean chains 4, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d0a324d399d5cb787a9abbc3d36d1f3f4c518c31f4e8b183409a9c3910a4e2"}},{"ruleId":"D2","level":"warning","message":{"text":"cancelMCPToolExecutionSubmit (cognitive 30): cancelMCPToolExecutionSubmit has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 10, if/else 8 (10 pts), ternaries 4 (7 pts), error handling 2 (3 pts) (nesting depth added 6). Of this number, 29 points are the body\u0027s own statements and 1 belongs to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5781}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1eee5b14b7b1f78b726ff328d1e2d797ba6d2a2d74f521ae5e4fb99ae91b5f"}},{"ruleId":"D2","level":"warning","message":{"text":"syncVisibleConversationTaskReplay (cognitive 30): syncVisibleConversationTaskReplay has cognitive complexity 30 (threshold 15). Drivers by points: boolean chains 14, if/else 11 (13 pts), ternaries 2, error handling 1 (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 15 belong to 4 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6979}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c673e0b5a2d1e635dfc981989dc8f8278bc5cc4ffd2825b3f6a441a345c2de8"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRolesList (cognitive 30): renderRolesList has cognitive complexity 30 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 7, ternaries 5 (7 pts), error handling 1 (3 pts) (nesting depth added 6). Most of this is not in the body itself: 5 of the 30 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 605, 589, 632). 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":"web/static/js/roles.js"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed11a0bb2345c484ab04fde3ebc09282133e5efaca0abc7c819d521a574088ca"}},{"ruleId":"D2","level":"warning","message":{"text":"webshellAiConvListSelect (cognitive 30): webshellAiConvListSelect has cognitive complexity 30 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 9, ternaries 2 (3 pts), error handling 1 (nesting depth added 5). Most of this is not in the body itself: 5 of the 30 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 2405, 2401, 2395, \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":"web/static/js/webshell.js"},"region":{"startLine":2392}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4375b359efc0dcea585bcc65132a914d248dc9245e3c34ebf691227ddd7876"}},{"ruleId":"D2","level":"warning","message":{"text":"Embedder.EmbedStrings (cognitive 29): Embedder.EmbedStrings has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 3 (8 pts), match/switch 1 (3 pts), boolean chains 1 (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":"internal/knowledge/embedder.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"488b6ae482a6fe3afc7e1de849d7a15d85053baf327ec9f6e3cbeb15a42e2450"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.SearchItemsByKeyword (cognitive 29): Manager.SearchItemsByKeyword has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (19 pts), loops 3 (7 pts), boolean chains 3 (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/manager.go"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"0828940e1cf105fd3d8f07fe6141e31e89a2696d719c8ad18d323399f2744a02"}},{"ruleId":"D2","level":"warning","message":{"text":"webshell.parseWebshellDbSchema (cognitive 29): webshell.parseWebshellDbSchema has cognitive complexity 29 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 9, ternaries 3 (5 pts), loops 1 (nesting depth added 7). Of this number, 26 points are the body\u0027s own statements and 3 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":"web/static/js/webshell.js"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"00470f567e6bab51184c6146435718692158f9fe9a376480e70ae9089eb9a049"}},{"ruleId":"D2","level":"warning","message":{"text":"exportAttackChain (cognitive 29): exportAttackChain has cognitive complexity 29 (threshold 15). Drivers by points: error handling 4 (10 pts), if/else 7 (9 pts), boolean chains 8, ternaries 1 (2 pts) (nesting depth added 9). Most of this is not in the body itself: 3 of the 29 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 9081, 9093, 9100, \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":"web/static/js/chat.js"},"region":{"startLine":9074}}}],"partialFingerprints":{"codehealthFindingId/v1":"0da66f9c6edd2a76c16d3a9a8cedf752f74d68bedef6fb1960cc454e4fe24bdc"}},{"ruleId":"D2","level":"warning","message":{"text":"toggleProcessDetails (cognitive 29): toggleProcessDetails has cognitive complexity 29 (threshold 15). Drivers by points: if/else 14 (16 pts), ternaries 4 (7 pts), boolean chains 6 (nesting depth added 5). Of this number, 26 points are the body\u0027s own statements and 3 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":"web/static/js/monitor.js"},"region":{"startLine":2575}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7d64adf9d1b60a98524135b8a779895d73c6018232d9a6093ad215a7061d15c"}},{"ruleId":"D2","level":"warning","message":{"text":"updateRoleSelectorDisplay (cognitive 29): updateRoleSelectorDisplay has cognitive complexity 29 (threshold 15). Drivers by points: if/else 7 (10 pts), ternaries 4 (8 pts), boolean chains 7, error handling 1 (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":"web/static/js/roles.js"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"c408fb933afbcbe1e2136642245f570702a42228f2f07d5add4fc35788e2c904"}},{"ruleId":"D2","level":"warning","message":{"text":"testVisionConnection (cognitive 29): testVisionConnection has cognitive complexity 29 (threshold 15). Drivers by points: ternaries 7 (15 pts), boolean chains 7, if/else 5 (6 pts), error handling 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":"web/static/js/settings.js"},"region":{"startLine":3716}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbe4b4d739ef159456e9a37ce7de7101c4c4cdc370c0b858a664d6a00771c617"}},{"ruleId":"D2","level":"warning","message":{"text":"renderBatchQueues (cognitive 29): renderBatchQueues has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 10, boolean chains 8 (nesting depth added 1). Most of this is not in the body itself: 6 of the 29 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 1594, 1607, 1633). 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":"web/static/js/tasks.js"},"region":{"startLine":1572}}}],"partialFingerprints":{"codehealthFindingId/v1":"3586ec217641ae7324a513a12ddfd78418cfca3e3fc883c5e4f34831b2fd30ed"}},{"ruleId":"D2","level":"warning","message":{"text":"updateControls (cognitive 29): updateControls has cognitive complexity 29 (threshold 15). Drivers by points: if/else 10, ternaries 5 (10 pts), boolean chains 9 (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":"web/static/js/tool-guard.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"af4860d6e7dc44ac76f37d006b30e762d37a6808be6a299ab223129995def4e6"}},{"ruleId":"D2","level":"warning","message":{"text":"config.WriteVersion (cognitive 28): config.WriteVersion has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 5, loops 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f94cee116c63aac8018fec64b1fc2c4de17e7ac810b7cf6557cac797df6a51"}},{"ruleId":"D2","level":"warning","message":{"text":"database.grantSystemRolePermissions (cognitive 28): database.grantSystemRolePermissions has cognitive complexity 28 (threshold 15). Drivers by points: if/else 6 (17 pts), loops 3 (7 pts), boolean chains 2, match/switch 1 (2 pts) (nesting depth added 16). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b3375d41e67fdcbd7c8793c734fd15bfdbaf2e4d471fd864090eb4f2504253"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTaskManager.PrepareSingleTaskRun (cognitive 28): BatchTaskManager.PrepareSingleTaskRun has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 5 (6 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":"internal/handler/batch_task_manager.go"},"region":{"startLine":993}}}],"partialFingerprints":{"codehealthFindingId/v1":"83dd5af193774d5212394c19e26143b339bf60924dbeb08358285173fd855eaa"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatUploadsHandler.collectWorkspaceFiles (cognitive 28): ChatUploadsHandler.collectWorkspaceFiles has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (22 pts), boolean chains 5, loops 1 (nesting depth added 10). Most of this is not in the body itself: 4 of the 28 points are its own statements and the rest belongs to one function literal inside it that branches (line 549). 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":"internal/handler/chat_uploads.go"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"05102cdd8e4fc137d5ae9ae992155382fdf85f7f49edf4f9ff60b162942c46ed"}},{"ruleId":"D2","level":"warning","message":{"text":"HITLManager.reconcileRestartInterruptedMessages (cognitive 28): HITLManager.reconcileRestartInterruptedMessages has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 2, loops 2, match/switch 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":"internal/handler/hitl.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37aedf50afb440abd5da49e1345957771c4155a33cd62a9231258a519dfc9d7"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowHandler.save (cognitive 28): WorkflowHandler.save has cognitive complexity 28 (threshold 15). Drivers by points: if/else 20 (25 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"fda1fb40649d7ab70c22bddf75136164093c1de551c7883443f7debd7ce99cff"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.parseAdditionalArgs (cognitive 28): Executor.parseAdditionalArgs has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (20 pts), boolean chains 7, 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":"internal/security/executor.go"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"53f0868aaca1f4c52f9b91b596a9deb0fdb66eb2b89055c27a62a19c86c1b92f"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.executeSystemCommand (cognitive 28): Executor.executeSystemCommand has cognitive complexity 28 (threshold 15). Drivers by points: if/else 15 (22 pts), boolean chains 6 (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":"internal/security/executor.go"},"region":{"startLine":773}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7a79bec5095dcaab7655640cf9db221e295eeddb680ea4f2e892875df0378de"}},{"ruleId":"D2","level":"warning","message":{"text":"update.restoreInterruptedProtected (cognitive 28): update.restoreInterruptedProtected has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11 (22 pts), boolean chains 3, loops 2 (3 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":"internal/update/apply.go"},"region":{"startLine":837}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6cbeff804758eb653fcd6f71f084f7504f36174c9dd50e363f49880cec6ba00"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-files.renderChatFilesTable::rowHtml (cognitive 28): chat-files.renderChatFilesTable::rowHtml has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 11, ternaries 10, if/else 7. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 2 other methods here (chat-files.renderChatFilesTable, chat-files.renderChatFilesTable::rowHtmlTreeFile) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"60156e474d327bea40f5007e6810128238d1c1294868a5fb999b0aa98673f813"}},{"ruleId":"D2","level":"warning","message":{"text":"webshell.webshellDbRenderTable (cognitive 28): webshell.webshellDbRenderTable has cognitive complexity 28 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 8, ternaries 2 (3 pts), loops 2 (nesting depth added 3). Of this number, 20 points are the body\u0027s own statements and 8 belong to 5 function literals inside it that branch. To reduce it, 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":"web/static/js/webshell.js"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"4410843726e321cf550694e73d551fc28afc5d4cb974e973616d6b926d894688"}},{"ruleId":"D2","level":"warning","message":{"text":"webshell.parseWebshellDbColumns (cognitive 28): webshell.parseWebshellDbColumns has cognitive complexity 28 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 9, loops 2 (3 pts), ternaries 2 (3 pts) (nesting depth added 7). Of this number, 25 points are the body\u0027s own statements and 3 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":"web/static/js/webshell.js"},"region":{"startLine":2010}}}],"partialFingerprints":{"codehealthFindingId/v1":"03cb3daeca497d00f1016af7da7bbc29bc97e7575f73fcb676b836a11b3a5723"}},{"ruleId":"D2","level":"warning","message":{"text":"openAssetEditor (cognitive 28): openAssetEditor has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 21, ternaries 5, 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":"web/static/js/assets.js"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"40daa5fccc21bccd0b1243fe40437953d4cffd9ca13a92706567be542bc0c08f"}},{"ruleId":"D2","level":"warning","message":{"text":"loadChatFilesPage (cognitive 28): loadChatFilesPage has cognitive complexity 28 (threshold 15). Drivers by points: if/else 11, ternaries 10 (11 pts), boolean chains 5, error handling 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f36df916f9b93e7e6b0ed8e42555044203ba51d384b2bb01ce66bb8c04c491"}},{"ruleId":"D2","level":"warning","message":{"text":"hydrateConversationTokenUsage (cognitive 28): hydrateConversationTokenUsage has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 12, if/else 10, ternaries 5, error handling 1. Of this number, 18 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":"web/static/js/chat.js"},"region":{"startLine":6344}}}],"partialFingerprints":{"codehealthFindingId/v1":"c00c62849136d277fd5e2207e4ee92122281a1ea62a7ac561dfda9f59c0802a3"}},{"ruleId":"D2","level":"warning","message":{"text":"batchScanSelectedFofaRows (cognitive 28): batchScanSelectedFofaRows has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12, boolean chains 8, error handling 3 (4 pts), ternaries 3 (4 pts) (nesting depth added 2). Of this number, 24 points are the body\u0027s own statements and 4 belong to 4 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"41197c50033d2d0d2cb6fd85f3d0915e9d815ff3d44dd5a76befdf40081b0a3f"}},{"ruleId":"D2","level":"warning","message":{"text":"renderMcpStatsToolTable (cognitive 28): renderMcpStatsToolTable has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 15, ternaries 13. 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 8763). 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":"web/static/js/monitor.js"},"region":{"startLine":8755}}}],"partialFingerprints":{"codehealthFindingId/v1":"a732441c123e54d78b2311846b2be7addee27a14f43f9d952c1798bf48b83c2c"}},{"ruleId":"D2","level":"warning","message":{"text":"detectAIContext (cognitive 28): detectAIContext has cognitive complexity 28 (threshold 15). Drivers by points: boolean chains 13, if/else 10 (13 pts), error handling 2 (nesting depth added 3). Of this number, 27 points are the body\u0027s own statements and 1 belongs 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":"web/static/js/settings.js"},"region":{"startLine":4007}}}],"partialFingerprints":{"codehealthFindingId/v1":"43581b5b2601284374c65bb52ca7f2b01ea8dbda7e2c694e9cf4c53ea2635e7d"}},{"ruleId":"D2","level":"warning","message":{"text":"selectSkillPackageFile (cognitive 28): selectSkillPackageFile has cognitive complexity 28 (threshold 15). Drivers by points: if/else 12 (15 pts), ternaries 4 (7 pts), boolean chains 5, error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/skills.js"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"73781b8f842fd5f9adcfd2789e5f3efd3ecb6b59ddea489e2ceec01f55d568fc"}},{"ruleId":"D2","level":"warning","message":{"text":"pollUpdateJob (cognitive 28): pollUpdateJob has cognitive complexity 28 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 5, ternaries 2 (3 pts), error handling 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/update.js"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"3544f3a8f8ca53049ed4fa9c594d494a41a1cdbded36b2a5bb0b663de8bbc659"}},{"ruleId":"D2","level":"warning","message":{"text":"workflowAiRenderResult (cognitive 28): workflowAiRenderResult has cognitive complexity 28 (threshold 15). Drivers by points: ternaries 14, boolean chains 9, if/else 4 (5 pts) (nesting depth added 1). Of this number, 26 points are the body\u0027s own statements and 2 belong to 6 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"689f5cf7ef4235af39aa42bef011d9bbcdae877de70d47e4bf3de5ddaf8f6e26"}},{"ruleId":"D2","level":"warning","message":{"text":"app.assetFilterFromToolArgs (cognitive 27): app.assetFilterFromToolArgs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20 (24 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/asset_tools.go"},"region":{"startLine":287}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ef9addcc9167bc39243a12d79d6c0cf20f076b1d60d3a38be2f4230b203d13d"}},{"ruleId":"D2","level":"warning","message":{"text":"database.validateAsset (cognitive 27): database.validateAsset has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 7, loops 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":"internal/database/asset.go"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffa5d575a490761c3634c87280b1311da8c3d5eedf4a538dcaa05a64f4c0ec13"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.GetConversationByWebshellConnectionID (cognitive 27): DB.GetConversationByWebshellConnectionID has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 2 (4 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":"internal/database/conversation.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6c55fcd34339949fc714f79fdc72d16fe56b325213025ca1fe713e226b89725"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.GetConversation (cognitive 27): DB.GetConversation has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (23 pts), loops 2 (4 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":"internal/database/conversation.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdd2098dfd54b080d0970f28b9dd046bc10121cfe747fe5786cc00b8f7c131ec"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.GetMessages (cognitive 27): DB.GetMessages has cognitive complexity 27 (threshold 15). Drivers by points: if/else 11 (24 pts), boolean chains 2, loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"d41753cf94b112ff4137739ae5ffac09150003494d984537de73e157fb020e7f"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.batchMCPTasksFromArgs (cognitive 27): handler.batchMCPTasksFromArgs has cognitive complexity 27 (threshold 15). Drivers by points: if/else 7 (19 pts), loops 2 (5 pts), match/switch 1 (2 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":"internal/handler/batch_task_mcp.go"},"region":{"startLine":783}}}],"partialFingerprints":{"codehealthFindingId/v1":"31aef34accdf9d0c69f281fdecc97a07a3d32e2ccfc8517a08c4423050042488"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.handleBatchSubTaskRunError (cognitive 27): AgentHandler.handleBatchSubTaskRunError has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (22 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":"internal/handler/batch_queue_executor.go"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"86ff311b80f0b89593378a45ba3d000283fdda5e36974594f6c7d4d641f6cce9"}},{"ruleId":"D2","level":"warning","message":{"text":"FofaHandler.Search (cognitive 27): FofaHandler.Search has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20 (23 pts), loops 2 (3 pts), boolean chains 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":"internal/handler/fofa.go"},"region":{"startLine":578}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0d8801d881cc20c620cfc1b054ddad168b92601cb0fdf439efe09e33ceb1a9"}},{"ruleId":"D2","level":"warning","message":{"text":"WechatRobotHandler.HandleWechatQRCodeStatus (cognitive 27): WechatRobotHandler.HandleWechatQRCodeStatus has cognitive complexity 27 (threshold 15). Drivers by points: if/else 15 (25 pts), boolean chains 1, match/switch 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":"internal/handler/wechat_robot.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"c593609f9f3876cbeedbbd6cfb070020475597d4cfb39dd17ec8b84e2020bfe8"}},{"ruleId":"D2","level":"warning","message":{"text":"robot.runWechatPoll (cognitive 27): robot.runWechatPoll has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (21 pts), loops 2 (3 pts), match/switch 1 (2 pts), boolean chains 1 (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":"internal/robot/wechat.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"30cb087bf49745d46e88f364afcf16a4ab7999b8bde0f4c1690178d29672f0fe"}},{"ruleId":"D2","level":"warning","message":{"text":"update.stashProtected (cognitive 27): update.stashProtected has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (21 pts), loops 4, boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"14a41fc6682a229fa045bf892e28894e1beb1725741e5cd7e2ada1c35c776280"}},{"ruleId":"D2","level":"warning","message":{"text":"update.validateBuildEvidence (cognitive 27): update.validateBuildEvidence has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 12, match/switch 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":"internal/update/recovery_evidence.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"4605db802c2741af3541995fdcf442b15abf30e2ce7996f0472d896da87b0fad"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.normalizeLLMDraft (cognitive 27): workflow.normalizeLLMDraft has cognitive complexity 27 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 4, loops 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/draft_generator.go"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a25c4e89d0c713cd3bafc8a501c55a9d646c6bc9c9b68d96083f3d933202fdf"}},{"ruleId":"D2","level":"warning","message":{"text":"CyberStrikeAIClient.streamTest (cognitive 27): CyberStrikeAIClient.streamTest has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (20 pts), ternaries 3, boolean chains 2, error handling 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"89dce6c45db447df57314e49d7421bce2f0b7c153f0b2849089ae882964261ed"}},{"ruleId":"D2","level":"warning","message":{"text":"SimpleJson.extractStringField (cognitive 27): SimpleJson.extractStringField has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (14 pts), error handling 1 (5 pts), boolean chains 3, match/switch 1 (3 pts), loops 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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SimpleJson.java"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c29035e480d6e0cdfa94a40725e88f1470c1acd88df4143aaa8769743c220dd"}},{"ruleId":"D2","level":"warning","message":{"text":"audit.auditResourceLink (cognitive 27): audit.auditResourceLink has cognitive complexity 27 (threshold 15). Drivers by points: if/else 10, boolean chains 9, ternaries 4 (8 pts) (nesting depth added 4). Of this number, 26 points are the body\u0027s own statements and 1 belongs 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":"web/static/js/audit.js"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"678bb704f9137308ee72c19f1d6df9d90d1ebd86944f939e1cfccc8bc39740b5"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge.formatTime (cognitive 27): knowledge.formatTime has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (23 pts), boolean chains 4 (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":"web/static/js/knowledge.js"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b641733382f75dbc38fc8688adcc041936e16de82010fb8eecd872e058f921e"}},{"ruleId":"D2","level":"warning","message":{"text":"mobile-ui.filterNav (cognitive 27): mobile-ui.filterNav has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 14, if/else 9 (12 pts), loops 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 27 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 541, 550, 583, \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":"web/static/js/mobile-ui.js"},"region":{"startLine":535}}}],"partialFingerprints":{"codehealthFindingId/v1":"5593295764a03bb66939cdd1faa8ba313b6e50854881ae20ade64e7f53ddfb68"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor._normalizeEmphasisMarkersForMarkdown::normalizeLine (cognitive 27): monitor._normalizeEmphasisMarkersForMarkdown::normalizeLine has cognitive complexity 27 (threshold 15). Drivers by points: if/else 9 (20 pts), loops 3 (4 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c72a7fef072cdd1a2f5f1cbd9e0758a714e722e6bdf12788fc999a46383ddea"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.enhanceSettingsSelect (cognitive 27): settings.enhanceSettingsSelect has cognitive complexity 27 (threshold 15). Drivers by points: if/else 20 (21 pts), boolean chains 6 (nesting depth added 1). Most of this is not in the body itself: 8 of the 27 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 242, 271, 234). 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":"web/static/js/settings.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d626e4bd7c42112e429d4ff41267315fdb94ff12fb54cce1912a88bd9ad8731"}},{"ruleId":"D2","level":"warning","message":{"text":"loadAttackChain (cognitive 27): loadAttackChain has cognitive complexity 27 (threshold 15). Drivers by points: if/else 12 (21 pts), ternaries 1 (3 pts), boolean chains 2, error handling 1 (nesting depth added 11). 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 into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":7029}}}],"partialFingerprints":{"codehealthFindingId/v1":"608cf37edcc6cf294996be49c34e84c5062acbb41474278642cb31e29f956c2e"}},{"ruleId":"D2","level":"warning","message":{"text":"collapseAllProgressDetails (cognitive 27): collapseAllProgressDetails has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (15 pts), ternaries 3 (9 pts), boolean chains 3 (nesting depth added 13). Of this number, 20 points are the body\u0027s own statements and 7 belong to 4 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":"web/static/js/monitor.js"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2fb97e361f09b035365da6ca57cf25898919f4e7114e6ab7f232fc060dc567e"}},{"ruleId":"D2","level":"warning","message":{"text":"reconcileConversationAfterTaskReplay (cognitive 27): reconcileConversationAfterTaskReplay has cognitive complexity 27 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 9, error handling 1, loops 1, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"web/static/js/monitor.js"},"region":{"startLine":5544}}}],"partialFingerprints":{"codehealthFindingId/v1":"98df6cfc527b5cbeddd3e1d203f69430f87be3e297e720742468154c98d6cf1f"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSkillsPagination (cognitive 27): renderSkillsPagination has cognitive complexity 27 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 10, boolean chains 7 (nesting depth added 2). Of this number, 21 points are the body\u0027s own statements and 6 belong to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"web/static/js/skills.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"1db86081600983561ebd0afb7fb0c3772c934732dbc8d7e50925e30488643a8c"}},{"ruleId":"D2","level":"warning","message":{"text":"openVulnerabilityInspector (cognitive 27): openVulnerabilityInspector has cognitive complexity 27 (threshold 15). Drivers by points: boolean chains 11, ternaries 9, if/else 4 (5 pts), error handling 2 (nesting depth added 1). Of this number, 22 points are the body\u0027s own statements and 5 belong to 5 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":"web/static/js/vulnerability-workspace.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"79d017710f1c5e861e4b97c8393111877b7b9da5ba171627f9718d95114f228b"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent.convertSchemaTypes (cognitive 26): Agent.convertSchemaTypes has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (19 pts), loops 3 (7 pts) (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":"internal/agent/agent.go"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"af46688810b522da7266bbfd9c734175cbec6f0a7e9d0689cf0717ebad33e86c"}},{"ruleId":"D2","level":"warning","message":{"text":"database.assetWhere (cognitive 26): database.assetWhere has cognitive complexity 26 (threshold 15). Drivers by points: if/else 21 (22 pts), loops 2 (3 pts), match/switch 1 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":400}}}],"partialFingerprints":{"codehealthFindingId/v1":"f98a474e7caa915254f8af0aaeeede224af05a643c46097438aaf1d03aea6f55"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.LoadToolExecutionsWithPagination (cognitive 26): DB.LoadToolExecutionsWithPagination has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (22 pts), loops 2 (3 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d72a8fb1b41c45f6ff7d4bab6b9620c2bb1aadbbf7185c518cf0edf3971ec86"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.CreateBatchQueue (cognitive 26): AgentHandler.CreateBatchQueue has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (23 pts), boolean chains 2, 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":"internal/handler/agent.go"},"region":{"startLine":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dad616acc50873ef89a5d6530af32e9f821f4dabaf3896e20888b038a779fa5"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetHandler.RecordScans (cognitive 26): AssetHandler.RecordScans has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 6, loops 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/asset.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"493187f6fa1ee90751d96e189a5ca1c1092464b5f93cca23e91d60f4e193c547"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetHandler.Merge (cognitive 26): AssetHandler.Merge has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12 (16 pts), loops 6 (7 pts), boolean chains 3 (nesting depth added 5). Of this number, 24 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/asset.go"},"region":{"startLine":437}}}],"partialFingerprints":{"codehealthFindingId/v1":"46ddcf779fc3dadb6ba1693e63ffdaf7b0e224c5e0826b18f7bd390845473c7b"}},{"ruleId":"D2","level":"warning","message":{"text":"MonitorHandler.loadExecutionListWithPagination (cognitive 26): MonitorHandler.loadExecutionListWithPagination has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (18 pts), loops 2 (5 pts), boolean chains 3 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/monitor.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"326a1d1233306f50b05993a6c1f4f350bf81efe8a929dde159357661d40aebdb"}},{"ruleId":"D2","level":"warning","message":{"text":"MonitorHandler.loadStatsMap (cognitive 26): MonitorHandler.loadStatsMap has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (14 pts), loops 4 (10 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":"internal/handler/monitor.go"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dfd35ddbbfb8c675d0467fb0e0a936bbcf74fadb35566ef9488247223bb1e0"}},{"ruleId":"D2","level":"warning","message":{"text":"MonitorHandler.DeleteExecutions (cognitive 26): MonitorHandler.DeleteExecutions has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (21 pts), loops 3 (5 pts) (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/monitor.go"},"region":{"startLine":929}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0c3bac9610f05f346b30860c9a7e1bb3fe7a9991175a25250dbe3e7fb6e348c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskManager.CancelTask (cognitive 26): AgentTaskManager.CancelTask has cognitive complexity 26 (threshold 15). Drivers by points: if/else 16 (18 pts), boolean chains 8 (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":"internal/handler/task_manager.go"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"440f1dbcc60283a327927981a40f8e7781b27bdd511dad7324705567f8742a57"}},{"ruleId":"D2","level":"warning","message":{"text":"VulnerabilityHandler.UpdateVulnerability (cognitive 26): VulnerabilityHandler.UpdateVulnerability has cognitive complexity 26 (threshold 15). Drivers by points: if/else 22 (25 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability.go"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"63c32a19f26a125964efc52f4bfeaf9064beedb14fc4d5cd00ede8fcc46f2f40"}},{"ruleId":"D2","level":"warning","message":{"text":"VulnerabilityHandler.ExportVulnerabilities (cognitive 26): VulnerabilityHandler.ExportVulnerabilities has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (13 pts), loops 5 (11 pts), boolean chains 2 (nesting depth added 9). 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":"internal/handler/vulnerability.go"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ef8c28b9d9f47fcbfb361c6bc81fe05e1f1eb4a04dd733b90d80fd16458899"}},{"ruleId":"D2","level":"warning","message":{"text":"VectorRetriever.Retrieve (cognitive 26): VectorRetriever.Retrieve has cognitive complexity 26 (threshold 15). Drivers by points: if/else 15 (20 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":"internal/knowledge/vector_retriever.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9c8e4450702b6b19eac63b6b52cecc7e711b942163078304542e9e4e1a3452"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.DryRunGraphJSON (cognitive 26): workflow.DryRunGraphJSON has cognitive complexity 26 (threshold 15). Drivers by points: if/else 11 (19 pts), loops 4 (5 pts), match/switch 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":"internal/workflow/dry_run.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"880cbb7917d4bddd9e502653d2eebb003142fbf066e2ae9f1ca36eefbc640975"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.openAssetDetailRecord (cognitive 26): assets.openAssetDetailRecord has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 14, if/else 6, ternaries 6. 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":"web/static/js/assets.js"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e31921f8cb3c15444516dda929534d10977aea6bfc58f50eb1a793a0208ba2f"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge.getTimeAgo (cognitive 26): knowledge.getTimeAgo has cognitive complexity 26 (threshold 15). Drivers by points: if/else 14 (23 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"6983fbcaf14e2b92a63ea6a317ed0c7c2112f9103a921e9477c1b68072ae5e8a"}},{"ruleId":"D2","level":"warning","message":{"text":"tasks.renderTaskItem (cognitive 26): tasks.renderTaskItem has cognitive complexity 26 (threshold 15). Drivers by points: ternaries 17 (18 pts), boolean chains 8 (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":"web/static/js/tasks.js"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ac027aef8b44667c1ae5195dfc2b248a9c57daf05d22de305f0b89bababe1b"}},{"ruleId":"D2","level":"warning","message":{"text":"parseAssetEditorTarget (cognitive 26): parseAssetEditorTarget has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 9, ternaries 3 (4 pts), 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, 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":"web/static/js/assets.js"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"e637416f69b2b4abd4c20e7919f5a71381880cb21368607565d41bd8bc9c2fb5"}},{"ruleId":"D2","level":"warning","message":{"text":"prefetchProcessDetailsSummaryHint (cognitive 26): prefetchProcessDetailsSummaryHint has cognitive complexity 26 (threshold 15). Drivers by points: if/else 12, boolean chains 8, ternaries 4, error handling 2. Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 4588, 4589, 4610, \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":"web/static/js/chat.js"},"region":{"startLine":4580}}}],"partialFingerprints":{"codehealthFindingId/v1":"82efb8d155728f86d4aaade66f93a346d336168efe6ee7f294211a9b97c6f47d"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSeverityDonut (cognitive 26): renderSeverityDonut has cognitive complexity 26 (threshold 15). Drivers by points: if/else 13 (17 pts), boolean chains 5, ternaries 3 (4 pts) (nesting depth added 5). Of this number, 17 points are the body\u0027s own statements and 9 belong to 5 function literals inside it that branch. To reduce it, split the body: 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":"web/static/js/dashboard.js"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"31bc88e0813c3e1f933534e10525fd9e07931ca1100ef325f8f4108ed0516a56"}},{"ruleId":"D2","level":"warning","message":{"text":"prepareSurface (cognitive 26): prepareSurface has cognitive complexity 26 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 8, ternaries 4 (7 pts) (nesting depth added 5). Of this number, 23 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/modal.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"1063bb86c442cbe9f91b1bdb73c40cc98c382d845c3314a24b14ac2551dd294e"}},{"ruleId":"D2","level":"warning","message":{"text":"loadAllToolsToStateMap (cognitive 26): loadAllToolsToStateMap has cognitive complexity 26 (threshold 15). Drivers by points: if/else 8 (15 pts), boolean chains 5, ternaries 1 (4 pts), error handling 1, loops 1 (nesting depth added 10). Most of this is not in the body itself: 7 of the 26 points are its own statements and the rest belongs to one function literal inside it that branches (line 1600). 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":"web/static/js/roles.js"},"region":{"startLine":1583}}}],"partialFingerprints":{"codehealthFindingId/v1":"b435f457a85c98843a23aa5ac4993bb1fff63b1bbaf6cad7d076841ebf5b4484"}},{"ruleId":"D2","level":"warning","message":{"text":"persistAIChannelsToServer (cognitive 26): persistAIChannelsToServer has cognitive complexity 26 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (8 pts), error handling 3 (5 pts), ternaries 1 (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3025}}}],"partialFingerprints":{"codehealthFindingId/v1":"836e39aad5d1ec939cee1d6ad39aa062d63ca9dc4ef7ecc2248a9223183bf016"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshVulnerabilityProjectFilter (cognitive 26): refreshVulnerabilityProjectFilter has cognitive complexity 26 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 7, ternaries 4 (6 pts), error handling 1 (nesting depth added 4). Of this number, 19 points are the body\u0027s own statements and 7 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":"web/static/js/vulnerability.js"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"970c06fd3921e256e9a95247c385736337efe267b34e32cb5f0e00cf8251899f"}},{"ruleId":"D2","level":"warning","message":{"text":"app.registerC2PayloadTool (cognitive 25): app.registerC2PayloadTool has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (21 pts), loops 1 (3 pts), match/switch 1 (nesting depth added 13). None of this is in the body itself: all 25 points belong to one function literal inside it that branches (line 557). 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":"internal/app/c2_tools.go"},"region":{"startLine":532}}}],"partialFingerprints":{"codehealthFindingId/v1":"68750c866d6853fc14f3f88a408d84eede2b7e014b7b831da7feaa496dbd8b1d"}},{"ruleId":"D2","level":"warning","message":{"text":"PayloadBuilder.BuildBeacon (cognitive 25): PayloadBuilder.BuildBeacon has cognitive complexity 25 (threshold 15). Drivers by points: if/else 20 (22 pts), boolean chains 1, loops 1, match/switch 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":"internal/c2/payload_builder.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"d60c9b3d607a5a4c7ea6fa755eed0a47c3799aba33093a9144d195951908690c"}},{"ruleId":"D2","level":"warning","message":{"text":"config.persistMCPAuth (cognitive 25): config.persistMCPAuth has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (23 pts), boolean chains 1, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1953}}}],"partialFingerprints":{"codehealthFindingId/v1":"6668f2b3779eec89d80a6a3307f11f553e5b14e7b69cf41842d267b92660468b"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.GetMessagesLite (cognitive 25): DB.GetMessagesLite has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (22 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"46d2a5861a7f2a7265436a9a207a8386451b664e226859df39ec2dc3557513e8"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.ListVulnerabilitiesByGroupForAccess (cognitive 25): DB.ListVulnerabilitiesByGroupForAccess has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (22 pts), boolean chains 1, loops 1, match/switch 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":"internal/database/vulnerability.go"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"a71d80203cdce2c67018663a372a001d681598b88d49d5dad146f641959b7941"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.transformHeaderSecrets (cognitive 25): handler.transformHeaderSecrets has cognitive complexity 25 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (3 pts), boolean chains 2 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config_header_secrets.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ba5e24c76a06361ed8cc57c8ee5e8c702c97006d648f2073991eb065b5b7bcc"}},{"ruleId":"D2","level":"warning","message":{"text":"C2Handler.ListTasks (cognitive 25): C2Handler.ListTasks has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 4 (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. This shape REPEATS in the file: one other method here (C2Handler.ListEvents) 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":"internal/handler/c2.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab3befd1c10b00e4e6caf4c7b4a7034a48854503e5ba86edafb9fb32f5c53f92"}},{"ruleId":"D2","level":"warning","message":{"text":"C2Handler.ListEvents (cognitive 25): C2Handler.ListEvents has cognitive complexity 25 (threshold 15). Drivers by points: if/else 13 (21 pts), boolean chains 4 (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. This shape REPEATS in the file: one other method here (C2Handler.ListTasks) 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":"internal/handler/c2.go"},"region":{"startLine":872}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a95eff1ef71cc02fc40575e328d3ef46b3cb62d16c6166cc06d596c86bb4a01"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalHandler.RunCommand (cognitive 25): TerminalHandler.RunCommand has cognitive complexity 25 (threshold 15). Drivers by points: if/else 18 (23 pts), boolean chains 2 (nesting depth added 5). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"internal/handler/terminal.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"2486ddcc19d7296684a3ae3adc521fda163e965cf89d0a2120a7a48d8e3aa0c8"}},{"ruleId":"D2","level":"warning","message":{"text":"VulnerabilityHandler.CreateRetest (cognitive 25): VulnerabilityHandler.CreateRetest has cognitive complexity 25 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 5 (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":"internal/handler/vulnerability_retest.go"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"07c4d1204bc42524ea585d5a260d7dd2e1a5090e91bd574060965180f09545cb"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalMCPManager.refreshToolCounts (cognitive 25): ExternalMCPManager.refreshToolCounts has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (19 pts), loops 6 (nesting depth added 9). Of this number, 16 points are the body\u0027s own statements and 9 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":1308}}}],"partialFingerprints":{"codehealthFindingId/v1":"73e72d8996f5b37336af6a25c2924c3d25fa02b2c70e6e7c0be050b1c3f147e9"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.ExecuteTool (cognitive 25): Executor.ExecuteTool has cognitive complexity 25 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 5, loops 1 (3 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"58871e7b88ae68eb7d05fe3b9d2d9ab33a491f7a15b219866b2ae18a66e4ee4a"}},{"ruleId":"D2","level":"warning","message":{"text":"service-worker.chrome.runtime.onMessage.addListener() (cognitive 25): service-worker.chrome.runtime.onMessage.addListener() has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 7). Of this number, 23 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b31612703ae2d65b850b149884e40990214ae791b085358f542bb58005d648"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderMcpStatsTimelineBody (cognitive 25): monitor.renderMcpStatsTimelineBody has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 16, ternaries 6, if/else 3. Of this number, 23 points are the body\u0027s own statements and 2 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":"web/static/js/monitor.js"},"region":{"startLine":8126}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4e8558d5c8cc0e9f21c220304935a104d5e483e322e06a8994e5059a198570b"}},{"ruleId":"D2","level":"warning","message":{"text":"wechat-robot.pollWechatBindStatus (cognitive 25): wechat-robot.pollWechatBindStatus has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (18 pts), boolean chains 5, error handling 1, 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":"web/static/js/wechat-robot.js"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"798c00bf5b65503317a3a6f32fab5014303f9dd073a7fc2018e7e0e8c6209436"}},{"ruleId":"D2","level":"warning","message":{"text":"chatSystemModelConfigState (cognitive 25): chatSystemModelConfigState has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, ternaries 6 (8 pts), if/else 4 (nesting depth added 2). Of this number, 20 points are the body\u0027s own statements and 5 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":"web/static/js/chat.js"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"50047b5075bbc67ca607a701d3d3adc0c4a5d27487abcf74ecf05080235027d2"}},{"ruleId":"D2","level":"warning","message":{"text":"renderMentionSuggestions (cognitive 25): renderMentionSuggestions has cognitive complexity 25 (threshold 15). Drivers by points: ternaries 14 (16 pts), if/else 5, boolean chains 4 (nesting depth added 2). Most of this is not in the body itself: 12 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 3152, 3198, 3197). 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":"web/static/js/chat.js"},"region":{"startLine":3125}}}],"partialFingerprints":{"codehealthFindingId/v1":"3658d96080c387c40e74cdb3a978bf4ea6f000637ee4929496bf1d5e6932881a"}},{"ruleId":"D2","level":"warning","message":{"text":"deleteRetrievalLog (cognitive 25): deleteRetrievalLog has cognitive complexity 25 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 5, error handling 2 (3 pts), ternaries 1 (nesting depth added 7). Of this number, 23 points are the body\u0027s own statements and 2 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":"web/static/js/knowledge.js"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff39a4b7fe9b30a90ed8fe5dd27ac9f767a6aa0f92cd9c5c53322583fa861d25"}},{"ruleId":"D2","level":"warning","message":{"text":"triggerLazyProcessDetailsLoad (cognitive 25): triggerLazyProcessDetailsLoad has cognitive complexity 25 (threshold 15). Drivers by points: if/else 9 (17 pts), ternaries 3 (6 pts), boolean chains 1, error handling 1 (nesting depth added 11). Most of this is not in the body itself: 8 of the 25 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 2527, 2515, 2537). 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":"web/static/js/monitor.js"},"region":{"startLine":2500}}}],"partialFingerprints":{"codehealthFindingId/v1":"b150d47d1ae0052504ab126e38c3019757c6f16847409fe5d74e8b6a5b58ced4"}},{"ruleId":"D2","level":"warning","message":{"text":"getToolResultDisplayState (cognitive 25): getToolResultDisplayState has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 13, if/else 9 (11 pts), ternaries 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5930}}}],"partialFingerprints":{"codehealthFindingId/v1":"87b463d0065b2e6d5804ba6baeff7084aee8dcef9cf439ce334b3cc203e928fc"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshMonitorPanel (cognitive 25): refreshMonitorPanel has cognitive complexity 25 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 5 (9 pts), boolean chains 5, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7365}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d1186f5f63bc46f3535da5b803295d8bbf6dd0083805c615c85f4eb2f12e7df"}},{"ruleId":"D2","level":"warning","message":{"text":"applyWebshellDetectedOS (cognitive 25): applyWebshellDetectedOS has cognitive complexity 25 (threshold 15). Drivers by points: boolean chains 10, if/else 7 (9 pts), error handling 2 (4 pts), 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":"web/static/js/webshell.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"05070d244aa61df255cd8378422dfba539f2bbc65c0a1cb1d7117b16ff376ae7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 25): (anonymous) has cognitive complexity 25 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 7). Of this number, 23 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"3077d791fabc5c85615ab0d474a9b0a16b8c8c90b51332d3fac712c5aa027ced"}},{"ruleId":"D2","level":"warning","message":{"text":"app.registerC2TaskManageTool (cognitive 24): app.registerC2TaskManageTool has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (17 pts), match/switch 2 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 13). None of this is in the body itself: all 24 points belong to one function literal inside it that branches (line 464). 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":"internal/app/c2_tools.go"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"298d2a26ba6c95e7edf1bdf2552d7ae18651a1beeeab78a7e6cd1f06dc9927f2"}},{"ruleId":"D2","level":"warning","message":{"text":"TCPReverseListener.handleShellConn (cognitive 24): TCPReverseListener.handleShellConn has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 10). Of this number, 22 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_tcp.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"63a1c88bc4b88fbf25d9a178f03e079ae3b88da48616fb0cdfe9f57af1c9a82d"}},{"ruleId":"D2","level":"warning","message":{"text":"database.matchToolExecutionIndex (cognitive 24): database.matchToolExecutionIndex has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (17 pts), loops 3 (6 pts), boolean chains 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1714}}}],"partialFingerprints":{"codehealthFindingId/v1":"9478804ce245ed5599338e973a082e098bad62c75747992ac8aa8831f6dcc482"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.AssignResourcesToUser (cognitive 24): DB.AssignResourcesToUser has cognitive complexity 24 (threshold 15). Drivers by points: if/else 14 (20 pts), loops 3, boolean chains 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22ef51fa57f78d44ce1c7fd12bc6faf8a603244083651ab2061e3910dbde05d"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.updateRolesConfig (cognitive 24): handler.updateRolesConfig has cognitive complexity 24 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 4 (12 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"65c2f42e1696ec23432a13cbb7c3e4e7dafae9c15fa79789d4bae60f4a00f0f8"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.submitAgentRunWithExecutor (cognitive 24): AgentHandler.submitAgentRunWithExecutor has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/async_agent_runs.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"95d472e52c87c32822e6999848d5e762d9d8be00a4dd51571d2270a581d40a34"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.waitHITLApproval (cognitive 24): AgentHandler.waitHITLApproval has cognitive complexity 24 (threshold 15). Drivers by points: if/else 13 (18 pts), boolean chains 3, match/switch 1 (3 pts) (nesting depth added 7). Of this number, 19 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":"internal/handler/hitl.go"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"493c6f9bdffbda5af53a78c8b2f3856e97a778d78295d1f4d181e035c88c4baf"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTaskManager.UpdateTaskStatusWithConversationID (cognitive 24): BatchTaskManager.UpdateTaskStatusWithConversationID has cognitive complexity 24 (threshold 15). Drivers by points: if/else 9 (21 pts), boolean chains 2, loops 1 (nesting depth added 12). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":653}}}],"partialFingerprints":{"codehealthFindingId/v1":"93062f16b4fe83cf5b4234a5c9d1fe232b9f32fe9593cc44625a0b6ff6a81785"}},{"ruleId":"D2","level":"warning","message":{"text":"update.scanAdoption (cognitive 24): update.scanAdoption has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (18 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":"internal/update/adopt.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"faa8cacf67286f67f973ce676a8c183e3591eaf48ef7224a7dc9eb80ecde9aaf"}},{"ruleId":"D2","level":"warning","message":{"text":"CyberStrikeAITab.wireActions (cognitive 24): CyberStrikeAITab.wireActions has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 3, error handling 2, ternaries 2, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc514b0f6b0341bc218a3a24799c3d74d5d1e67879f099f4c5c2b6a26e60cfd7"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.assetExportRows (cognitive 24): assets.assetExportRows has cognitive complexity 24 (threshold 15). Drivers by points: boolean chains 24. None of this is in the body itself: all 24 points belong to one function literal inside it that branches (line 1022). 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":"web/static/js/assets.js"},"region":{"startLine":1021}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eb032f9693e9f60b2cb0df9716e4604a5146deb9cffb50f0d2671ce33cc374a"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.enhanceSessionSettingsSelect (cognitive 24): chat.enhanceSessionSettingsSelect has cognitive complexity 24 (threshold 15). Drivers by points: if/else 16 (17 pts), boolean chains 6, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 6 of the 24 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 266, 297, 257). 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":"web/static/js/chat.js"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"786967d1cc7942dfb6258ef8e17bb1a8fe90d425d4a88f833d94f9989d36e5c6"}},{"ruleId":"D2","level":"warning","message":{"text":"info-collect.bindFofaTableEvents (cognitive 24): info-collect.bindFofaTableEvents has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7, ternaries 2 (nesting depth added 5). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1364, 1390). 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":"web/static/js/info-collect.js"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"932e5a6899a930807ced413823820d05c1ab081f37638e807bc9eb1453d1c864"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.setHitlApprovalInterruptedVisualState (cognitive 24): monitor.setHitlApprovalInterruptedVisualState has cognitive complexity 24 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 9 (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":"web/static/js/monitor.js"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5683e384141785e6f252f94924f5baee26ff4b572398348eb58ea888badf643"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.parseProjectDate (cognitive 24): projects.parseProjectDate has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 8, ternaries 2 (4 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dd19b134f2519f1b331c585f8286e0c737821002497a925f378cc29e4846811"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.switchSettingsSection (cognitive 24): settings.switchSettingsSection has cognitive complexity 24 (threshold 15). Drivers by points: if/else 15 (17 pts), boolean chains 5, ternaries 1 (2 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"a018317b57040339a6e03d224a4b8179bf41fcd2b39583e2b6547952a9872ecb"}},{"ruleId":"D2","level":"warning","message":{"text":"tasks.getBatchQueueStatusPresentation (cognitive 24): tasks.getBatchQueueStatusPresentation has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 6 (11 pts), boolean chains 9, if/else 4 (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":"web/static/js/tasks.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d6f40454e346b088a4cfc23da4b395184e9d82ecc07c7e92fcbe9ab02a0ad81"}},{"ruleId":"D2","level":"warning","message":{"text":"webshell.parseWebshellDbTableColumns (cognitive 24): webshell.parseWebshellDbTableColumns has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 8, ternaries 2 (3 pts), loops 1 (nesting depth added 5). Of this number, 21 points are the body\u0027s own statements and 3 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":"web/static/js/webshell.js"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b39f870d97ce9cd5a932821856caabd26dca4993c8ef7c6b5d17c75c45777b"}},{"ruleId":"D2","level":"warning","message":{"text":"webshell.normalizeWebshellDbSchema (cognitive 24): webshell.normalizeWebshellDbSchema has cognitive complexity 24 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 7, ternaries 2 (4 pts) (nesting depth added 7). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 2072, 2084, 2077, \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":"web/static/js/webshell.js"},"region":{"startLine":2069}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c235b5bbd0eeb61fabfa42c074f37ae56e983c967a1d9f8a9e48b18fb170869"}},{"ruleId":"D2","level":"warning","message":{"text":"renderFofaResults (cognitive 24): renderFofaResults has cognitive complexity 24 (threshold 15). Drivers by points: ternaries 12, if/else 6 (7 pts), boolean chains 5 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 8 belong to 5 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":"web/static/js/info-collect.js"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"874b5218d4073f43e58de19966096d21a4bb23d2f034ebbcbf1fd144ffcb7458"}},{"ruleId":"D2","level":"warning","message":{"text":"updateToolsStats (cognitive 24): updateToolsStats has cognitive complexity 24 (threshold 15). Drivers by points: if/else 7 (13 pts), ternaries 3 (7 pts), boolean chains 2, error handling 1, other 1 (nesting depth added 10). Most of this is not in the body itself: 10 of the 24 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 1871, a function literal at line 1855, t). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"47b3dbab3526cf031f068e2ffcebca3f414d6d2c16a3b2310128d98bbb398206"}},{"ruleId":"D2","level":"warning","message":{"text":"toggleWorkflowEnabled (cognitive 24): toggleWorkflowEnabled has cognitive complexity 24 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 5, error handling 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f20d1cb42ec4220fb758c04d0a9285e8d9bd2d53331ec9c93ea4966a191f98"}},{"ruleId":"D2","level":"warning","message":{"text":"app.registerWebshellTools (cognitive 23): app.registerWebshellTools has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15, boolean chains 8. 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 1560, 1660, 1627, \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":"internal/app/app.go"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"804eaa6ac907a515126f50861dbedf4951161b004abcd81dbd80369d02426272"}},{"ruleId":"D2","level":"warning","message":{"text":"Service.Record (cognitive 23): Service.Record has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (18 pts), boolean chains 5 (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":"internal/audit/service.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"40c17847338ec1cfe684176b468d89a5ad8619f3520b1f1e8c8b8d31d9e69590"}},{"ruleId":"D2","level":"warning","message":{"text":"database.columnDefinitions (cognitive 23): database.columnDefinitions has cognitive complexity 23 (threshold 15). Drivers by points: if/else 9 (17 pts), match/switch 2 (4 pts), boolean chains 1, loops 1 (nesting depth added 10). Of this number, 15 points are the body\u0027s own statements and 8 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":"internal/database/schema_reconcile.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acc14fa0311f92bdf3b11c228359af58a97cd846ddfaac5876e465a548ec78c"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.batchQueueSchedulerLoop (cognitive 23): AgentHandler.batchQueueSchedulerLoop has cognitive complexity 23 (threshold 15). Drivers by points: if/else 5 (17 pts), boolean chains 3, loops 2 (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":"internal/handler/agent.go"},"region":{"startLine":2470}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ee707196577f69b4974dffc83730005d9cf254cef45d7886ac40e841af504ca"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.runMultiJSON (cognitive 23): AgentHandler.runMultiJSON has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (21 pts), boolean chains 1, 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":"internal/handler/agent_multi_json_runner.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"e45461cc04d42aff28bb1145ab75bafde46e4c2df25df9058b9f4397d0ca6d2d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationHandler.GetMessageProcessDetails (cognitive 23): ConversationHandler.GetMessageProcessDetails has cognitive complexity 23 (threshold 15). Drivers by points: if/else 15 (20 pts), boolean chains 3 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/conversation.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad65e6ef1fdadb6f1a7cebbca3aac771dfe60915358a94d44df6966ef15c8ae2"}},{"ruleId":"D2","level":"warning","message":{"text":"RobotHandler.HandleWecomPOST (cognitive 23): RobotHandler.HandleWecomPOST has cognitive complexity 23 (threshold 15). Drivers by points: if/else 19 (21 pts), boolean chains 2 (nesting depth added 2). Of this number, 22 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, 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":"internal/handler/robot.go"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"38302cbde0dcfca9da63773ad7aabe3214c3f847a2d8c3d69fac8d21aa00c06a"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentTaskManager.FinishTaskRun (cognitive 23): AgentTaskManager.FinishTaskRun has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 6, match/switch 1 (2 pts) (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/task_manager.go"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32cae22f83be4c4bf383dedbac724eb0646de59f936e04feea1d32bc4ce511d"}},{"ruleId":"D2","level":"warning","message":{"text":"WebShellHandler.FileOp (cognitive 23): WebShellHandler.FileOp has cognitive complexity 23 (threshold 15). Drivers by points: if/else 16 (20 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":"internal/handler/webshell.go"},"region":{"startLine":854}}}],"partialFingerprints":{"codehealthFindingId/v1":"b51b6390f400a676ef9cfbb2bd6ad52abfc057c8e9da8bb4fc50e387e3e0a227"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowHandler.ResumeRun (cognitive 23): WorkflowHandler.ResumeRun has cognitive complexity 23 (threshold 15). Drivers by points: if/else 14 (19 pts), boolean chains 2, loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_run.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"49dcdb60fbaf869e8b20792a7e8512906c53c728e8e226bd7612b06a41341b5e"}},{"ruleId":"D2","level":"warning","message":{"text":"storage.scanDatedSessionDirs (cognitive 23): storage.scanDatedSessionDirs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (20 pts), loops 2 (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":"internal/storage/category.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fe5f6b43922492e3518d09fa23f040710e3c8b915533931f5402be6728db6c"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.validateNodeTopology (cognitive 23): workflow.validateNodeTopology has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (20 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 13). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/validation.go"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c9cbe1033e74ccf40c89872cb157f66efd5e181dcce09b08b079f99101f1f1d"}},{"ruleId":"D2","level":"warning","message":{"text":"hitl.hitlAuditEngineFromItem (cognitive 23): hitl.hitlAuditEngineFromItem has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 10, if/else 6 (8 pts), ternaries 3 (5 pts) (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e8d78695d2b3c245f2b78fe8baae2e6937386400e36f341597b62f50d488b7"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderMcpStatsCombinedSection (cognitive 23): monitor.renderMcpStatsCombinedSection has cognitive complexity 23 (threshold 15). Drivers by points: ternaries 9 (10 pts), boolean chains 9, if/else 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":"web/static/js/monitor.js"},"region":{"startLine":8174}}}],"partialFingerprints":{"codehealthFindingId/v1":"30558880e29ed9ed09a1c61c25904d2a8180d2007e32a1f1f1b9a14dacd3e82e"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.saveProjectModal (cognitive 23): projects.saveProjectModal has cognitive complexity 23 (threshold 15). Drivers by points: if/else 12 (16 pts), boolean chains 5, error handling 1, ternaries 1 (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d91c27e725800885f24d07f973b8598775d8cffbc7d4e70f5396899519dc27"}},{"ruleId":"D2","level":"warning","message":{"text":"terminal.switchTerminalTab (cognitive 23): terminal.switchTerminalTab has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (13 pts), error handling 2 (6 pts), boolean chains 3, ternaries 1 (nesting depth added 11). Most of this is not in the body itself: 9 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 313, 300). 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":"web/static/js/terminal.js"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2f224d62bd713e867f4503db1685e387f318fccf827734a38f6d51391d55741"}},{"ruleId":"D2","level":"warning","message":{"text":"loadAuditLogs (cognitive 23): loadAuditLogs has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 4 (7 pts), boolean chains 5, error handling 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fe7f5f49db6cf87ead5aa0bbc2dd54aa7141ec5975664b5896de18e31a68c0d"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSessions (cognitive 23): renderSessions has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (7 pts), ternaries 6 (7 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"460c90f035937c1a3d43a7fccd64738ac8aef4b32294f02cb4421c8db3c86c0d"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSessionDetail (cognitive 23): renderSessionDetail has cognitive complexity 23 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 8, boolean chains 7 (nesting depth added 1). Of this number, 17 points are the body\u0027s own statements and 6 belong to 8 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"04892f81cf1c97e3ed2ee18b054e8fa770e5de15aa4a785f8b2f671e17f57abe"}},{"ruleId":"D2","level":"warning","message":{"text":"performHardCancelProgressTask (cognitive 23): performHardCancelProgressTask has cognitive complexity 23 (threshold 15). Drivers by points: if/else 6 (9 pts), ternaries 4 (9 pts), boolean chains 4, error handling 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"36780eb65dae7a366869907bf4ec145349445cb4138bda9a9bd710fcd11dfba0"}},{"ruleId":"D2","level":"warning","message":{"text":"loadProjectAssets (cognitive 23): loadProjectAssets has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 12, if/else 7 (8 pts), ternaries 3 (nesting depth added 1). Of this number, 16 points are the body\u0027s own statements and 7 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d3e4b0ce63cd1eb7632e52e35f0abdfb4c9dfa2698a8a0b2ed19efac811d06"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRows (cognitive 23): renderRows has cognitive complexity 23 (threshold 15). Drivers by points: boolean chains 8, ternaries 8, if/else 5 (7 pts) (nesting depth added 2). Most of this is not in the body itself: 6 of the 23 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 149, 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":"web/static/js/storage.js"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ee72eb1170edc7725d51610ef0695d2db8d0fe9856009defd7e384e7f75af4b"}},{"ruleId":"D2","level":"warning","message":{"text":"populateVulnerabilityModalProjectSelect (cognitive 23): populateVulnerabilityModalProjectSelect has cognitive complexity 23 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 2 (6 pts), boolean chains 4, error handling 1 (nesting depth added 8). Of this number, 19 points are the body\u0027s own statements and 4 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe186058f9b08b5e31f4d074d4ddb608c7f7c1d6782a5501d6d5b1d155e79c4e"}},{"ruleId":"D2","level":"warning","message":{"text":"c2.ValidateBeaconDialHost (cognitive 22): c2.ValidateBeaconDialHost has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 8, loops 3 (4 pts) (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/beacon_host.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d1f59c95417bd98d3aa272d08edefceb71306a6214e357f96af2d92d9035855"}},{"ruleId":"D2","level":"warning","message":{"text":"config.EnsureLocalConfig (cognitive 22): config.EnsureLocalConfig has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1890}}}],"partialFingerprints":{"codehealthFindingId/v1":"6630838185c31550575097729bb8745f5e0cea7525a670043579deebf749f5c1"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.startBatchQueueExecution (cognitive 22): AgentHandler.startBatchQueueExecution has cognitive complexity 22 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":2409}}}],"partialFingerprints":{"codehealthFindingId/v1":"f06e485f71394dc690f3ece272e1c1b8a6b3a58830484d4d3701710a96ba88cb"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.taskFinishingEventSender (cognitive 22): AgentHandler.taskFinishingEventSender has cognitive complexity 22 (threshold 15). Drivers by points: if/else 6 (14 pts), loops 2 (7 pts), boolean chains 1 (nesting depth added 13). None of this is in the body itself: all 22 points belong to one function literal inside it that branches (line 28). 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":"internal/handler/task_lifecycle.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7931970ef481f96edf1ff6319825dcc829e053832327094ed952a6b86c12e29"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigHandler.saveConfig (cognitive 22): ConfigHandler.saveConfig has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (20 pts), loops 1 (2 pts) (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":2064}}}],"partialFingerprints":{"codehealthFindingId/v1":"23db7c74cfbfffa602608d569ae2d89c9dc34381f29d1ee0197d88d35831e49a"}},{"ruleId":"D2","level":"warning","message":{"text":"MarkdownAgentsHandler.UpdateMarkdownAgent (cognitive 22): MarkdownAgentsHandler.UpdateMarkdownAgent has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (20 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, 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":"internal/handler/markdown_agents.go"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0027d8414ce5a284a4ec5c9efaee4691765cbc9358ff7c83306ac9c51d12587"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledge.truncateDocumentsByBudget (cognitive 22): knowledge.truncateDocumentsByBudget has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/retrieval_postprocess.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa30885ea6bdd3f0f4602e4502d961c5841a33040366cc32f6193f2be7a246f1"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.GetAllExecutions (cognitive 22): Server.GetAllExecutions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 4 (10 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":"internal/mcp/server.go"},"region":{"startLine":849}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb2afa2a2f0d3ca2d31074fe6ee6e3535ce44eaa492abb23474a4ed2ef080c43"}},{"ruleId":"D2","level":"warning","message":{"text":"modelmeta.detectLMStudio (cognitive 22): modelmeta.detectLMStudio has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 3, loops 2 (3 pts) (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/modelmeta/context.go"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"02ccaaf12bb82fbfad0f41d8ed53ecc7d2d4bf1cf13ad0217c56dee46fd1672d"}},{"ruleId":"D2","level":"warning","message":{"text":"modelmeta.detectOpenAICompatible (cognitive 22): modelmeta.detectOpenAICompatible has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (15 pts), match/switch 2 (4 pts), boolean chains 2, 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":"internal/modelmeta/context.go"},"region":{"startLine":356}}}],"partialFingerprints":{"codehealthFindingId/v1":"82054d0d30962114d268368e966656ccd2f4c73092085a2dd2344a801fd18d87"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.claudeNativeChatCompletionStream (cognitive 22): Client.claudeNativeChatCompletionStream has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (20 pts), boolean chains 1, loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/claude_native.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab0cdbae345238f8b33bf1e8aa103c365b6461d80042e640b41a83874bd3da5"}},{"ruleId":"D2","level":"warning","message":{"text":"project.BuildFactIndexBlock (cognitive 22): project.BuildFactIndexBlock has cognitive complexity 22 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 1, 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."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/blackboard.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d70e4d3664fcd0ee8ac7ffb04cd244294ee28762a97b8d32ede192d5360d0b9"}},{"ruleId":"D2","level":"warning","message":{"text":"project.extractBodySyncLinksBlock (cognitive 22): project.extractBodySyncLinksBlock has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (16 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":"internal/project/fact_body_links.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ecd88d9d88c7564565f3036e8b8319b96b0ed10a972b855c64e56527198ca7d"}},{"ruleId":"D2","level":"warning","message":{"text":"security.startShellSessionContext (cognitive 22): security.startShellSessionContext has cognitive complexity 22 (threshold 15). Drivers by points: if/else 14 (21 pts), boolean chains 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/process_scope.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"b99c05b6f40191c708fc541c57305bc1b8c6eca785818ce900080378616484bb"}},{"ruleId":"D2","level":"warning","message":{"text":"security.permissionForRequest (cognitive 22): security.permissionForRequest has cognitive complexity 22 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 5, match/switch 1 (nesting depth added 8). 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":"internal/security/rbac_middleware.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"495b7447872eb69a0dd758c6faa206368c0297f0d76d180355ae45aa4d273fbe"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.buildInputSchema (cognitive 22): Executor.buildInputSchema has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (20 pts), loops 1 (2 pts) (nesting depth added 14). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":1402}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86ef4f6762cb38d66af7a19921175fac4c46f6b3cefe072c6e1a65879f12a06"}},{"ruleId":"D2","level":"warning","message":{"text":"update.stashProtectedEdits (cognitive 22): update.stashProtectedEdits has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (17 pts), loops 4, 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":"internal/update/apply.go"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"07d45f73a1d01019b2ecf1b750388533de8d0da4b7283f7ab818d2c3b823eab7"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.resolveBinding (cognitive 22): workflow.resolveBinding has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 7 (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":"internal/workflow/bindings.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d2ba4fc107c6ff93eeb134b31f60aaed77936c0591245772d88a724ce5ca83e"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-plan-progress.fetchPlanTasks (cognitive 22): chat-plan-progress.fetchPlanTasks has cognitive complexity 22 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6, ternaries 2 (4 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":"web/static/js/chat-plan-progress.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"9786ad8e8f427aa36d309dfec60c6da48b406adfcc908802f2802dc2f730a5f7"}},{"ruleId":"D2","level":"warning","message":{"text":"mobile-ui.enableSelectionPanelSwipe (cognitive 22): mobile-ui.enableSelectionPanelSwipe has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 9, loops 1, ternaries 1 (nesting depth added 1). None of this is in the body itself: all 22 points belong to 4 function literals inside it that branch (lines 302, 316, 327, \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":"web/static/js/mobile-ui.js"},"region":{"startLine":291}}}],"partialFingerprints":{"codehealthFindingId/v1":"f03ee2b5a7b8ce220a8e8326f7494d02ebbdf356d1fcbe14316e1df3062436c6"}},{"ruleId":"D2","level":"warning","message":{"text":"loadActiveTasks (cognitive 22): loadActiveTasks has cognitive complexity 22 (threshold 15). Drivers by points: if/else 5 (7 pts), boolean chains 5, error handling 4 (5 pts), ternaries 2 (5 pts) (nesting depth added 6). 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 6939, 6943, 6945, \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":"web/static/js/monitor.js"},"region":{"startLine":6936}}}],"partialFingerprints":{"codehealthFindingId/v1":"537543db1341598dbd68b5dd96803f5c5a1e6c1cd51fc9b236b52e1fef3061f3"}},{"ruleId":"D2","level":"warning","message":{"text":"initChatProjectSelector (cognitive 22): initChatProjectSelector has cognitive complexity 22 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 4, error handling 2 (4 pts), ternaries 1 (3 pts) (nesting depth added 8). Most of this is not in the body itself: 3 of the 22 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 4045, 4064, 4056, \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":"web/static/js/projects.js"},"region":{"startLine":4040}}}],"partialFingerprints":{"codehealthFindingId/v1":"5acd1b8bff45d0c3ab4d21912bafa67661b177749e1fac2f322e2e3727beced8"}},{"ruleId":"D2","level":"warning","message":{"text":"wsRenderRoleList (cognitive 22): wsRenderRoleList has cognitive complexity 22 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 4 (8 pts), boolean chains 3, 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":"web/static/js/webshell.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc60366a26951f3af8efde8f914b7ca434997c592ccc457884eae5960beb1ed3"}},{"ruleId":"D2","level":"warning","message":{"text":"renderWebshellTerminalSessions (cognitive 22): renderWebshellTerminalSessions has cognitive complexity 22 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 8, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 4 of the 22 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1604, 1594, 1603, \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":"web/static/js/webshell.js"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdc9a97be894f93b82c5dab88d8e9e2b966c8a3f4465d533bd1caa0de325694"}},{"ruleId":"D2","level":"warning","message":{"text":"Agent.executeToolViaMCP (cognitive 21): Agent.executeToolViaMCP has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 5, loops 1 (nesting depth added 4). Of this number, 19 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agent/agent.go"},"region":{"startLine":533}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a336d3f079d6293f4733e05b25eb28284cf1ebb63dfab8f7a0dfc0a3fdc863b"}},{"ruleId":"D2","level":"warning","message":{"text":"C2HITLBridge.RequestApproval (cognitive 21): C2HITLBridge.RequestApproval has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (15 pts), match/switch 2 (5 pts), loops 1 (nesting depth added 11). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_hitl_bridge.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d8e58fa6184498661a31f54f377ffa784d86c6af5c5072c9e4cff318150971a"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPBeaconListener.handleCheckIn (cognitive 21): HTTPBeaconListener.handleCheckIn has cognitive complexity 21 (threshold 15). Drivers by points: if/else 18 (20 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_http.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"357a6fd9cf73dd7ee813e52a87ec12425687e703d1c8f305b7506195c8c2a8a8"}},{"ruleId":"D2","level":"warning","message":{"text":"config.LoadRoleFromFile (cognitive 21): config.LoadRoleFromFile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (18 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":2242}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc2c81d7fbf34a48f932b328c7defa9d8003e5d2b5f38f3b1d85ffc9f7732ff9"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.GetToolExecutionsByIds (cognitive 21): DB.GetToolExecutionsByIds has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (18 pts), loops 2, 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":"internal/database/monitor.go"},"region":{"startLine":743}}}],"partialFingerprints":{"codehealthFindingId/v1":"01287157734c60f6f39cbc1ccf1ad76fbae3111955a1343852f0b6a5a6b51926"}},{"ruleId":"D2","level":"warning","message":{"text":"ProjectHandler.ListFacts (cognitive 21): ProjectHandler.ListFacts has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 4, loops 2 (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":"internal/handler/project.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa58e56d4ed6703535ffe7fddac9f99a918050a13c8fed4377b047baf5b6f94"}},{"ruleId":"D2","level":"warning","message":{"text":"RobotHandler.getOrCreateConversation (cognitive 21): RobotHandler.getOrCreateConversation has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (17 pts), boolean chains 4 (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":"internal/handler/robot.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"d134178df95e713430c5a2b35112298c76ae9896c2e8f515db74dd1b7d760f05"}},{"ruleId":"D2","level":"warning","message":{"text":"ExecutionService.Submit (cognitive 21): ExecutionService.Submit has cognitive complexity 21 (threshold 15). Drivers by points: if/else 16 (20 pts), boolean chains 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":"internal/mcp/execution_service.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b87ba736656bed037776c78cd8a1326a3c3ab938fdd7bbd6090b6d5f6002ccc"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalMCPManager.GetToolStats (cognitive 21): ExternalMCPManager.GetToolStats has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (15 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"316e656623dfe54ae33587cb07d64dfa4ada23cf4b9ae5b3ea77489957d0c7a7"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalMCPManager.StartAllEnabled (cognitive 21): ExternalMCPManager.StartAllEnabled has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (16 pts), boolean chains 3, loops 2 (nesting depth added 10). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to one function literal inside it that branches (line 1584). 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":"internal/mcp/external_manager.go"},"region":{"startLine":1574}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0e8c8b5af0685b5fda4e59405790b93c02069c701aa6ecd83e8e7bc93250f12"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.generateToolDocumentation (cognitive 21): Server.generateToolDocumentation has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (17 pts), loops 1 (4 pts) (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":"internal/mcp/server.go"},"region":{"startLine":1600}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a2970d17adcf54cde1aea0f812a6269ccedf803e3f338b0973097cc5acdfa4a"}},{"ruleId":"D2","level":"warning","message":{"text":"piRun.piLocalCatalog (cognitive 21): piRun.piLocalCatalog has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_local_tools.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc9e78e7420dd32a9b62ddf57fe260d7d746e315e8c323fcea454d65f714a99b"}},{"ruleId":"D2","level":"warning","message":{"text":"project.buildResumeSection (cognitive 21): project.buildResumeSection has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 3 (4 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":"internal/project/resume.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f397975a7818644ac1930812278a2ee7b4844e8aca3327595862a74459a5342"}},{"ruleId":"D2","level":"warning","message":{"text":"security.streamShellForeground (cognitive 21): security.streamShellForeground has cognitive complexity 21 (threshold 15). Drivers by points: if/else 10 (15 pts), match/switch 2 (4 pts), loops 2 (nesting depth added 7). Of this number, 12 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":"internal/security/shell_execute_stream.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91abb5b129997e8780933f6e181283d3724036a5953d2c666335fdc239829e2"}},{"ruleId":"D2","level":"warning","message":{"text":"toolguard.Compile (cognitive 21): toolguard.Compile has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 3, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/toolguard/toolguard.go"},"region":{"startLine":78}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf6ecf644698c4ed4aeaf81d284eebc897ed121b9ba08858667419cb4169f32"}},{"ruleId":"D2","level":"warning","message":{"text":"update.recoverAdoption (cognitive 21): update.recoverAdoption has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 2, 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":"internal/update/adopt.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8eecc160306813bc84dc68cb646a56819e5eec4642f6bdb502d471a88ecb922"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.normalizeLLMNodeConfig (cognitive 21): workflow.normalizeLLMNodeConfig has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (19 pts), boolean chains 1, match/switch 1 (nesting depth added 10). 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":"internal/workflow/draft_generator.go"},"region":{"startLine":513}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2b31bc77ac875de95375fdf2e03fba5f1ca376068695c6baf77dda6577646b"}},{"ruleId":"D2","level":"warning","message":{"text":"http-normalize.normalizeRequestBlock (cognitive 21): http-normalize.normalizeRequestBlock has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (12 pts), boolean chains 8, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/http-normalize.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"483990678f52cfc4b4e45ac54e200677eb7ecaa463e4a2856708efa984636918"}},{"ruleId":"D2","level":"warning","message":{"text":"c2.c2ProjectDisplayName (cognitive 21): c2.c2ProjectDisplayName has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 10 (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":"web/static/js/c2.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"ceb3656ff8dc382fe972a98ae903b960ec7ac5c7be47a2c52144c1b552daa3fe"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-files.submitChatFilesMkdir (cognitive 21): chat-files.submitChatFilesMkdir has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 4 (5 pts), boolean chains 4, error handling 2 (3 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"f57a1a8dcbea307b8342365d919bc2b7d00267245dfb96f1b4e9d76a49ff923b"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-plan-progress.handlePlanToolEvent (cognitive 21): chat-plan-progress.handlePlanToolEvent has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 8, ternaries 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-plan-progress.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"a099d291e0cd2c09505fc19e29712ec698fb9d8560238df3fc78702916ce4a5f"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.regenerateAttackChain (cognitive 21): chat.regenerateAttackChain has cognitive complexity 21 (threshold 15). Drivers by points: if/else 12 (18 pts), boolean chains 2, error handling 1 (nesting depth added 6). Of this number, 18 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":8208}}}],"partialFingerprints":{"codehealthFindingId/v1":"611e1f6f9b9087d3bfdc0684c28860e9b5fd6e38ea3466a550df4a81e2c2cb17"}},{"ruleId":"D2","level":"warning","message":{"text":"chat._acWrapLabel (cognitive 21): chat._acWrapLabel has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (4 pts), boolean chains 1, ternaries 1 (nesting depth added 8). Of this number, 20 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":8327}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b385f46077127f13b3dc4e0f1e9d39fb68a991ff7ed8adc23d1b9b220ce4ddc"}},{"ruleId":"D2","level":"warning","message":{"text":"chat._acCollectExportData (cognitive 21): chat._acCollectExportData has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, if/else 6, ternaries 2. Most of this is not in the body itself: 1 of the 21 points is its own statement and the rest belongs to 2 function literals inside it that branch (lines 8406, 8436). 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":"web/static/js/chat.js"},"region":{"startLine":8403}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5cea66b1d234d10cd1b346cd519f33f2d3aa04efe91fa50eb5ec1ca3afdaa5"}},{"ruleId":"D2","level":"warning","message":{"text":"fact-graph.wrapTextLines (cognitive 21): fact-graph.wrapTextLines has cognitive complexity 21 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, loops 3 (5 pts), ternaries 1 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/fact-graph.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7da0272729e9b92968a4f50500fa926f10f0bba8ed9278dd1d7c290edf75ad05"}},{"ruleId":"D2","level":"warning","message":{"text":"fact-graph.resolveGraphNodeType (cognitive 21): fact-graph.resolveGraphNodeType has cognitive complexity 21 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 5 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/fact-graph.js"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"33cb4abaaf0c987477d113a45cad11f86e96c4d94bb8229553202847a0af0573"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderInlineHitlApproval (cognitive 21): monitor.renderInlineHitlApproval has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 8, ternaries 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4467}}}],"partialFingerprints":{"codehealthFindingId/v1":"67b17b692f263c4b51886e331560cc7903f5db91270d46013929acb969589d2a"}},{"ruleId":"D2","level":"warning","message":{"text":"router.initRouter (cognitive 21): router.initRouter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (13 pts), ternaries 2 (5 pts), boolean chains 3 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/router.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"964bc32d861ead14cf4429e27807ccd52dde91d15ea012f40e879f395bfb6e06"}},{"ruleId":"D2","level":"warning","message":{"text":"tasks.startInlineEditRole (cognitive 21): tasks.startInlineEditRole has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 7, ternaries 3 (nesting depth added 4). Most of this is not in the body itself: 2 of the 21 points are its own statements and the rest belongs to 7 function literals inside it that branch (lines 2586, 2589, 2589, \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":"web/static/js/tasks.js"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"d949082194ed55144623cf27faeb3cf208406dca67a01c69bb369b61f97cec89"}},{"ruleId":"D2","level":"warning","message":{"text":"webshell.selectWebshell::applyActiveDbProfileToForm (cognitive 21): webshell.selectWebshell::applyActiveDbProfileToForm has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 11, if/else 10. 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 (webshell.selectWebshell) 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":"web/static/js/webshell.js"},"region":{"startLine":2876}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd655c6af5240096a70fd7eca040fd83d5f056caf24f396b700921710bb6ff11"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.syncWorkflowMetaIdField (cognitive 21): workflows.syncWorkflowMetaIdField has cognitive complexity 21 (threshold 15). Drivers by points: if/else 11 (19 pts), boolean chains 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":"web/static/js/workflows.js"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ce381aaa9143cafa7c197be7f41f30b4eae709b6cb7ccbc331200792c4d2e86"}},{"ruleId":"D2","level":"warning","message":{"text":"saveMarkdownAgent (cognitive 21): saveMarkdownAgent has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), ternaries 3, error handling 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/agents.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f174834ee559102a4b9557dd6847bd720121085e67f8b889e31a9e4eef57c60"}},{"ruleId":"D2","level":"warning","message":{"text":"uploadFileToImplant (cognitive 21): uploadFileToImplant has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 10, if/else 9, error handling 1, ternaries 1. Most of this is not in the body itself: 7 of the 21 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 3031, a function literal at line 3022, a function literal at line 3045, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2987}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c4b7cfb5c1e821c038c97bc93f9f8fcaf048b63b27448faeeff4c3d31ed74b7"}},{"ruleId":"D2","level":"warning","message":{"text":"isAnonymousTaskFragmentToolCallDetail (cognitive 21): isAnonymousTaskFragmentToolCallDetail has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 7 (8 pts), ternaries 3 (5 pts) (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3922}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a465f6a2b895262c420f2717b4ade9b1dbe89473ebc5776df29c4433818a02d"}},{"ruleId":"D2","level":"warning","message":{"text":"renderConversationsPagination (cognitive 21): renderConversationsPagination has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 12, if/else 5 (6 pts), boolean chains 3 (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":"web/static/js/chat.js"},"region":{"startLine":9917}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91fdbb9a77effd0b471bf092fef61ed9cfe994186a8765dc8a01c6458862a07"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRecentVulns (cognitive 21): renderRecentVulns has cognitive complexity 21 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, error handling 2 (5 pts), ternaries 2 (nesting depth added 6). Most of this is not in the body itself: 10 of the 21 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 1270, (anonymous)::onkeydown, onclick, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1241}}}],"partialFingerprints":{"codehealthFindingId/v1":"625eea0dcba6d0c555ed22c62c9622b97b52ebe2672c1e48f52f8069537cc57d"}},{"ruleId":"D2","level":"warning","message":{"text":"initI18n (cognitive 21): initI18n has cognitive complexity 21 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 5, error handling 2 (nesting depth added 1). Of this number, 11 points are the body\u0027s own statements and 10 belong to 4 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0d9b332a36f6f2aba684091c0534ffd8e84f65e411efe8a001b2a851d742c2"}},{"ruleId":"D2","level":"warning","message":{"text":"showFofaParseModal (cognitive 21): showFofaParseModal has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, if/else 7, ternaries 4, error handling 1 (2 pts) (nesting depth added 1). Most of this is not in the body itself: 6 of the 21 points are its own statements and the rest belongs to 8 function items inside it that branch ((anonymous)::applyToQuery, a function literal at line 910, a function literal at line 962, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebdeb403f26ef9e36bc573c63a1a2d81e4cb72cbf59812fe304d0e250117314e"}},{"ruleId":"D2","level":"warning","message":{"text":"isToolGuardBlockedResult (cognitive 21): isToolGuardBlockedResult has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 7, error handling 1 (3 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":"web/static/js/monitor.js"},"region":{"startLine":5904}}}],"partialFingerprints":{"codehealthFindingId/v1":"c321c04e1eccebb80f220603a37877c7df0ca800a10d2aa14b4588ee23a1a8e1"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshMonitorPanelWithFilter (cognitive 21): refreshMonitorPanelWithFilter has cognitive complexity 21 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 2 (6 pts), boolean chains 4, error handling 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7604}}}],"partialFingerprints":{"codehealthFindingId/v1":"47933d45772338b669819276c67f79c88ad52b9dabd185beb73e2905f7ccf322"}},{"ruleId":"D2","level":"warning","message":{"text":"applyMonitorPayload (cognitive 21): applyMonitorPayload has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 8, ternaries 6 (7 pts), if/else 6 (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":"web/static/js/monitor.js"},"region":{"startLine":7654}}}],"partialFingerprints":{"codehealthFindingId/v1":"e70eface2515b9226c558a7eac445a8dddafe43484230a142a41adbee64037e4"}},{"ruleId":"D2","level":"warning","message":{"text":"updateAIChannelEditorChrome (cognitive 21): updateAIChannelEditorChrome has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 6 (12 pts), boolean chains 7, if/else 2 (nesting depth added 6). Of this number, 19 points are the body\u0027s own statements and 2 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":"web/static/js/settings.js"},"region":{"startLine":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fa35a94621328b1847eeb3d5d50b5fe5beefe0348018429197633adde2b5e3"}},{"ruleId":"D2","level":"warning","message":{"text":"probeSelectedAIChannels::probeNextAIChannel (cognitive 21): probeSelectedAIChannels::probeNextAIChannel has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 12, ternaries 2 (4 pts), if/else 3, error handling 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":"web/static/js/settings.js"},"region":{"startLine":3275}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f1b27b765ac6ab8273f2fea8bbe689d9c5418919ebd9b5aebafd89f551fca2"}},{"ruleId":"D2","level":"warning","message":{"text":"changePassword (cognitive 21): changePassword has cognitive complexity 21 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 6, ternaries 2 (3 pts), error handling 2 (nesting depth added 2). Of this number, 20 points are the body\u0027s own statements and 1 belongs 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":"web/static/js/settings.js"},"region":{"startLine":4322}}}],"partialFingerprints":{"codehealthFindingId/v1":"0cf7c8feeb123d3207ee12e642fa70feafa11bff80fe7c0343f577637b2b4e05"}},{"ruleId":"D2","level":"warning","message":{"text":"downloadSelectedVulnerability (cognitive 21): downloadSelectedVulnerability has cognitive complexity 21 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 4, error handling 2 (4 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":"web/static/js/vulnerability-download.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab51a8f350b951feb8565b54024ae06a2e68ea038dc77f57b33bd33e5aa3878"}},{"ruleId":"D2","level":"warning","message":{"text":"probeWebshellConnection (cognitive 21): probeWebshellConnection has cognitive complexity 21 (threshold 15). Drivers by points: boolean chains 13, ternaries 4 (5 pts), if/else 2, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 4 of the 21 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 1254, 1236, 1261, \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":"web/static/js/webshell.js"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a3c3f29d7c6f75f67fc14f02cf6d2d0e6e19954c7c42b6ffdbecdea6eb41543"}},{"ruleId":"D2","level":"warning","message":{"text":"fillSelect (cognitive 21): fillSelect has cognitive complexity 21 (threshold 15). Drivers by points: ternaries 4 (7 pts), boolean chains 6, if/else 4 (5 pts), loops 2 (3 pts) (nesting depth added 5). Of this number, 16 points are the body\u0027s own statements and 5 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":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"4827cd49e59882043519d4fe5452d8807089e4c4ca9bcc7e880bba5a1a23401f"}},{"ruleId":"D2","level":"warning","message":{"text":"Builder.parseChainJSON (cognitive 20): Builder.parseChainJSON has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 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":"internal/attackchain/builder.go"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"730e10b7897c444aae00831a39cb746ddf2f9119cae1ccd75577146b4e9e8891"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.PopTasksForBeacon (cognitive 20): Manager.PopTasksForBeacon has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (15 pts), loops 2 (4 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":"internal/c2/manager.go"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"a36cccc30f0d9fdaa2d020d68d5d66d42aa3337184f51241bec9079f22d5f9e2"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.UpdateRBACUser (cognitive 20): DB.UpdateRBACUser has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (18 pts), loops 1 (2 pts) (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":1157}}}],"partialFingerprints":{"codehealthFindingId/v1":"9400d6af03b9759c02e03beda8a1953150970df8f75d2d75d6a182b67ee68534"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.CreateVulnerabilityRetest (cognitive 20): DB.CreateVulnerabilityRetest has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), loops 2, boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability_retest.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa18b9ebc516b4d2572bc2d0f0323b8e7c86abdb3c2f69e1c14c48f84c2ea7e8"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.extractRemoteAPIError (cognitive 20): handler.extractRemoteAPIError has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (14 pts), boolean chains 3, loops 1 (3 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":946}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2ee22607a8b3380b6dde9c4382779105411691a622f0b1b9c92abf211e07adf"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.robotCommandPermission (cognitive 20): handler.robotCommandPermission has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 19, match/switch 1. 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":"internal/handler/robot.go"},"region":{"startLine":1089}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad3af4b34fd7f80db3df67148568b7a7d150c705967bf8d86f0ffe533b4507d3"}},{"ruleId":"D2","level":"warning","message":{"text":"AssetHandler.Import (cognitive 20): AssetHandler.Import has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (17 pts), boolean chains 2, 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":"internal/handler/asset.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37512ce598efe7093dfb109bf11cb3f528bcf1df586ce10c7919ee5b2c3678d"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigHandler.GetToolSchema (cognitive 20): ConfigHandler.GetToolSchema has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (14 pts), loops 3 (6 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":"internal/handler/config.go"},"region":{"startLine":3015}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd893b21261dbe9443765c4b8dcaa5eb299a5dc777d36dc311ea77b7ffa6e9cc"}},{"ruleId":"D2","level":"warning","message":{"text":"ConversationHandler.GetConversationPlanTasks (cognitive 20): ConversationHandler.GetConversationPlanTasks has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, loops 2 (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":"internal/handler/conversation.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"4748a898d32b3f76a7017e8e64044a2767c7034d4e59d6e59cb3257881b4f8bf"}},{"ruleId":"D2","level":"warning","message":{"text":"RobotHandler.HandleMessage (cognitive 20): RobotHandler.HandleMessage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbc1b4b11f5f6a7b969d97d6cf0a87c48869dd8a6dbe7c75e471b1cdd6fa7567"}},{"ruleId":"D2","level":"warning","message":{"text":"RobotHandler.cmdHelp (cognitive 20): RobotHandler.cmdHelp has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 4 (nesting depth added 5). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea4112313570079965d8cadc242e87f9a1d20ae79acb34215fad35c1941cd3af"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.ScanKnowledgeBase (cognitive 20): Manager.ScanKnowledgeBase has cognitive complexity 20 (threshold 15). Drivers by points: if/else 15 (19 pts), boolean chains 1 (nesting depth added 4). Most of this is not in the body itself: 3 of the 20 points are its own statements and the rest belongs to one function literal inside it that branches (line 48). 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":"internal/knowledge/manager.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3c5725499cdff52118c6f6d0806e7db6ce2dad95e701a490ee0b0501aab44c"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.FinishToolExecution (cognitive 20): Server.FinishToolExecution has cognitive complexity 20 (threshold 15). Drivers by points: if/else 16 (19 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":1065}}}],"partialFingerprints":{"codehealthFindingId/v1":"9487875b034eeaf1b3dd7347560aa9654d5c7eac7124472ab48534aee09dd2fe"}},{"ruleId":"D2","level":"warning","message":{"text":"security.finalizeJoinedBoundedOutputs (cognitive 20): security.finalizeJoinedBoundedOutputs has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 6 (nesting depth added 2). Of this number, 18 points are the body\u0027s own statements and 2 belong to 2 function literals inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1f1921ca4aabf7f8a65602c9ce5d2a720ad9acfedfd75ca8c59c02bbd307cd9"}},{"ruleId":"D2","level":"warning","message":{"text":"Cleaner.selectCategories (cognitive 20): Cleaner.selectCategories has cognitive complexity 20 (threshold 15). Drivers by points: if/else 6 (12 pts), loops 5 (6 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":"internal/storage/cleaner.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a3177281f29d097469202d4eca6d7c562dd0037f4b9fb36d394858c585061a"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.executeNode (cognitive 20): workflow.executeNode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 14 (19 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":"internal/workflow/node_exec.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b5083e7760c37e9b987f1b6677b9657ff545521e6b17c761e7e50141c4d1fc8"}},{"ruleId":"D2","level":"warning","message":{"text":"panel.handleStreamEvent (cognitive 20): panel.handleStreamEvent has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 3, match/switch 1 (nesting depth added 8). 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":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b59409bc48a8e7cb20abde97ce5d19effd086d7573db7553ed757f446ae75a7"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.renderAssetCoverage (cognitive 20): assets.renderAssetCoverage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (7 pts), ternaries 4 (7 pts), boolean chains 6 (nesting depth added 5). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9ed3d4a02a451ebdedb697f4dc65eb9c347411710f975f7f0281786d1c1f48e"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.ensureAssetEditorInteractions (cognitive 20): assets.ensureAssetEditorInteractions has cognitive complexity 20 (threshold 15). Drivers by points: if/else 13, boolean chains 7. 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 1516, 1511, 1505, \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":"web/static/js/assets.js"},"region":{"startLine":1499}}}],"partialFingerprints":{"codehealthFindingId/v1":"0eafe7e5f02b106759cabd72a62aeb8aaccf14212d9b1211f7f37cba15f51622"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.document.addEventListener(\u0022DOMContentLoaded\u0022) (cognitive 20): chat.document.addEventListener(\u0022DOMContentLoaded\u0022) has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 6). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 11291, 11277, 11265, \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":"web/static/js/chat.js"},"region":{"startLine":11245}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e4c5e397eda7eca925dcba4959fad6aba8f7308ee12fba5fdf4e1a632cffcb1"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderInlineWorkflowHitlApproval (cognitive 20): monitor.renderInlineWorkflowHitlApproval has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 6, ternaries 2, error handling 1. Most of this is not in the body itself: 9 of the 20 points are its own statements and the rest belongs to one function item inside it that branches (submit). 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":"web/static/js/monitor.js"},"region":{"startLine":5085}}}],"partialFingerprints":{"codehealthFindingId/v1":"c529ad346df17d52d30484efa3e52c1abc5d7fb58e38f84ed34dacdd2701bae8"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.formatExecutionDuration (cognitive 20): monitor.formatExecutionDuration has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 7 (12 pts), if/else 6 (7 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":"web/static/js/monitor.js"},"region":{"startLine":9499}}}],"partialFingerprints":{"codehealthFindingId/v1":"3de4ff44d1d0c09325f9141a0b6fb642ecab33f356ecbe837a1468e982217c11"}},{"ruleId":"D2","level":"warning","message":{"text":"skills.wireSkillModalOnce (cognitive 20): skills.wireSkillModalOnce has cognitive complexity 20 (threshold 15). Drivers by points: if/else 11 (17 pts), boolean chains 3 (nesting depth added 6). Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 466, 462, 463). 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":"web/static/js/skills.js"},"region":{"startLine":455}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5de4b37fb8dad4cf7fa316ece2bac0cdac5abd610ad723d3949a016d20f780f"}},{"ruleId":"D2","level":"warning","message":{"text":"saveAsset (cognitive 20): saveAsset has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 6, ternaries 4, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb64cf40d47a254400baf45824849752aea19dacf42b19d44242d813a2ab0aae"}},{"ruleId":"D2","level":"warning","message":{"text":"copyMessageToClipboard (cognitive 20): copyMessageToClipboard has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (10 pts), error handling 3 (4 pts), ternaries 2 (4 pts), boolean chains 2 (nesting depth added 6). Of this number, 10 points are the body\u0027s own statements and 10 belong to 4 function items inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3697}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b5a0de9853045cfc2af9103041d1ca22290463103116e4ce3a42cbdad91c6d2"}},{"ruleId":"D2","level":"warning","message":{"text":"ensureMcpCallSectionChrome (cognitive 20): ensureMcpCallSectionChrome has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 3). Of this number, 19 points are the body\u0027s own statements and 1 belongs to 2 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"web/static/js/chat.js"},"region":{"startLine":5212}}}],"partialFingerprints":{"codehealthFindingId/v1":"e28389fe227a6a69ecd690f27a35f5bba3a62baec16127490eac6d2e79c7b471"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 20): (anonymous) has cognitive complexity 20 (threshold 15). Drivers by points: if/else 12 (17 pts), error handling 1 (2 pts), boolean chains 1 (nesting depth added 6). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 11291, 11277, 11265, \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":"web/static/js/chat.js"},"region":{"startLine":11245}}}],"partialFingerprints":{"codehealthFindingId/v1":"9acab85731af1c8a78346870117c6c397503b73064de8838e98c51c1a4c9769e"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRecentEvents (cognitive 20): renderRecentEvents has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, if/else 5, ternaries 4. Most of this is not in the body itself: 5 of the 20 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 983, 966, 958). 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":"web/static/js/dashboard.js"},"region":{"startLine":950}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb4c8158abcdf6e71c52698ed22ef1d6ebb6331342ff39ab0413a4c981cd2cb5"}},{"ruleId":"D2","level":"warning","message":{"text":"submitWorkflowHitlDecisionFromPage (cognitive 20): submitWorkflowHitlDecisionFromPage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 5 (6 pts), ternaries 3 (6 pts), boolean chains 5, error handling 2 (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":"web/static/js/hitl.js"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc5f73a1972ad2dc075d9def7038431e26ff503b56d4478727a6ba0cdaa8f373"}},{"ruleId":"D2","level":"warning","message":{"text":"parseFofaNaturalLanguage (cognitive 20): parseFofaNaturalLanguage has cognitive complexity 20 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, error handling 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 3). 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: 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":"web/static/js/info-collect.js"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91f1249bb1cb8f0a053f5367b2b6b2c2abfe43e83de8171f395d40a6dff012e"}},{"ruleId":"D2","level":"warning","message":{"text":"searchKnowledgeItems (cognitive 20): searchKnowledgeItems has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (11 pts), ternaries 2 (5 pts), boolean chains 3, error handling 1 (nesting depth added 4). Of this number, 19 points are the body\u0027s own statements and 1 belongs to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0d6013f018c7d64afb36e19b3ab0d03680b98abf91b64960bc8f55eebc6901a"}},{"ruleId":"D2","level":"warning","message":{"text":"submitUserInterruptContinue (cognitive 20): submitUserInterruptContinue has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (10 pts), boolean chains 5, if/else 4, 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":"web/static/js/monitor.js"},"region":{"startLine":1408}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4c4832390dfaf2c66f18664933d23363e35a51374dc1bf39ea16b8453176a62"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshLastAssistantProcessDetails (cognitive 20): refreshLastAssistantProcessDetails has cognitive complexity 20 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 4, error handling 2 (3 pts), ternaries 1 (2 pts) (nesting depth added 4). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5487}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fb36b8b373414c2a0cfa034d4765c2f317de02d8a1cac606b1c3131a8359340"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRoleToolsPagination (cognitive 20): renderRoleToolsPagination has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 12, boolean chains 5, if/else 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a824fb291272d9753ef2caaf3848ad61304c83f6da4ec1c31c7cd64460de8f4"}},{"ruleId":"D2","level":"warning","message":{"text":"fillVisionConfigFromCurrent (cognitive 20): fillVisionConfigFromCurrent has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 11, ternaries 3 (5 pts), if/else 4 (nesting depth added 2). Of this number, 16 points are the body\u0027s own statements and 4 belong to one function item inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"c625ef7e98dc78cbaf2ce5b57781ea94d782c7845c146a913bcaf75523ea5189"}},{"ruleId":"D2","level":"warning","message":{"text":"ensureAIConfigShape (cognitive 20): ensureAIConfigShape has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 13, ternaries 4 (6 pts), if/else 1 (nesting depth added 2). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2604}}}],"partialFingerprints":{"codehealthFindingId/v1":"55619146ed4e28cad26c56b1abca113c892e9d6b85fb8b81eb57e98de5f888c0"}},{"ruleId":"D2","level":"warning","message":{"text":"syncHitlAuditBackendUI (cognitive 20): syncHitlAuditBackendUI has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 6 (11 pts), if/else 8, boolean chains 1 (nesting depth added 5). Of this number, 18 points are the body\u0027s own statements and 2 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":"web/static/js/settings.js"},"region":{"startLine":3764}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7c35508307f2efd2a6fc945e6406bdf51322f89546c3935a0f6f06e86c4a04b"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSkillsList (cognitive 20): renderSkillsList has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 8 (9 pts), boolean chains 6, if/else 4 (5 pts) (nesting depth added 2). Most of this is not in the body itself: 6 of the 20 points are its own statements and the rest belongs to 10 function literals inside it that branch (lines 162, 211, 176, \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":"web/static/js/skills.js"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c5f6a069501f0c298874100d08798c385e699f8557adf6068d9fae9d8277395"}},{"ruleId":"D2","level":"warning","message":{"text":"loadTasks (cognitive 20): loadTasks has cognitive complexity 20 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (7 pts), error handling 3 (4 pts) (nesting depth added 2). Of this number, 15 points are the body\u0027s own statements and 5 belong to 5 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":"web/static/js/tasks.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bcc3f6f8a16f63025705872b812406d73a9b5192a1354128adad22cd4438b60"}},{"ruleId":"D2","level":"warning","message":{"text":"renderBatchQueuesPagination (cognitive 20): renderBatchQueuesPagination has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 10, boolean chains 5, if/else 4 (5 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5dfd39e5d638300692a8487f49fcd51d622281d20006606320bd44d1abb273f"}},{"ruleId":"D2","level":"warning","message":{"text":"startInlineEditSchedule (cognitive 20): startInlineEditSchedule has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 3, ternaries 3 (nesting depth added 4). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 7 function items inside it that branch (a function literal at line 2817, a function literal at line 2838, a function literal at line 2844, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2812}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ae77b5efa1dec06de22477d50040ddf2968ccf3ea2b878c2feec9f571a60c38"}},{"ruleId":"D2","level":"warning","message":{"text":"createTerminalInContainer (cognitive 20): createTerminalInContainer has cognitive complexity 20 (threshold 15). Drivers by points: if/else 10, error handling 3 (6 pts), boolean chains 4 (nesting depth added 3). Most of this is not in the body itself: 8 of the 20 points are its own statements and the rest belongs to 7 function items inside it that branch (sendToWS, sendResize, a function literal at line 233, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa24488d0ae4f239e3812ede2842642d4f23e71048002e247bc71313c001ad0"}},{"ruleId":"D2","level":"warning","message":{"text":"wsInitAgentMode (cognitive 20): wsInitAgentMode has cognitive complexity 20 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, ternaries 2 (3 pts), error handling 1 (nesting depth added 4). Most of this is not in the body itself: 2 of the 20 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 286, 294, 286, \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":"web/static/js/webshell.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"20d3cf44a2498590ab975f63584cdc78eb2d87f7f0897cb2ebd4d97eadf1922c"}},{"ruleId":"D2","level":"warning","message":{"text":"renderDirectoryTree::renderNode (cognitive 20): renderDirectoryTree::renderNode has cognitive complexity 20 (threshold 15). Drivers by points: ternaries 12, boolean chains 5, loops 1 (2 pts), if/else 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4614}}}],"partialFingerprints":{"codehealthFindingId/v1":"827e83155949fe14dc0fa21d7d1738e5a7cb1825ba3849f2186a053e5d31a742"}},{"ruleId":"D2","level":"warning","message":{"text":"agent.MessagesToTraceJSON (cognitive 19): agent.MessagesToTraceJSON has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 4, 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":"internal/agent/agent_trace.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdca8f9132251abe5ff0ca76fb77197dcd23ae5acffd7a88f8ad3c4b3fbb1958"}},{"ruleId":"D2","level":"warning","message":{"text":"agentruntime.ResolveWorker (cognitive 19): agentruntime.ResolveWorker has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (16 pts), boolean chains 2, 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":"internal/agentruntime/pi.go"},"region":{"startLine":41}}}],"partialFingerprints":{"codehealthFindingId/v1":"abf3bd353922ef38fbd749dfd91d19ccb6e01bf1a4fbe627f00585dd9e6b74a6"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSocketListener.handleConn (cognitive 19): WebSocketListener.handleConn has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (12 pts), match/switch 2 (4 pts), loops 2, boolean chains 1 (nesting depth added 7). Of this number, 16 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_websocket.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"d04151f07de39df415b0e38167086149c69da7755a85cfd137c488a92931a71a"}},{"ruleId":"D2","level":"warning","message":{"text":"OpenAIConfig.EffectiveMaxTotalTokens (cognitive 19): OpenAIConfig.EffectiveMaxTotalTokens has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (17 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":"internal/config/context_profile.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"cca4a5dc252b222f312d4208af2f3e92feb2803e1bb3a27e4a54b88ab0003391"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.decodeSpaceSearchRows (cognitive 19): handler.decodeSpaceSearchRows has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (12 pts), match/switch 2 (4 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":876}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df6cf1f839603acf55d89027a0aeb005f040484e223ca89d09ca20ebe4748d0"}},{"ruleId":"D2","level":"warning","message":{"text":"RoleHandler.saveConfig (cognitive 19): RoleHandler.saveConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd8fd7a2ee7bdabdb79b8aa36d63c25d9f728d157193ca59f2112adca1016c6f"}},{"ruleId":"D2","level":"warning","message":{"text":"SkillsHandler.saveRolesConfig (cognitive 19): SkillsHandler.saveRolesConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/skills.go"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"22e18c8369d276210a3a1d2c1b0aa0c279b5853f7cfeac43825001030675cdf5"}},{"ruleId":"D2","level":"warning","message":{"text":"VulnerabilityHandler.CreateVulnerability (cognitive 19): VulnerabilityHandler.CreateVulnerability has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (15 pts), boolean chains 3, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"f306c44ee9da2fa2dd876b0a9088f4c4bb5c2afae51f764a944f9f354ef385da"}},{"ruleId":"D2","level":"warning","message":{"text":"Indexer.indexItemIDs (cognitive 19): Indexer.indexItemIDs has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (15 pts), boolean chains 3, loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/indexer.go"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b4cf1104e270a2bb93ba5c4bff3436af42604578318d976895289b2ce7a71b3"}},{"ruleId":"D2","level":"warning","message":{"text":"knowledgePipelineRetriever.Retrieve (cognitive 19): knowledgePipelineRetriever.Retrieve has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 3 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/retrieval_pipeline.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"513f52f413e12fe29016e009f6ca691e595b4a1b83277ae041f0a54a1d840d99"}},{"ruleId":"D2","level":"warning","message":{"text":"multiagent.piHistoryJSON (cognitive 19): multiagent.piHistoryJSON has cognitive complexity 19 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 3 (5 pts), boolean chains 4 (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":"internal/multiagent/pi_memory.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1600089200a8ef92708036947fd5ebc17fb0a9fe582e713818949348bc662b5"}},{"ruleId":"D2","level":"warning","message":{"text":"multiagent.piModelConfig (cognitive 19): multiagent.piModelConfig has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 6, 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":"internal/multiagent/pi_model.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eeb81e17f93268e0c0c4f6101701fc6932ec686bb142bbe2c6428e3c980283d"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.claudeRequest (cognitive 19): Client.claudeRequest has cognitive complexity 19 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 2, 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":"internal/openai/claude_native.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8a228b5a66cfbfd7022b47b32a667eb56984c40cb7405207ab279fef0ccd761"}},{"ruleId":"D2","level":"warning","message":{"text":"Cleaner.evaluate (cognitive 19): Cleaner.evaluate has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (17 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":"internal/storage/cleaner.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f1407208df1aa3eac9724b8d58a41a2c04790fbed005e315e623abe4cfb6d7c"}},{"ruleId":"D2","level":"warning","message":{"text":"update.validateBuildFiles (cognitive 19): update.validateBuildFiles has cognitive complexity 19 (threshold 15). Drivers by points: if/else 9 (14 pts), boolean chains 5 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/recovery_evidence.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b3bc7ddce7c29bd96054d53acb31926ddd2c8f0460df29289c0f5ddfff24673"}},{"ruleId":"D2","level":"warning","message":{"text":"update.check (cognitive 19): update.check has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 2, 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":"internal/update/update.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd62ae14fdcb3729c85e384790f415ccd3e679389bf8c62c1c7fe11482e42e43"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp_pent_claude_agent._run_claude_agent (cognitive 19): mcp_pent_claude_agent._run_claude_agent has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 4, loops 2 (3 pts), ternaries 2 (3 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":"mcp-servers/pent_claude_agent/mcp_pent_claude_agent.py"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"012590253e5aff6146eff1723215bda082d9573b277322fd58ee8c9cd3219624"}},{"ruleId":"D2","level":"warning","message":{"text":"panel.onSendConfirmed (cognitive 19): panel.onSendConfirmed has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (7 pts), error handling 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":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3d6a593b23e5a3d3b77a9b1d9e6461bbadb49c45ad767b986d4fd8058429ad1"}},{"ruleId":"D2","level":"warning","message":{"text":"network.modelFetch (cognitive 19): network.modelFetch has cognitive complexity 19 (threshold 15). Drivers by points: if/else 5 (10 pts), boolean chains 5, ternaries 2 (3 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/pi/src/network.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6274ac138f6b85c0639ce94cf1ab222c162df47c161869fb93b7c4053a9a419"}},{"ruleId":"D2","level":"warning","message":{"text":"c2.C2.setSessionSleep (cognitive 19): c2.C2.setSessionSleep has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8, boolean chains 7, ternaries 4. Of this number, 16 points are the body\u0027s own statements and 3 belong to 2 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"53496fc987272faf9037c1bd2e276e2ecc115e3fe968d73dceb0826b90e91708"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-files.renderChatFilesTable::rowHtmlTreeFile (cognitive 19): chat-files.renderChatFilesTable::rowHtmlTreeFile has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 8, boolean chains 6, if/else 5. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages. This shape REPEATS in the file: 2 other methods here (chat-files.renderChatFilesTable, chat-files.renderChatFilesTable::rowHtml) have the same decision points, in the same order, at the same nesting depths \u2014 so this is one pattern written 3 times rather than 3 independent problems. Splitting this body alone leaves the other 2 exactly as they are. Where these are variations on one operation, the change that clears all 3 is the shared one: lift the common shape into a single routine the variants call, parameterised by whatever genuinely differs between them, and keep in each method only the part that is not shared."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8099cf35de957139a40de2335dfd977b3a78e56c218f9229ee4869c84d5756"}},{"ruleId":"D2","level":"warning","message":{"text":"chat-files.copyChatFolderPathFromBrowse (cognitive 19): chat-files.copyChatFolderPathFromBrowse has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 3 (7 pts), if/else 5 (6 pts), boolean chains 4, error handling 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80e597125810e6bf474f7b7981a57e620803c9fc5ecf9ec02b8da430c2577d4"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.loadProjectFilterLocalOptions (cognitive 19): chat.loadProjectFilterLocalOptions has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 7, ternaries 2, error handling 1 (nesting depth added 1). Of this number, 17 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, 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":"web/static/js/chat.js"},"region":{"startLine":9249}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8d8b990ee4db7c48c95f4ea7fd79d9cb2da3d1abc9d735f57cfb9d043688f1"}},{"ruleId":"D2","level":"warning","message":{"text":"info-collect.initInfoCollectProviderSelect (cognitive 19): info-collect.initInfoCollectProviderSelect has cognitive complexity 19 (threshold 15). Drivers by points: if/else 13, boolean chains 5, ternaries 1. Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 494, 523, 486, \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":"web/static/js/info-collect.js"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"099c6ffaf0cc9f3ee5dfb117eb5b5409e233e981d323e3a55658ce3067e80d10"}},{"ruleId":"D2","level":"warning","message":{"text":"info-collect.inferTargetFromRow (cognitive 19): info-collect.inferTargetFromRow has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (8 pts), if/else 5 (7 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"21705e0ae40b7a2490e3c68475bd08f7ead976ed522fc858d9061c5212c2f96b"}},{"ruleId":"D2","level":"warning","message":{"text":"info-collect.exportFofaResults (cognitive 19): info-collect.exportFofaResults has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 4 (5 pts), ternaries 3 (5 pts) (nesting depth added 3). Of this number, 12 points are the body\u0027s own statements and 7 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":"web/static/js/info-collect.js"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd778d574987aa11d71d8df64af99138adec47bfa890195e6a14ea0044925c5d"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.findToolCallItemForHitl (cognitive 19): monitor.findToolCallItemForHitl has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (7 pts), ternaries 3 (4 pts), loops 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":"web/static/js/monitor.js"},"region":{"startLine":4585}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e42ba380b87a2d2e917fcb50468feffc5144734ff7d87f0bbbde07dcc1f411"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderMcpTimelineActiveMoments (cognitive 19): monitor.renderMcpTimelineActiveMoments has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 13, ternaries 4, if/else 2. 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 8063, 8057, 8056). 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":"web/static/js/monitor.js"},"region":{"startLine":8051}}}],"partialFingerprints":{"codehealthFindingId/v1":"d392677ef12cbaafbd54ed5277a60cd144ffc81bd71e319a577aa88018489841"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.bindMonitorStatsPanelEvents (cognitive 19): monitor.bindMonitorStatsPanelEvents has cognitive complexity 19 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 5, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 2 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 8644, 8664, 8686, \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":"web/static/js/monitor.js"},"region":{"startLine":8640}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee7e6abe397024667aae8703525eb5f891b50b9a196bb442f6eb03eaf5f7a212"}},{"ruleId":"D2","level":"warning","message":{"text":"notifications.renderNotificationList (cognitive 19): notifications.renderNotificationList has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 7, ternaries 3. Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 207, 227, 243, \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":"web/static/js/notifications.js"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"c42e9dc1b8b123f1538e14f356d2d8b22db85736931899faaeca428e3c65a42f"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.createVulnerabilityFromCurrentFact (cognitive 19): projects.createVulnerabilityFromCurrentFact has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 7. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0b6e2cbd284611399f9476d77adc7d067abc60f728ab92fde7c72c8dd2033e"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.showProjectConversationPreview (cognitive 19): projects.showProjectConversationPreview has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 4 (10 pts), boolean chains 6, if/else 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":"web/static/js/projects.js"},"region":{"startLine":3133}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15a6cccea3b4efd77f1d1c6a580af7fb0b3eedd7becad2f0cc9a47bcf266c66"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.syncProjectConversationApprovalStatuses (cognitive 19): projects.syncProjectConversationApprovalStatuses has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 11, if/else 6 (7 pts), ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 5 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 3708, 3699). 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":"web/static/js/projects.js"},"region":{"startLine":3697}}}],"partialFingerprints":{"codehealthFindingId/v1":"e09734a996cde15d99cd388c16959c5cc7babfbc04f6a4f9f1d92279f028cf47"}},{"ruleId":"D2","level":"warning","message":{"text":"storage.renderResult (cognitive 19): storage.renderResult has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 13, ternaries 4, if/else 2. Of this number, 10 points are the body\u0027s own statements and 9 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":"web/static/js/storage.js"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"2622ad200c2daf1be8ab7d6fc546b26e7349fe5e4879c313b9d94e9b65848eb1"}},{"ruleId":"D2","level":"warning","message":{"text":"tool-guard.addRule (cognitive 19): tool-guard.addRule has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 7, ternaries 1 (nesting depth added 3). Most of this is not in the body itself: 9 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 430, 429, 433). 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":"web/static/js/tool-guard.js"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"6016afd850341872819ec574ced54cd33b7e74b37bdc087a54fd2e05858182d0"}},{"ruleId":"D2","level":"warning","message":{"text":"loadMarkdownAgents (cognitive 19): loadMarkdownAgents has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, ternaries 5 (6 pts), if/else 4, error handling 1 (nesting depth added 1). Of this number, 11 points are the body\u0027s own statements and 8 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":"web/static/js/agents.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0a41209fedc97dd5f1936402dc5591731c5accb0224fe8204c698d9df512bd3"}},{"ruleId":"D2","level":"warning","message":{"text":"editMarkdownAgent (cognitive 19): editMarkdownAgent has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 9, if/else 5, ternaries 3 (4 pts), error handling 1 (nesting depth added 1). Most of this is not in the body itself: 7 of the 19 points are its own statements 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":"web/static/js/agents.js"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc06644140c55e7034097ad7a0520d249acd6935a60f7cdc51efa650bd6c164"}},{"ruleId":"D2","level":"warning","message":{"text":"showAuditLogDetail (cognitive 19): showAuditLogDetail has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 6, if/else 5 (6 pts), ternaries 6, error handling 1 (nesting depth added 1). Of this number, 11 points are the body\u0027s own statements and 8 belong to 4 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"3435e6882882de098a9a7c1341cf25e876f33297e1ca15b5541e356252889649"}},{"ruleId":"D2","level":"warning","message":{"text":"renderTasks (cognitive 19): renderTasks has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 6, boolean chains 5 (nesting depth added 1). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 3563). 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":"web/static/js/c2.js"},"region":{"startLine":3520}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b856160055eecc34977ab0f858f626855006e901722bf5e96c74e808e279dd3"}},{"ruleId":"D2","level":"warning","message":{"text":"finishProcessDetailsRender (cognitive 19): finishProcessDetailsRender has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 7, ternaries 2 (4 pts) (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 3 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":"web/static/js/chat.js"},"region":{"startLine":4542}}}],"partialFingerprints":{"codehealthFindingId/v1":"e968c40e75207c0f8f2bfe019f435259015d164ae3694dbb66a0f024b9d38fff"}},{"ruleId":"D2","level":"warning","message":{"text":"showRetrievalLogDetailsModal (cognitive 19): showRetrievalLogDetailsModal has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 6 (8 pts), if/else 5 (6 pts), boolean chains 5 (nesting depth added 3). 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 literals inside it that branch (lines 1852, 1858). 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":"web/static/js/knowledge.js"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"82facc77a8fc56882f63dadafad1f11e7d803df3f91e9bc384dbaf1b379855c2"}},{"ruleId":"D2","level":"warning","message":{"text":"setMcpStatsDistHover (cognitive 19): setMcpStatsDistHover has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 10, if/else 5 (8 pts), ternaries 1 (nesting depth added 3). 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, 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":"web/static/js/monitor.js"},"region":{"startLine":8441}}}],"partialFingerprints":{"codehealthFindingId/v1":"387b8893a9931e046012c4598a4e479f90e712dbe26c6faab57e16adfe56ebfa"}},{"ruleId":"D2","level":"warning","message":{"text":"appendChatProjectConversationItem (cognitive 19): appendChatProjectConversationItem has cognitive complexity 19 (threshold 15). Drivers by points: if/else 11, boolean chains 6, ternaries 2. Of this number, 10 points are the body\u0027s own statements and 9 belong to 6 function literals inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3319}}}],"partialFingerprints":{"codehealthFindingId/v1":"9909929c72c4f230ded40549c3c1435925607277bb412137f0dbc0706d1cf058"}},{"ruleId":"D2","level":"warning","message":{"text":"renderChatProjectFolders (cognitive 19): renderChatProjectFolders has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 5 (7 pts), boolean chains 4 (nesting depth added 3). Of this number, 14 points are the body\u0027s own statements and 5 belong to 6 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":"web/static/js/projects.js"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2e8b4b2c60ffdc69613246d05773dad654875602beaf483ac67272e8a9c0c7b"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRbacAssignments (cognitive 19): renderRbacAssignments has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 12, if/else 5, ternaries 2. Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 870, 888, 854). 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":"web/static/js/rbac.js"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"4847f2526f73fc7429dc846695902676db72ca01819e0ccef86424b6409a2259"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRoleToolsList (cognitive 19): renderRoleToolsList has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 6, ternaries 4 (6 pts) (nesting depth added 2). Most of this is not in the body itself: 4 of the 19 points are its own statements and the rest belongs to one function literal inside it that branches (line 941). 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":"web/static/js/roles.js"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fefeb3665b64a8c975dd5d09703310103a95e22c78a597532a4056f165c51a1"}},{"ruleId":"D2","level":"warning","message":{"text":"updateRoleToolsStats (cognitive 19): updateRoleToolsStats has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6, ternaries 3 (nesting depth added 3). Most of this is not in the body itself: 7 of the 19 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1215, 1210). 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":"web/static/js/roles.js"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4458b7e7312b81e07bc7540f869521d8edc4f9b0ab744dd899f453bb963e4a00"}},{"ruleId":"D2","level":"warning","message":{"text":"renderAIChannelList (cognitive 19): renderAIChannelList has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, ternaries 6, if/else 5. Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 4 function items inside it that branch (a function literal at line 2873, (anonymous)::onkeydown, (anonymous)::onclick, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2869}}}],"partialFingerprints":{"codehealthFindingId/v1":"9271723e3326635c080ff3b759cd617209e3485cbb6f77d860b0932e55f53db3"}},{"ruleId":"D2","level":"warning","message":{"text":"startInlineEditHITLPolicy (cognitive 19): startInlineEditHITLPolicy has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 7, if/else 7, error handling 3 (4 pts), ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 8 of the 19 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 2998, 2992, 2995, \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":"web/static/js/tasks.js"},"region":{"startLine":2982}}}],"partialFingerprints":{"codehealthFindingId/v1":"75ec6e478422fc0289c84154023cfc7e64044cbccbba7e19a74b8131bfb69030"}},{"ruleId":"D2","level":"warning","message":{"text":"ensureTerminalWS (cognitive 19): ensureTerminalWS has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (12 pts), error handling 2 (4 pts), boolean chains 3 (nesting depth added 4). Most of this is not in the body itself: 6 of the 19 points are its own statements and the rest belongs to 5 function items inside it that branch (onopen, onmessage, onclose, \u2026). Those helpers are already separate functions, so extracting the branching again is not available. To reduce it, move them out of the body to the enclosing scope, where each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"28495c77180165ef1bbd88204f1a7f9782bca856565d15c1abec84d82884bf4a"}},{"ruleId":"D2","level":"warning","message":{"text":"renderUpdateApplyBody (cognitive 19): renderUpdateApplyBody has cognitive complexity 19 (threshold 15). Drivers by points: boolean chains 8, if/else 8, ternaries 3. 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, 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":"web/static/js/update.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"614bab64d9d945cf63f5380cf891dcefbc8d8e5988ee9a8ee7b0ae7489984467"}},{"ruleId":"D2","level":"warning","message":{"text":"loadVulnerabilityAlertSubscription (cognitive 19): loadVulnerabilityAlertSubscription has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1 (nesting depth added 4). Of this number, 16 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":"web/static/js/vulnerability.js"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bbf78ee204ecc018567abd3f5d55553e89854b3c20209f6452acdb4ea7f3d8"}},{"ruleId":"D2","level":"warning","message":{"text":"applyWebshellAiProjectSelection (cognitive 19): applyWebshellAiProjectSelection has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 2 (5 pts), boolean chains 3, ternaries 1 (3 pts) (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cdb86cb3643f3f82407716fc5e103bad93803418ac38d66072ddef053558937"}},{"ruleId":"D2","level":"warning","message":{"text":"fetchAndRenderWebshellAiConvList (cognitive 19): fetchAndRenderWebshellAiConvList has cognitive complexity 19 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 4, error handling 3 (4 pts), ternaries 1 (nesting depth added 4). Most of this is not in the body itself: 3 of the 19 points are its own statements and the rest belongs to 8 function literals inside it that branch (lines 2370, 2349, 2365, \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":"web/static/js/webshell.js"},"region":{"startLine":2342}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e5726864dfc3a1e1e3c48e52491a0bec1da54f6b2d7af37830d74bb7a988027"}},{"ruleId":"D2","level":"warning","message":{"text":"selectWorkflowElement (cognitive 19): selectWorkflowElement has cognitive complexity 19 (threshold 15). Drivers by points: if/else 8 (10 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4b49e3c06540bcfc68e807240d927a330ae3e96c46bb49dc8e82bf58c36d2de"}},{"ruleId":"D2","level":"warning","message":{"text":"app.registerC2SessionTool (cognitive 18): app.registerC2SessionTool has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, loops 1 (2 pts), match/switch 1 (nesting depth added 8). None of this is in the body itself: all 18 points belong to one function literal inside it that branches (line 264). 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":"internal/app/c2_tools.go"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"a83e98649d6ad5c46554808d7fa6becb9301fbe7cdbb4b395cf8650897de9f13"}},{"ruleId":"D2","level":"warning","message":{"text":"c2.GenerateOneliner (cognitive 18): c2.GenerateOneliner has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 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":"internal/c2/payload_oneliner.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"2359656d1a65ebcaebba85cf3152377125841fdc624a0776a47ff1cf2f3905da"}},{"ruleId":"D2","level":"warning","message":{"text":"TCPReverseListener.taskDispatcherLoop (cognitive 18): TCPReverseListener.taskDispatcherLoop has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 1 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_tcp.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"516ebf2a7839536ec4de427f5e3e6f97cfcc27fced3cd8d35de809b2f1916f4c"}},{"ruleId":"D2","level":"warning","message":{"text":"WebSocketListener.taskDispatcherLoop (cognitive 18): WebSocketListener.taskDispatcherLoop has cognitive complexity 18 (threshold 15). Drivers by points: loops 4 (11 pts), if/else 1 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 11). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_websocket.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a7a7da145be2007323c051a241e0e4ba0d1e7f2e23f846ab6125ceea105b40"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.MergeAssets (cognitive 18): DB.MergeAssets has cognitive complexity 18 (threshold 15). Drivers by points: if/else 12 (13 pts), boolean chains 3, loops 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4f844640e7aeb4cc249fae82e734c039722b510e5815a2fca2d9fef6a4a99c5"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.FinalizeStaleRunningToolExecutions (cognitive 18): DB.FinalizeStaleRunningToolExecutions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1c484c47efad386ee8f2ce6656d745d90d3443af512ca0895bba43248ba5755"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.UpsertProjectFact (cognitive 18): DB.UpsertProjectFact has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 5 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b60ef9018e4d5b75a29432a57873f5781604089b7b85773c6b375634c2ae13e"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.MergeVulnerabilities (cognitive 18): DB.MergeVulnerabilities has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 2, boolean chains 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability_workspace.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"5274416c29c6d9ee21b1ce9253e0f1d72e1cf0c39c7228b3adf0d359eae0f8cd"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.addModelContextToResponse (cognitive 18): handler.addModelContextToResponse has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (14 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":"internal/handler/config.go"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"a920cd9118bbbb4343a68d0ddfe651b8d68e826c35869c484341045f2b956511"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.extractFirstJSONObject (cognitive 18): handler.extractFirstJSONObject has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (15 pts), match/switch 1 (2 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_audit_agent.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef8d8bb88390cd4c4971ab3822b7d27e02a758d7a15d77755d92cce18ef8aa74"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.runSingleJSON (cognitive 18): AgentHandler.runSingleJSON has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (16 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent_single_json_runner.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39dc5abca1c7cbb9b29fc29f0c3e5d6d31313025541a0c6565617b167939453"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.auditAgentReview (cognitive 18): AgentHandler.auditAgentReview has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 3 (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":"internal/handler/hitl_audit_agent.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"9871cd49022fbf67bfcfe68330f1895b210ce8c67bd7074ccb2b0decf3745384"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.collectHitlCognition (cognitive 18): AgentHandler.collectHitlCognition has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (16 pts), boolean chains 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":"internal/handler/hitl_context.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"13328c6ec563b803a96f8b5e4706a1871f604e6bbfa6b7858d640f3bd98429b9"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTaskManager.UpdateQueueMetadata (cognitive 18): BatchTaskManager.UpdateQueueMetadata has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 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":"internal/handler/batch_task_manager.go"},"region":{"startLine":759}}}],"partialFingerprints":{"codehealthFindingId/v1":"387c20b5f2c05f7873ddd9434f13a30391fa773830ad4063366171c5cfabed47"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatUploadsHandler.Mkdir (cognitive 18): ChatUploadsHandler.Mkdir has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 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, 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":"internal/handler/chat_uploads.go"},"region":{"startLine":1205}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3a11ad6b6dcfe23a1138ce54c111a81d6a85bf66feb366ac765c2d1d5e6afc"}},{"ruleId":"D2","level":"warning","message":{"text":"HITLManager.popApprovedInterruptForTool (cognitive 18): HITLManager.popApprovedInterruptForTool has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (4 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":"internal/handler/hitl_execution.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"38e512ff0d1b445e2a80bf40e5412fee68e3552d388db903d88419eb2b6c9f55"}},{"ruleId":"D2","level":"warning","message":{"text":"RobotHandler.cmdVulnerabilityAlerts (cognitive 18): RobotHandler.cmdVulnerabilityAlerts has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (12 pts), boolean chains 4, loops 1, match/switch 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":"internal/handler/vulnerability_alert.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"188dad1d26bbb766dfa787a67eb92f5a2982153dad05397b4e744fe098d5d857"}},{"ruleId":"D2","level":"warning","message":{"text":"WorkflowHandler.CreatePackageInspection (cognitive 18): WorkflowHandler.CreatePackageInspection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 2 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_package.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e15aa68fb06e3300c3c3a715b381c316310186d0a1443aadbf9ec9d183d5b9"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.GetItem (cognitive 18): Manager.GetItem has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 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":"internal/knowledge/manager.go"},"region":{"startLine":541}}}],"partialFingerprints":{"codehealthFindingId/v1":"16be9b52b6703565bc1f58757acca1b397f4cf158ed2f0e0504a0b6066dd0c55"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.UpdateItem (cognitive 18): Manager.UpdateItem has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (18 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":"internal/knowledge/manager.go"},"region":{"startLine":636}}}],"partialFingerprints":{"codehealthFindingId/v1":"56ae3700e636cb595f2b29f3c9a2674efee303df9e9ee8935807ff280bd37ba1"}},{"ruleId":"D2","level":"warning","message":{"text":"ExternalMCPManager.startClient (cognitive 18): ExternalMCPManager.startClient has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11 (16 pts), boolean chains 2 (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":"internal/mcp/external_manager.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"342374b0c2863d774a6c21d49dd1a2554d59573a34414d5cffd9170db4cd2d3e"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.HandleStdio (cognitive 18): Server.HandleStdio has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (17 pts), loops 1 (nesting depth added 10). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":1678}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18fdb5e47de4488509104532faaf775b6a2164e173c22ae7f51a81a7312464b"}},{"ruleId":"D2","level":"warning","message":{"text":"project.ParseLinksFromBody (cognitive 18): project.ParseLinksFromBody has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (15 pts), loops 3 (nesting depth added 5). Of this number, 15 points are the body\u0027s own statements and 3 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_body_links.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"615920803f2b870342cd5f03dbe5784ccf850463ad9c4e19e8b6feb10d8998de"}},{"ruleId":"D2","level":"warning","message":{"text":"project.BuildScopeBlock (cognitive 18): project.BuildScopeBlock has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (13 pts), loops 2 (4 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":"internal/project/scope_block.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"089d1311fd56efbbbe12ec1c5cfd4873a11579af42e6557039f3285ec1b315be"}},{"ruleId":"D2","level":"warning","message":{"text":"skillpackage.buildSummaryMarkdown (cognitive 18): skillpackage.buildSummaryMarkdown has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2 (4 pts), boolean chains 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/skillpackage/content.go"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c4dd4c1577681d2c429c6312c7fe1cef119bf6006c9fba7e022bceb9edcd5b8"}},{"ruleId":"D2","level":"warning","message":{"text":"Cleaner.buildReport (cognitive 18): Cleaner.buildReport has cognitive complexity 18 (threshold 15). Drivers by points: if/else 5 (11 pts), loops 3 (5 pts), boolean chains 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":"internal/storage/cleaner.go"},"region":{"startLine":407}}}],"partialFingerprints":{"codehealthFindingId/v1":"0784e19e8cad8b74ffec5d15b8a5e60189d3c9cc108267e2fc56034350161af8"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.matchDraftTool (cognitive 18): workflow.matchDraftTool has cognitive complexity 18 (threshold 15). Drivers by points: if/else 3 (9 pts), loops 3 (6 pts), boolean chains 3 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/draft_generator.go"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c4b185d7adf86a48964634a4bc88683f3a86afeeb2b4b2ab96a4bab13d77767"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.validateConditionAtom (cognitive 18): workflow.validateConditionAtom has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/expression.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"645dfa7e47f36a18e3d6b69f14e82e30152f0cec791e9482fc359cd9e5799c39"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.runToolNode (cognitive 18): workflow.runToolNode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 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":"internal/workflow/nodes.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b1f2c69789c72c550f96ec62f3fa82b7973fbb99a10ef295f3ffc0f71331735"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.ResumeWorkflowRun (cognitive 18): workflow.ResumeWorkflowRun has cognitive complexity 18 (threshold 15). Drivers by points: if/else 14 (17 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/resume.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c4bbc9f6a002e888d3fc10212d5fccdf89922dc0ee4c1ba20d6ad4525ac983"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.validateReachability (cognitive 18): workflow.validateReachability has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (11 pts), loops 5 (6 pts), boolean chains 1 (nesting depth added 5). Of this number, 11 points are the body\u0027s own statements and 7 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":"internal/workflow/validation.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cabec951c4dccf8856f56c394a26f5b8067be07717a79b316c35d77be9ed7ec"}},{"ruleId":"D2","level":"warning","message":{"text":"worker.command (cognitive 18): worker.command has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (14 pts), boolean chains 2, 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":"runtime/pi/src/worker.ts"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"c695cf0bb4e465765648ebe26104a1b837b9c16cceccc385a3a4ce5fbb1746eb"}},{"ruleId":"D2","level":"warning","message":{"text":"audit.auditMessageLabel (cognitive 18): audit.auditMessageLabel has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 6 (9 pts) (nesting depth added 3). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"01edf8ae4ae9f37e5d445c7f718587d327066706d852496e707db709970ba0d5"}},{"ruleId":"D2","level":"warning","message":{"text":"c2.C2.viewTask (cognitive 18): c2.C2.viewTask has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 11, if/else 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 items inside it that branch (renderTaskModal, a function literal at line 3716, a function literal at line 3723). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":3612}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c66d5633930de30855b6e5596cbe1a6488e222e594e867ca363357c105f09d9"}},{"ruleId":"D2","level":"warning","message":{"text":"info-collect.scanFofaRow (cognitive 18): info-collect.scanFofaRow has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 4, error handling 2 (nesting depth added 2). 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 1314). 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":"web/static/js/info-collect.js"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"48a242e9ae0bbc657468db2233eb3c250bcea202528b5a07eb2d02853e5b2198"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.finalizeMainResponseStreamItem (cognitive 18): monitor.finalizeMainResponseStreamItem has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, if/else 7, ternaries 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":"web/static/js/monitor.js"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f5ab284d994a1b62188c3a8e921b75cf1c8334f2fac4b582ca3d67af4799f18"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.applyStreamPlainTextNow (cognitive 18): monitor.applyStreamPlainTextNow has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (12 pts), boolean chains 4, ternaries 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"78f95e59f2abaa32015d3045798bdbf5ab26720cd1444b53e2005391c313ad65"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.buildToolResultSectionHtml (cognitive 18): monitor.buildToolResultSectionHtml has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9 (15 pts), boolean chains 2, if/else 1 (nesting depth added 6). Of this number, 17 points are the body\u0027s own statements and 1 belongs to one function item inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5988}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a7c986f751d46e23f0388d4beabaf1136fd281cec84b0f49a0f6dec9a6cd539"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.selectProject (cognitive 18): projects.selectProject has cognitive complexity 18 (threshold 15). Drivers by points: if/else 11, boolean chains 6, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3616c4993c40bc0057852ecc571e6546fc1824c8a0021dfe6432534d41d83d5"}},{"ruleId":"D2","level":"warning","message":{"text":"roles.initSelectionDetailTooltip (cognitive 18): roles.initSelectionDetailTooltip has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 7, ternaries 1. Most of this is not in the body itself: 1 of the 18 points is its own statement and the rest belongs to 6 function items inside it that branch (positionTooltip, a function literal at line 217, a function literal at line 222, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1ee94e96a90d7d6c94bb3c6036e28754539f4b772103085dd4c8e064b5971a"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.collectHitlAuditModelEffectiveConfig (cognitive 18): settings.collectHitlAuditModelEffectiveConfig has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 15, ternaries 2 (3 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3801}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d0ca3e5a744244870b5d2c1ef13c5e0edfee5e9bf3013b0ce1f49db2ad4582d"}},{"ruleId":"D2","level":"warning","message":{"text":"vulnerability.renderVulnerabilities (cognitive 18): vulnerability.renderVulnerabilities has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 3 (4 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"206cb6e8068bed1c9092e501312c88ab659b2f8f17fde37c8120a76dce185a10"}},{"ruleId":"D2","level":"warning","message":{"text":"vulnerability.editVulnerability (cognitive 18): vulnerability.editVulnerability has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 16, error handling 1, if/else 1. 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 1801). 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":"web/static/js/vulnerability.js"},"region":{"startLine":1793}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc56a2052c8c5199585934fda8bf13976c7ce9c0496a4522fccfd4249a8571c"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.workflowAiAnimateGraph (cognitive 18): workflows.workflowAiAnimateGraph has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, ternaries 3, loops 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"62edb82ba6bf8b4046933ba1f00656d29af353d59dc38937542ffd26febdc063"}},{"ruleId":"D2","level":"warning","message":{"text":"submitSessionSleep (cognitive 18): submitSessionSleep has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, error handling 2 (3 pts), ternaries 1 (nesting depth added 2). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 3 function items inside it that branch (a function literal at line 1935, (anonymous)::after, a function literal at line 1955). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1917}}}],"partialFingerprints":{"codehealthFindingId/v1":"1953535f85bbf7d082fa6ec83d0290b5f61349aa68c2610e434b451c7f12d3e9"}},{"ruleId":"D2","level":"warning","message":{"text":"saveSessionNote (cognitive 18): saveSessionNote has cognitive complexity 18 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 3, ternaries 2 (3 pts), error handling 1 (nesting depth added 2). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 2017, 2036, 2024). 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":"web/static/js/c2.js"},"region":{"startLine":2006}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57bfde5334af3b0e9963034f25fd778614891c8eac7f96830c868dc6a177b40"}},{"ruleId":"D2","level":"warning","message":{"text":"renderTasksPagination (cognitive 18): renderTasksPagination has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9, if/else 5 (6 pts), boolean chains 3 (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":"web/static/js/c2.js"},"region":{"startLine":3250}}}],"partialFingerprints":{"codehealthFindingId/v1":"3691453a16f9abc1949a0b267c58818f205ae5d0d9ad04ebc8a1733396d5f1a0"}},{"ruleId":"D2","level":"warning","message":{"text":"renderEventsPagination (cognitive 18): renderEventsPagination has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 9, if/else 5 (6 pts), boolean chains 3 (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":"web/static/js/c2.js"},"region":{"startLine":4188}}}],"partialFingerprints":{"codehealthFindingId/v1":"7735fbdcf2cd7bb8ca0da7df6d1b864190fac3fc34d513c29a3a3c7b5a602fa3"}},{"ruleId":"D2","level":"warning","message":{"text":"setupChatFilesDragDrop (cognitive 18): setupChatFilesDragDrop has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (9 pts), ternaries 1 (4 pts), boolean chains 3, error handling 1 (2 pts) (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 4 function literals inside it that branch (lines 1930, 1937, 1917, \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":"web/static/js/chat-files.js"},"region":{"startLine":1911}}}],"partialFingerprints":{"codehealthFindingId/v1":"17a19385d8e9f2488dc7f70c33eef92eeb3168eaaedba16ad2f1adf5a8bce353"}},{"ruleId":"D2","level":"warning","message":{"text":"syncAssistantReasoningContentFromServer (cognitive 18): syncAssistantReasoningContentFromServer has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, error handling 3 (4 pts), ternaries 1 (2 pts) (nesting depth added 3). Of this number, 17 points are the body\u0027s own statements and 1 belongs 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":"web/static/js/chat.js"},"region":{"startLine":3857}}}],"partialFingerprints":{"codehealthFindingId/v1":"161e8458921ef028f4d1e846e9121f0f9305200c1fd09371c858d8e89e980b34"}},{"ruleId":"D2","level":"warning","message":{"text":"copyDetailBlock (cognitive 18): copyDetailBlock has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, error handling 2, ternaries 2 (nesting depth added 1). Of this number, 10 points are the body\u0027s own statements and 8 belong to 6 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5846}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a4b97eaf1cbaeee847da3950b6753d7e003f3d2a3e284006adbee863c39254e"}},{"ruleId":"D2","level":"warning","message":{"text":"formatFofaRowSummary (cognitive 18): formatFofaRowSummary has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8, boolean chains 4, ternaries 3 (4 pts), 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 3 function literals inside it that branch (lines 1272, 1257, 1264). 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":"web/static/js/info-collect.js"},"region":{"startLine":1251}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7e863479f6b5bde24c26fa4213ec6cc5e94da3ad07f63c081334b901f6a559"}},{"ruleId":"D2","level":"warning","message":{"text":"renderInlineWorkflowHitlApproval::submit (cognitive 18): renderInlineWorkflowHitlApproval::submit has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 6 (9 pts), boolean chains 6, if/else 2, 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":"web/static/js/monitor.js"},"region":{"startLine":5140}}}],"partialFingerprints":{"codehealthFindingId/v1":"066b758b3fb89674ee85f07bff8b559594351634d87d9721ca714ed660739e9b"}},{"ruleId":"D2","level":"warning","message":{"text":"appendChatProjectFolderItem (cognitive 18): appendChatProjectFolderItem has cognitive complexity 18 (threshold 15). Drivers by points: if/else 7, ternaries 6 (7 pts), boolean chains 4 (nesting depth added 1). Of this number, 11 points are the body\u0027s own statements and 7 belong to 7 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":"web/static/js/projects.js"},"region":{"startLine":3202}}}],"partialFingerprints":{"codehealthFindingId/v1":"af24e88c3a40dc7362dd9492027e59a04e3ec4fe26035d58bcc955842b2265ea"}},{"ruleId":"D2","level":"warning","message":{"text":"loadChatProjectFolderContext (cognitive 18): loadChatProjectFolderContext has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 9, ternaries 5, if/else 4. Of this number, 11 points are the body\u0027s own statements and 7 belong to 4 function literals inside it that branch. To reduce it, 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":"web/static/js/projects.js"},"region":{"startLine":3413}}}],"partialFingerprints":{"codehealthFindingId/v1":"2599deb97843190aeb6c07ca7953f6fed4a6230428bf5c4b7aa2a99aea824d28"}},{"ruleId":"D2","level":"warning","message":{"text":"applyChatProjectSelection (cognitive 18): applyChatProjectSelection has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 2 (5 pts), ternaries 1 (3 pts), boolean chains 2 (nesting depth added 7). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3977}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f82ec7646a4d03da958eb0f7ec1b3cf22f285a5372a198074c6688d501e9429"}},{"ruleId":"D2","level":"warning","message":{"text":"mergeToolIntoRoleStateMap (cognitive 18): mergeToolIntoRoleStateMap has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, ternaries 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":"web/static/js/roles.js"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd50ce4c5783153d1d14488b4533e4e4bb1cfa5d37756b7dcd8f93399c6170dc"}},{"ruleId":"D2","level":"warning","message":{"text":"renderToolsPagination (cognitive 18): renderToolsPagination has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 10, if/else 6, boolean chains 2. Of this number, 13 points are the body\u0027s own statements and 5 belong to 2 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"126a2089b27ddf4cd1cc53b322dc52fc64f5b0b7077b51b093fab9fd8cd8ac1a"}},{"ruleId":"D2","level":"warning","message":{"text":"resolveSavedAIChannelId (cognitive 18): resolveSavedAIChannelId has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 17, if/else 1. Of this number, 10 points are the body\u0027s own statements and 8 belong to one function literal inside it that branches. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2990}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f19d484bfc503f65935f2aae2510e1d1a294523518a3ec1fb36ac2efb8fc5cd"}},{"ruleId":"D2","level":"warning","message":{"text":"viewSkill (cognitive 18): viewSkill has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 7, ternaries 4 (5 pts), if/else 4, error handling 2 (nesting depth added 1). Most of this is not in the body itself: 8 of the 18 points are its own statements and the rest belongs to 5 function items inside it that branch (a function literal at line 721, a function literal at line 682, close, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/skills.js"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc2f2ef34e703225c80ecdb79d45d8f804044868a29eff01efac50b104b968db"}},{"ruleId":"D2","level":"warning","message":{"text":"renderSkillsMonitor (cognitive 18): renderSkillsMonitor has cognitive complexity 18 (threshold 15). Drivers by points: boolean chains 10, if/else 4, ternaries 3 (4 pts) (nesting depth added 1). Most of this is not in the body itself: 6 of the 18 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 1035, 1013). 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":"web/static/js/skills.js"},"region":{"startLine":968}}}],"partialFingerprints":{"codehealthFindingId/v1":"450e02507303248309035db36bbf9d8cbac1707bda2202e2b708fad9b8249c9c"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshBatchProjectSelectOptions (cognitive 18): refreshBatchProjectSelectOptions has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, ternaries 3 (5 pts), error handling 1 (nesting depth added 3). Of this number, 13 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":"web/static/js/tasks.js"},"region":{"startLine":859}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73804adf890e723ffa2b5e13653f4c6375c6f7ea59fb0e3aec5d861bb951fea"}},{"ruleId":"D2","level":"warning","message":{"text":"startInlineEditAgentMode (cognitive 18): startInlineEditAgentMode has cognitive complexity 18 (threshold 15). Drivers by points: if/else 8 (12 pts), ternaries 4, boolean chains 2 (nesting depth added 4). Most of this is not in the body itself: 2 of the 18 points are its own statements and the rest belongs to 6 function items inside it that branch (a function literal at line 2652, (anonymous)::onEscape, a function literal at line 2676, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2647}}}],"partialFingerprints":{"codehealthFindingId/v1":"78a916f49dbc32aa9c8a3925e3b65ebb1803baa09665c6c640ab1926fea34adc"}},{"ruleId":"D2","level":"warning","message":{"text":"renderVulnerabilityPagination (cognitive 18): renderVulnerabilityPagination has cognitive complexity 18 (threshold 15). Drivers by points: ternaries 10, boolean chains 5, if/else 3. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c0974f17389255f6fc93acdb07fe9744001db89364c075e79abae9e75eb8b83"}},{"ruleId":"D2","level":"warning","message":{"text":"vulnerabilityCopyEncoded (cognitive 18): vulnerabilityCopyEncoded has cognitive complexity 18 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 5 (6 pts), boolean chains 4 (nesting depth added 5). Of this number, 10 points are the body\u0027s own statements and 8 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":"web/static/js/vulnerability.js"},"region":{"startLine":2170}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a3eb3dbee1d9a145b3ac92e658fa2ea27537a2c6f9434954f863147371dccc7"}},{"ruleId":"D2","level":"warning","message":{"text":"setWechatQrImage (cognitive 18): setWechatQrImage has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (17 pts), boolean chains 1 (nesting depth added 8). Of this number, 12 points are the body\u0027s own statements and 6 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":"web/static/js/wechat-robot.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0dc955b2abd0eec86808bfc0a4747fd5e776b0cd1673047484ba471f4393423"}},{"ruleId":"D2","level":"warning","message":{"text":"saveWorkflowDraft (cognitive 18): saveWorkflowDraft has cognitive complexity 18 (threshold 15). Drivers by points: if/else 6 (7 pts), boolean chains 5, error handling 2 (3 pts), ternaries 3 (nesting depth added 2). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2232}}}],"partialFingerprints":{"codehealthFindingId/v1":"48842a2cf225cd69a5bcfe3133d5a69f061e62e0dbde508741380cbb0b0499cb"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshWorkflowsI18n (cognitive 18): refreshWorkflowsI18n has cognitive complexity 18 (threshold 15). Drivers by points: if/else 9 (10 pts), ternaries 2 (5 pts), boolean chains 3 (nesting depth added 4). Of this number, 16 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":3078}}}],"partialFingerprints":{"codehealthFindingId/v1":"49cee127323c28204eda730b14e974c21ae3db60d43cd5b7af662049f1bb6812"}},{"ruleId":"D2","level":"warning","message":{"text":"app.mcpResourceProjectID (cognitive 17): app.mcpResourceProjectID has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), match/switch 1 (nesting depth added 8). 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":"internal/app/mcp_authorization.go"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b6f113cc98a62728307c3ac89f5a0342ca052d1a14101bc392d831de488fbc0"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.IngestTaskResult (cognitive 17): Manager.IngestTaskResult has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (15 pts), boolean chains 2 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/manager.go"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cde9b69aa742405f904110d9513ea7ef9f76ddc2d7c1d51bc99f3b1fecbcc27"}},{"ruleId":"D2","level":"warning","message":{"text":"database.scanConversationRows (cognitive 17): database.scanConversationRows has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (16 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"b83e0bb080fbe00ed1f1212fff96a036801855ef666873a64f3fe5c2f93fb991"}},{"ruleId":"D2","level":"warning","message":{"text":"database.vulnerabilityTargetHost (cognitive 17): database.vulnerabilityTargetHost has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 6 (nesting depth added 1). 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: 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":"internal/database/vulnerability.go"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"d92905cca0bdbddecef1a5ec9f34dbeb753b99efbc2f86ee61edb57f8745cbb5"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.ListC2Tasks (cognitive 17): DB.ListC2Tasks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b768f829fd2b24810819efc555464e7e8f56d5e0f9d777ecd9240ebeb89dcb"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.PurgeToolExecutionsBefore (cognitive 17): DB.PurgeToolExecutionsBefore has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (12 pts), loops 2, match/switch 1 (2 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":"internal/database/monitor.go"},"region":{"startLine":839}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec6a7729ae1c2bd300201db55ef8125b246badd9b7baa69304bcff878ecf9f5f"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.UpsertRBACRole (cognitive 17): DB.UpsertRBACRole has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":1041}}}],"partialFingerprints":{"codehealthFindingId/v1":"de800a7e04260848c9c975e0b31cfb1048ae94d1248a1077cc41345be9f43f6e"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.migrateLegacyToolGuardBlocks (cognitive 17): DB.migrateLegacyToolGuardBlocks has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (15 pts), loops 2 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/tool_guard_migration.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d9f6d1ccb8a70171d878c5ab5306d6d923120ff15e9a46f8696b7e48092ce85"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.assetListFilterFromQuery (cognitive 17): handler.assetListFilterFromQuery has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (13 pts), boolean chains 3, loops 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/asset.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"28a371409dede0ce5785b61ae188250798c2eedac0eafc7ca07314dba6326dae"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.auditAgentPickObject (cognitive 17): handler.auditAgentPickObject has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (11 pts), boolean chains 3, match/switch 1 (2 pts), loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_audit_agent.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"2145fb2aae64cdbc474141c254cb140c3a5e448bf91497ac3f2f4fad813bc875"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.runBatchQueueWorker (cognitive 17): AgentHandler.runBatchQueueWorker has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (16 pts), loops 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_queue_executor.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"129ecbc12bfb63d41024661807a03ce3f375f180c19fb7434a7eeb0ff34eda5f"}},{"ruleId":"D2","level":"warning","message":{"text":"C2Handler.UpdateListener (cognitive 17): C2Handler.UpdateListener has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc99d38a51033ea88c02c96dec724184dd19c6f6543b468c959572a08c0c7be"}},{"ruleId":"D2","level":"warning","message":{"text":"ChatUploadsHandler.Delete (cognitive 17): ChatUploadsHandler.Delete has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (16 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":"internal/handler/chat_uploads.go"},"region":{"startLine":1153}}}],"partialFingerprints":{"codehealthFindingId/v1":"2143e14898d4909245cc17ad09c77b6ed84b902b976591f3f4a6eb40efe675f8"}},{"ruleId":"D2","level":"warning","message":{"text":"ConfigHandler.resolveProbeSecret (cognitive 17): ConfigHandler.resolveProbeSecret has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (11 pts), loops 2 (3 pts), boolean chains 2, match/switch 1 (nesting depth added 4). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config_secrets.go"},"region":{"startLine":143}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c6e9ffb98da57f9799d5dc76be9e8432041069768893c28fc18a78cd3308303"}},{"ruleId":"D2","level":"warning","message":{"text":"FofaHandler.searchShodan (cognitive 17): FofaHandler.searchShodan has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (16 pts), loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":969}}}],"partialFingerprints":{"codehealthFindingId/v1":"e63b01b50d7214f671d3870d36bccf9d032dbd3ff6bb302f83b6a124ee38bc34"}},{"ruleId":"D2","level":"warning","message":{"text":"MonitorHandler.BatchGetToolNames (cognitive 17): MonitorHandler.BatchGetToolNames has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/monitor.go"},"region":{"startLine":684}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff1dd2530d92d442010881ea72693a761a170b75161a639e9e8493c39803c7e5"}},{"ruleId":"D2","level":"warning","message":{"text":"MonitorHandler.DeleteExecution (cognitive 17): MonitorHandler.DeleteExecution has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (17 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":"internal/handler/monitor.go"},"region":{"startLine":865}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b346c7c27e10f8f6a7ce8aebf2eb23bc89977defb429a0a84cf83bf06ec728"}},{"ruleId":"D2","level":"warning","message":{"text":"NotificationHandler.GetSummary (cognitive 17): NotificationHandler.GetSummary has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 2 (nesting depth added 3). Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: 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":"internal/handler/notification.go"},"region":{"startLine":691}}}],"partialFingerprints":{"codehealthFindingId/v1":"06d83e9b388476a5d0ec32b2832335118ff045d534415f2917d352ba85caa914"}},{"ruleId":"D2","level":"warning","message":{"text":"UpdateHandler.startJob (cognitive 17): UpdateHandler.startJob has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 1, loops 1 (nesting depth added 4). 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 423). 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":"internal/handler/update.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"b65f4b62d1a0ab9f4bf728900c8fe50b1672b6e4ab63315b92b8f6790174670f"}},{"ruleId":"D2","level":"warning","message":{"text":"WebShellHandler.UpdateConnection (cognitive 17): WebShellHandler.UpdateConnection has cognitive complexity 17 (threshold 15). Drivers by points: if/else 14 (16 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"291b148623eaff188f3cd2c6e8d9b90f2a4b359052e337f7db6031497c618193"}},{"ruleId":"D2","level":"warning","message":{"text":"WebShellHandler.Exec (cognitive 17): WebShellHandler.Exec has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (14 pts), boolean chains 3 (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":"internal/handler/webshell.go"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"22bbf894e850e2b0a4f5f2fe951b4cdab9aa3071148518069ed71b39d26df50a"}},{"ruleId":"D2","level":"warning","message":{"text":"Manager.GetRetrievalLogs (cognitive 17): Manager.GetRetrievalLogs has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), loops 2 (3 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":"internal/knowledge/manager.go"},"region":{"startLine":793}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7ce5e538cc3cb1d32773a1183e2d4beb6d1d537cc2b84ca82e4b51e70ada69c"}},{"ruleId":"D2","level":"warning","message":{"text":"mcp.createSDKClient (cognitive 17): mcp.createSDKClient has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (16 pts), match/switch 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":"internal/mcp/client_sdk.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d4b98f5b5addf9d384397e62c4e251794313d3f0b43ee28b11bd1dde4d761ac"}},{"ruleId":"D2","level":"warning","message":{"text":"Server.CallTool (cognitive 17): Server.CallTool has cognitive complexity 17 (threshold 15). Drivers by points: if/else 15 (16 pts), boolean chains 1 (nesting depth added 1). Of this number, 10 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":"internal/mcp/server.go"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"722353e527e033d1a89da560a14443dfc1c9a8ffc426af13c9942aa7799e8b3a"}},{"ruleId":"D2","level":"warning","message":{"text":"openai.patchNativeOpenAIReasoning (cognitive 17): openai.patchNativeOpenAIReasoning has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 5, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/native_reasoning_compat.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fc2f822dcbb82bee0f5b57d9b8def9ba86e0585b05bd12c46fafe297548c8cc"}},{"ruleId":"D2","level":"warning","message":{"text":"security.runCommandWithPTY (cognitive 17): security.runCommandWithPTY has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1, match/switch 1 (nesting depth added 5). Of this number, 14 points are the body\u0027s own statements and 3 belong to 2 function literals inside it that branch. To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"4598b387f051da616b51eb1b6c5c586a39b15857a956063b89b8ca7196425aad"}},{"ruleId":"D2","level":"warning","message":{"text":"Executor.RegisterTools (cognitive 17): Executor.RegisterTools has cognitive complexity 17 (threshold 15). Drivers by points: if/else 7 (15 pts), boolean chains 1, loops 1 (nesting depth added 8). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"97bee3725d11edc2651d0e067573c095e329cb54465018a4bb98c4562e5d36cb"}},{"ruleId":"D2","level":"warning","message":{"text":"skillpackage.ValidateAgentSkillManifest (cognitive 17): skillpackage.ValidateAgentSkillManifest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/skillpackage/validate.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c17a05332fa58399e95ba895fc2ce9adc87b1f07f5c5bc3ede484efd6357fd9"}},{"ruleId":"D2","level":"warning","message":{"text":"toolguard.candidateTexts (cognitive 17): toolguard.candidateTexts has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), loops 4 (7 pts), match/switch 1 (nesting depth added 6). Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 2 function literals inside it that branch (lines 216, 199). 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":"internal/toolguard/toolguard.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d244b3a635561f56d6025fc5451e3b3f8f3c147e9db40061c6d725a9973495c"}},{"ruleId":"D2","level":"warning","message":{"text":"vision.compressWithImaging (cognitive 17): vision.compressWithImaging has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (13 pts), loops 2 (3 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":"internal/vision/preprocess.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"78641ed7b64e0fc5558a1584425306210bc30174172dc7834d7996adf9e8a268"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.parseJSONPathTokens (cognitive 17): workflow.parseJSONPathTokens has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (10 pts), loops 2 (4 pts), match/switch 1 (2 pts), boolean chains 1 (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/jsonpath.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"97301c2aa8e0825aa489ab2a092eac857e475772df7d32db1329ff7bbb834b6f"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.runHITLNode (cognitive 17): workflow.runHITLNode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (15 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":"internal/workflow/nodes.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8aa3c5db5d7922b5478b328bda44ab18b17825f9411f8077c1a22dc046c303"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.fofaResultToAsset (cognitive 17): assets.fofaResultToAsset has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 7 (8 pts), boolean chains 5, if/else 2 (3 pts), loops 1 (nesting depth added 2). 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 items inside it that branch (value, firstValue). 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":"web/static/js/assets.js"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7844fe75eea6af0a4d09af00e2cd2cd6f64a226c5be0d87791bb32e98bd3e8d"}},{"ruleId":"D2","level":"warning","message":{"text":"c2.C2.renderEvents (cognitive 17): c2.C2.renderEvents has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 7 (8 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4291}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d74ef46394625e86539e4670614cb6c12d29d7a58b7d17c14e6f4a0ee03760d"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.openChatSystemModelView (cognitive 17): chat.openChatSystemModelView has cognitive complexity 17 (threshold 15). Drivers by points: if/else 13 (16 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b6adb5b89f04b663c9cf6a75c4269f028b0cdb0b23df72ed1fc8083642b328b"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.openChatSessionSettings (cognitive 17): chat.openChatSessionSettings has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11, boolean chains 5, ternaries 1. Of this number, 15 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"b17242742645cdb9111669614de1c86d23229f188b0f7e61de04c93c71f27146"}},{"ruleId":"D2","level":"warning","message":{"text":"chat.setAssistantTurnTiming (cognitive 17): chat.setAssistantTurnTiming has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (10 pts), boolean chains 6, ternaries 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5119}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea35701b480d8aa1316058122dcbd65470b4bd587063720729edcce0b0b9fce"}},{"ruleId":"D2","level":"warning","message":{"text":"fact-graph.applyElkLayout (cognitive 17): fact-graph.applyElkLayout has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 8 (9 pts), boolean chains 6, if/else 2 (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 3 function literals inside it that branch (lines 509, 532, 531). 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":"web/static/js/fact-graph.js"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2d82a215768a358eb85e2ca73df76cd660886af481495bc0ffde1c880f3eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"hitl.applyHitlDefaultConfigFromServer (cognitive 17): hitl.applyHitlDefaultConfigFromServer has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 6, ternaries 2 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"abbc34a9e545dc59c5085a5984cd6252635c8a15988ca316a2384ec96ed22507"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.piMainStreamPlanningTitle (cognitive 17): monitor.piMainStreamPlanningTitle has cognitive complexity 17 (threshold 15). Drivers by points: if/else 5 (6 pts), ternaries 4 (6 pts), boolean chains 5 (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":"web/static/js/monitor.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3027cb042554a16d9eb5fc5a075b5e089551b6ab7d918d6c812e8cfecc7e17b"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.findRestoredMainResponseStreamItem (cognitive 17): monitor.findRestoredMainResponseStreamItem has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), boolean chains 5, ternaries 3, loops 1 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa3464437e856e85de8fc953a751422eb4d37e0aaf0883a338f4ce0bae5659f7"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.setHitlApprovalTaskAvailability (cognitive 17): monitor.setHitlApprovalTaskAvailability has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 6 (nesting depth added 2). Of this number, 13 points are the body\u0027s own statements and 4 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":"web/static/js/monitor.js"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a3b287678496836ce5323d33d0f34b2cc42e384d65873eb7d84bc1a8cbaae4a"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderToolCallApprovalSummary (cognitive 17): monitor.renderToolCallApprovalSummary has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, if/else 5 (6 pts), ternaries 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4432}}}],"partialFingerprints":{"codehealthFindingId/v1":"350a78f7c8d074003268c694b4ccb5a6ffc11a78a3b7f526115369ed107fc83c"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.renderDirectHitlSidebarApproval (cognitive 17): monitor.renderDirectHitlSidebarApproval has cognitive complexity 17 (threshold 15). Drivers by points: if/else 12 (14 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4923}}}],"partialFingerprints":{"codehealthFindingId/v1":"35919fac5d25eea7ea342eea2c9e153c21f7b1c3538545aee39d572a61502383"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.getProjectApprovalTiming (cognitive 17): projects.getProjectApprovalTiming has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 4, ternaries 4, error handling 1 (2 pts) (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2659}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcb6fe102a545fe7d16fc237d8a2069b62ea36138a08d16cde0f102185d2501"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.createProjectTaskStatus (cognitive 17): projects.createProjectTaskStatus has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 4 (7 pts), if/else 5 (6 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2780}}}],"partialFingerprints":{"codehealthFindingId/v1":"a73cc01ecb43a94901802f7ca6dab639ef7bea83b797fc95f80aba9f96484b15"}},{"ruleId":"D2","level":"warning","message":{"text":"roles.toggleRoleSelectionPanel (cognitive 17): roles.toggleRoleSelectionPanel has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (16 pts), boolean chains 1 (nesting depth added 7). 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, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e531ab9624d4f70648f436a8e408e8b095a32edb885dec56d2ae9be01adb01"}},{"ruleId":"D2","level":"warning","message":{"text":"update.renderUpdateRemoteBody (cognitive 17): update.renderUpdateRemoteBody has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 8 (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":"web/static/js/update.js"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b0df55af999ea3a2d5a793948f56212f8775d7f7a10a5ebc72e0771f845ee35"}},{"ruleId":"D2","level":"warning","message":{"text":"workflows.graphToElements (cognitive 17): workflows.graphToElements has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 14, ternaries 3. Most of this is not in the body itself: 2 of the 17 points are its own statements and the rest belongs to 3 function literals inside it that branch (lines 186, 200, 209). 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":"web/static/js/workflows.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97bde1c96bd4078082629e2b3ba11733dfa872979b92e5a33a1903778bbdc7d"}},{"ruleId":"D2","level":"warning","message":{"text":"renderAuditLogs (cognitive 17): renderAuditLogs has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 9, ternaries 5, if/else 3. Most of this is not in the body itself: 4 of the 17 points are its own statements and the rest belongs to 2 function items inside it that branch (a function literal at line 337, escapeHtml). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49904ba1c96c0cd353607b7cdd444ebf757c35f329c3c001fb12cb23c9e0ac1"}},{"ruleId":"D2","level":"warning","message":{"text":"generateRobotBindingCode (cognitive 17): generateRobotBindingCode has cognitive complexity 17 (threshold 15). Drivers by points: if/else 10 (12 pts), boolean chains 3, error handling 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":"web/static/js/auth.js"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcb1ca71860dbb281e9f8138f21f78b264ab29a5584094d4561c47d5f9f54162"}},{"ruleId":"D2","level":"warning","message":{"text":"chatFilesUploadFile (cognitive 17): chatFilesUploadFile has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 5, if/else 5, ternaries 3 (5 pts), error handling 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":"web/static/js/chat-files.js"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cc94a270c1585d6ee64d7baabb0e35813f657c4cfe2d0736365279e755152fc"}},{"ruleId":"D2","level":"warning","message":{"text":"uploadOneChatAttachment (cognitive 17): uploadOneChatAttachment has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (7 pts), ternaries 4 (6 pts), boolean chains 2, error handling 2 (nesting depth added 3). Of this number, 16 points are the body\u0027s own statements and 1 belongs to 5 function items inside it that branch. To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2671}}}],"partialFingerprints":{"codehealthFindingId/v1":"97d45e48211aba997db0a8340c07ce48d45008fcf4683326b4d4ba657face110"}},{"ruleId":"D2","level":"warning","message":{"text":"prefetchLastAssistantProcessDetails (cognitive 17): prefetchLastAssistantProcessDetails has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8, boolean chains 7, error handling 1, ternaries 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6319}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9da4af6937ccda4a47dc3d07f57534648453deb949a55a55f0177320135f34b"}},{"ruleId":"D2","level":"warning","message":{"text":"renderExternalMcpHealth (cognitive 17): renderExternalMcpHealth has cognitive complexity 17 (threshold 15). Drivers by points: if/else 8 (9 pts), boolean chains 5, other 3 (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":"web/static/js/dashboard.js"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a74a333153a90394f879a29e39d80459f6edca3ed1f4f261d162bdecf246955"}},{"ruleId":"D2","level":"warning","message":{"text":"switchHitlPageTab (cognitive 17): switchHitlPageTab has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (9 pts), if/else 8 (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":"web/static/js/hitl.js"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"5075e97218614e32e52f2a647f7cf2fc64d2be6bfdba7c6487660d904c0c8305"}},{"ruleId":"D2","level":"warning","message":{"text":"submitFofaSearch (cognitive 17): submitFofaSearch has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 8, if/else 4 (5 pts), error handling 2, ternaries 1 (2 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":"web/static/js/info-collect.js"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"a88e70b175dc7e6228c712edcd3d5cbb56125969d7d9b3747d9d30a07280322c"}},{"ruleId":"D2","level":"warning","message":{"text":"requestFullscreenSafe (cognitive 17): requestFullscreenSafe has cognitive complexity 17 (threshold 15). Drivers by points: error handling 4 (8 pts), if/else 4 (5 pts), boolean chains 4 (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":"web/static/js/mobile-ui.js"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"522d18a914e9bd91d4167d394691fe5aeac4b73ec950161e29d3a020ddb058f7"}},{"ruleId":"D2","level":"warning","message":{"text":"enableDrawerSwipe (cognitive 17): enableDrawerSwipe has cognitive complexity 17 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 4, ternaries 1 (nesting depth added 1). Most of this is not in the body itself: 1 of the 17 points is its own statement and the rest belongs to 3 function literals inside it that branch (lines 990, 1008, 982). 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":"web/static/js/mobile-ui.js"},"region":{"startLine":975}}}],"partialFingerprints":{"codehealthFindingId/v1":"09b2f1f1b911faaade7c2e8a9ad7b2872d4be5bb015c1d08f24bb3d16c956080"}},{"ruleId":"D2","level":"warning","message":{"text":"batchDeleteExecutions (cognitive 17): batchDeleteExecutions has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 5 (8 pts), error handling 3 (4 pts), if/else 3, boolean chains 2 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9451}}}],"partialFingerprints":{"codehealthFindingId/v1":"66aadf3d79e1d916d5d0fbb94483b01a82d4a899d5386301acb52b99fc1772fd"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRbacUsers (cognitive 17): renderRbacUsers has cognitive complexity 17 (threshold 15). Drivers by points: ternaries 9 (11 pts), boolean chains 3, if/else 3 (nesting depth added 2). Most of this is not in the body itself: 8 of the 17 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 565, 559, 567, \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":"web/static/js/rbac.js"},"region":{"startLine":552}}}],"partialFingerprints":{"codehealthFindingId/v1":"878d135a7292cc2785013a623a22a805bf3453481a43bad807154b96a35c17e8"}},{"ruleId":"D2","level":"warning","message":{"text":"saveInlineConcurrency (cognitive 17): saveInlineConcurrency has cognitive complexity 17 (threshold 15). Drivers by points: boolean chains 7, if/else 5 (6 pts), error handling 2 (3 pts), ternaries 1 (nesting depth added 2). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2747}}}],"partialFingerprints":{"codehealthFindingId/v1":"3787238101c8b7e06f736a991d39592e42a104f820217ea4ccf24b83c5de18f3"}},{"ruleId":"D2","level":"warning","message":{"text":"configForRequest (cognitive 17): configForRequest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 4 (8 pts), ternaries 2 (5 pts), loops 2 (3 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":"web/static/js/tool-guard.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c6c5deb87392d569931e61890a62e4c964a467f64f2968d3184522e6a2a6e74"}},{"ruleId":"D2","level":"warning","message":{"text":"revealValidationError (cognitive 17): revealValidationError has cognitive complexity 17 (threshold 15). Drivers by points: if/else 6 (8 pts), ternaries 3 (5 pts), boolean chains 4 (nesting depth added 4). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tool-guard.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"125d8baed1f1939528f1afcdf86aea455c9192854bfcbe9d17e3dc915bf803c1"}},{"ruleId":"D2","level":"warning","message":{"text":"confirmVulnerabilityRetest (cognitive 17): confirmVulnerabilityRetest has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, error handling 2, ternaries 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"49b4cc9cd86f3c36ab9f8ecc18b8a32e06cdc5ae7942b6de0274549c18b22282"}},{"ruleId":"D2","level":"warning","message":{"text":"runWebshellAiSend (cognitive 17): runWebshellAiSend has cognitive complexity 17 (threshold 15). Drivers by points: if/else 109 (226 pts), ternaries 59 (182 pts), boolean chains 97, error handling 6 (17 pts), loops 1 (nesting depth added 251). 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":"web/static/js/webshell.js"},"region":{"startLine":3383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f63612199c6719a266966f95eb07de98a8b385b5007fe1ae9148d605107523b1"}},{"ruleId":"D2","level":"warning","message":{"text":"main.updateCommandIfNeeded (cognitive 16): main.updateCommandIfNeeded has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, match/switch 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":"cmd/server/update_cli.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"48902c36d3f558301ef61693b3b173ad729fbbc5e02ec77a9b5ed205d6063dae"}},{"ruleId":"D2","level":"warning","message":{"text":"app.setupRoutes (cognitive 16): app.setupRoutes has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. None of this is in the body itself: all 16 points belong to 16 function literals inside it that branch (lines 1011, 1209, 1220, \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":"internal/app/app.go"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e38376eaafd1ffb1fd5b1149ae8d8f1fb8225c9330fbf9f71d701b6979d1dbf"}},{"ruleId":"D2","level":"warning","message":{"text":"app.scopedProjectMemoryEdges (cognitive 16): app.scopedProjectMemoryEdges has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (12 pts), loops 2 (3 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":"internal/app/project_fact_tools.go"},"region":{"startLine":443}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcb1d914f74e32fa875ba5470203211e6818cb1dc79eb72569cd3b76db82a20e"}},{"ruleId":"D2","level":"warning","message":{"text":"HTTPBeaconListener.handleFileServe (cognitive 16): HTTPBeaconListener.handleFileServe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (11 pts), boolean chains 3, loops 1 (2 pts) (nesting depth added 3). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_http.go"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed499da1e7fe3b0278facd96afb5f525e078cadfaa3bc312ab9ac6bae3859afd"}},{"ruleId":"D2","level":"warning","message":{"text":"SessionWatchdog.expireOfflineCommands (cognitive 16): SessionWatchdog.expireOfflineCommands has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), boolean chains 2, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/session_watchdog.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2a1d54bdc8ade6537fae4160b6294a9aa2bc0736bc6d88e82ca3e64ff65f03"}},{"ruleId":"D2","level":"warning","message":{"text":"config.RemoveVersion (cognitive 16): config.RemoveVersion has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (13 pts), boolean chains 2, loops 1 (nesting depth added 5). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1829}}}],"partialFingerprints":{"codehealthFindingId/v1":"060ebedca23c2287c19c60b9232d96691f1a795c774a9607088a7c50e8fba207"}},{"ruleId":"D2","level":"warning","message":{"text":"DB.ReplaceIncomingProjectFactEdges (cognitive 16): DB.ReplaceIncomingProjectFactEdges has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (14 pts), boolean chains 1, loops 1 (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project_fact_edges.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc78a6f3cd2ad60ee001117831735599770264afb1f0b0839693c2f941d46d59"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.relocateManualOrNewUploadToConversation (cognitive 16): handler.relocateManualOrNewUploadToConversation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (12 pts), boolean chains 3, loops 1 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"549a149e8be4f7a4892543e1ad44c7db64ac055d698f785c06b118e09f388821"}},{"ruleId":"D2","level":"warning","message":{"text":"handler.findBoolInMap (cognitive 16): handler.findBoolInMap has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (13 pts), boolean chains 2, 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":"internal/handler/config.go"},"region":{"startLine":2839}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ffa11f5116f5807399c73fd575e4b5713af93b93afba42b66f442d253e7dcd6"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.SubscribeAgentTaskEvents (cognitive 16): AgentHandler.SubscribeAgentTaskEvents has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (13 pts), match/switch 1 (2 pts), 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":"internal/handler/agent.go"},"region":{"startLine":1749}}}],"partialFingerprints":{"codehealthFindingId/v1":"167333197f10cd838f1840d5061ec9c61c2e3a0713953d4ebd4c0ce5582b8eb0"}},{"ruleId":"D2","level":"warning","message":{"text":"AgentHandler.loadHistoryFromAgentTrace (cognitive 16): AgentHandler.loadHistoryFromAgentTrace has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (15 pts), boolean chains 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":"internal/handler/agent.go"},"region":{"startLine":2501}}}],"partialFingerprints":{"codehealthFindingId/v1":"6451ea6d6616201c1c6c4689506336e42fb24767ebe309f3cde44567f5ac9410"}},{"ruleId":"D2","level":"warning","message":{"text":"BatchTaskManager.GetAllQueues (cognitive 16): BatchTaskManager.GetAllQueues has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (12 pts), loops 2 (4 pts) (nesting depth added 10). To reduce it, flatten the nesting: this score is depth rather than breadth \u2014 most of its points come from checks stacked inside one another, so the work sits several levels in. Invert each enclosing check into an early exit (a return, or the language\u0027s equivalent) so the happy path stays at one level, and where a level cannot be exited early, lift the block it encloses into its own named function."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":411}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90be225de3cc3f2c7db16d10edf44d37ee486433f570c8a9b3b3f15e0171795"}},{"ruleId":"D2","level":"warning","message":{"text":"FofaHandler.resolveBaseURL (cognitive 16): FofaHandler.resolveBaseURL has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (13 pts), match/switch 2 (3 pts) (nesting depth added 9). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"4addf170f3cf9626d173ea8ba7ec174a0b7a50b9e1b3644ffa672b44d7756495"}},{"ruleId":"D2","level":"warning","message":{"text":"FofaHandler.ParseNaturalLanguage (cognitive 16): FofaHandler.ParseNaturalLanguage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), boolean chains 1 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe0ca1d617be6bf377c508d1182de6ffe705e1f6c349ccc1a652eb02350479c"}},{"ruleId":"D2","level":"warning","message":{"text":"KnowledgeHandler.ScanKnowledgeBase (cognitive 16): KnowledgeHandler.ScanKnowledgeBase has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (14 pts), boolean chains 1, loops 1 (nesting depth added 7). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 386). 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":"internal/handler/knowledge.go"},"region":{"startLine":372}}}],"partialFingerprints":{"codehealthFindingId/v1":"c447b23964213cad913f5304fbcd8c2a9cf6b6d9db40b16f0180472a0ef7985e"}},{"ruleId":"D2","level":"warning","message":{"text":"TerminalHandler.RunCommandStream (cognitive 16): TerminalHandler.RunCommandStream has cognitive complexity 16 (threshold 15). Drivers by points: if/else 12 (15 pts), boolean chains 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"f59126891f3c5996c45e0bda0cf17c22814b48d65be86c4bdbd3398ae470a01f"}},{"ruleId":"D2","level":"warning","message":{"text":"VulnerabilityHandler.ListVulnerabilities (cognitive 16): VulnerabilityHandler.ListVulnerabilities has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5 (nesting depth added 1). To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f045314ec1460881321f3410d0cab73a5b344dd63ca46ce909394eb1e101c2f"}},{"ruleId":"D2","level":"warning","message":{"text":"VulnerabilityHandler.DownloadVulnerability (cognitive 16): VulnerabilityHandler.DownloadVulnerability has cognitive complexity 16 (threshold 15). Drivers by points: if/else 11 (13 pts), boolean chains 3 (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, and where an else follows a branch that already returns, drop the trailing else and let the rest of the body continue at one level."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability_download.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2c109566f5831396bf968d835cd355fc5fd700e4b22f5bad1369022f978d492"}},{"ruleId":"D2","level":"warning","message":{"text":"hitl.DecideJev (cognitive 16): hitl.DecideJev has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (11 pts), boolean chains 4, loops 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":"internal/hitl/jev.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc129d626ffd51921ffb9f5c821551ac89ca2c3cd10df046a07d1c3a527f6610"}},{"ruleId":"D2","level":"warning","message":{"text":"Client.ListModels (cognitive 16): Client.ListModels has cognitive complexity 16 (threshold 15). Drivers by points: if/else 13 (15 pts), 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":"internal/openai/openai.go"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddd7f014bb42e8611eb91c5b4828cb9132ecb589cae38f0b7ef328c78d5b4f2"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.parseFieldBinding (cognitive 16): workflow.parseFieldBinding has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (10 pts), boolean chains 3, match/switch 1 (2 pts), 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":"internal/workflow/bindings.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcf0d989488b2f96d791ab4db90eb145fe19b6ae451c64f82b9df12e7bc4b2af"}},{"ruleId":"D2","level":"warning","message":{"text":"workflow.findStartNodeIDs (cognitive 16): workflow.findStartNodeIDs has cognitive complexity 16 (threshold 15). Drivers by points: loops 5 (10 pts), if/else 3 (6 pts) (nesting depth added 8). To reduce it, break up the iteration: give each loop body a named function, and split a multi-phase loop into one function per phase so no single body carries the whole pipeline."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/graph_types.go"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c723fd1a0ab122a7f7aa5409969c16889f1777dc40fefdae30882bbb0824601d"}},{"ruleId":"D2","level":"warning","message":{"text":"formatter.toPrompt (cognitive 16): formatter.toPrompt has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 11, ternaries 2 (3 pts), if/else 2 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/formatter.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e04a790d4adabae3301296a385cead2a142e3312027958fe1f0423230f878c"}},{"ruleId":"D2","level":"warning","message":{"text":"storage.saveConfig (cognitive 16): storage.saveConfig has cognitive complexity 16 (threshold 15). Drivers by points: if/else 16. 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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/storage.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"6891a006cb3b835dd974c6764745c40091842dd1caca4950806704d51790e6b3"}},{"ruleId":"D2","level":"warning","message":{"text":"agents.bindAgentsMdListDelegation (cognitive 16): agents.bindAgentsMdListDelegation has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), error handling 2 (6 pts), boolean chains 2 (nesting depth added 6). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 13). 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":"web/static/js/agents.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7036b4eccdc2cad696bddec06e23b44891813932903c311a51e31352736c9a8"}},{"ruleId":"D2","level":"warning","message":{"text":"assets.loadAssets (cognitive 16): assets.loadAssets has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 6 (7 pts), error handling 1 (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"417a4e69fa9178b84c7002aa3aa13d7c854abd4202bf30007b62e18bc46b362f"}},{"ruleId":"D2","level":"warning","message":{"text":"c2.C2.waitForFileDownload (cognitive 16): c2.C2.waitForFileDownload has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 5, error handling 1 (3 pts) (nesting depth added 3). None of this is in the body itself: all 16 points belong to 2 function items inside it that branch (a function literal at line 3147, check). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":3140}}}],"partialFingerprints":{"codehealthFindingId/v1":"47aefcf28e50e204da429989e7b33c74255a508bdc2786841263a3f896ceac84"}},{"ruleId":"D2","level":"warning","message":{"text":"chat._acBuildSvgString::themeFor (cognitive 16): chat._acBuildSvgString::themeFor has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (9 pts), boolean chains 5, 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":"web/static/js/chat.js"},"region":{"startLine":8573}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1742625e10a7b4280dbc897eaf217f11accbe47cecb992302872845c1acbd72"}},{"ruleId":"D2","level":"warning","message":{"text":"dashboard.renderDashboardWebshellRecent (cognitive 16): dashboard.renderDashboardWebshellRecent has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 9, if/else 4, ternaries 2, error handling 1. Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 619, 613, 634, \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":"web/static/js/dashboard.js"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0203b41806e6f59c1b8a40d5d1b8959bf254dcb9305555f9df15db04ea198f"}},{"ruleId":"D2","level":"warning","message":{"text":"hitl.resolveHitlGlobalToolWhitelist (cognitive 16): hitl.resolveHitlGlobalToolWhitelist has cognitive complexity 16 (threshold 15). Drivers by points: if/else 4 (11 pts), error handling 2 (3 pts), boolean chains 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":"web/static/js/hitl.js"},"region":{"startLine":434}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1dcb515b4f244d4a50b91ea563909c76f11cae62bc7db62d94c1dfc9af0fdbe"}},{"ruleId":"D2","level":"warning","message":{"text":"info-collect.setFofaParseLoading (cognitive 16): info-collect.setFofaParseLoading has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (11 pts), boolean chains 5 (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":"web/static/js/info-collect.js"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dfca97b698733444ae04391faf701d79ee43cff6f6c07dfc6934ae4d2a2b7da"}},{"ruleId":"D2","level":"warning","message":{"text":"mobile-ui.enableSheetSwipe (cognitive 16): mobile-ui.enableSheetSwipe has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9, boolean chains 6, ternaries 1. None of this is in the body itself: all 16 points belong to 3 function literals inside it that branch (lines 1040, 1051, 1029). 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":"web/static/js/mobile-ui.js"},"region":{"startLine":1023}}}],"partialFingerprints":{"codehealthFindingId/v1":"946537bb1e2c7d6a23dd033f0f1223290db51a05850246f8d0c19f35123a3802"}},{"ruleId":"D2","level":"warning","message":{"text":"modal.document.addEventListener(\u0022keydown\u0022) (cognitive 16): modal.document.addEventListener(\u0022keydown\u0022) has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6 (nesting depth added 3). Of this number, 15 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":"web/static/js/modal.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c5d999d647c665de6e5824e1204edcd19e06950fc18114df2bcadec1ab42c6e"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.formatTimelineStreamBody (cognitive 16): monitor.formatTimelineStreamBody has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 5, ternaries 1 (2 pts), error handling 1 (nesting depth added 3). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5384744b78764bd1fb75aa3a0481020e6a1420cd7bcd1d66f35c58d5af92f42"}},{"ruleId":"D2","level":"warning","message":{"text":"monitor.buildTimelineSparseHint (cognitive 16): monitor.buildTimelineSparseHint has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 10, if/else 4, ternaries 2. Of this number, 12 points are the body\u0027s own statements and 4 belong to 2 function literals inside it that branch. To reduce it, 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":"web/static/js/monitor.js"},"region":{"startLine":8027}}}],"partialFingerprints":{"codehealthFindingId/v1":"df0a2a3e28e8dcfbfeb9c09f8a5d2745cb27b2c24cf785bd8dd707b284cfa880"}},{"ruleId":"D2","level":"warning","message":{"text":"projects.showEditProjectModal (cognitive 16): projects.showEditProjectModal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 3, error handling 1 (2 pts) (nesting depth added 2). Of this number, 14 points are the body\u0027s own statements and 2 belong to one function literal inside it that branches. To reduce it, 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":"web/static/js/projects.js"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"b15f687146c90e2e7f6dbcb4263da6790164e863cf534c2bb35b3a908398fa66"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.getRobotStatus (cognitive 16): settings.getRobotStatus has cognitive complexity 16 (threshold 15). Drivers by points: if/else 10, boolean chains 6. Of this number, 15 points are the body\u0027s own statements and 1 belongs to one function item 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":"web/static/js/settings.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d457d1ac061191d06c1eb6bcd9825cfd454636c8b68b836f66b4cb9fdd10eee"}},{"ruleId":"D2","level":"warning","message":{"text":"settings.readAIChannelFromMainForm (cognitive 16): settings.readAIChannelFromMainForm has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 15, if/else 1. To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc483d9f673328ac03da5d83e58293c8ad3ad252c891bd8d8013b46cd5bf2b7"}},{"ruleId":"D2","level":"warning","message":{"text":"storage.renderOverview (cognitive 16): storage.renderOverview has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 4, ternaries 3 (4 pts) (nesting depth added 1). To reduce it, name the conditions: bind each compound test to a well-named local or a small predicate function, so the body reads as a sequence of named decisions rather than a chain of operators."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/storage.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb70f700ad2fd8926077e27240c495ade83894f73f97721940b0c985906f76f4"}},{"ruleId":"D2","level":"warning","message":{"text":"vulnerability.saveVulnerability (cognitive 16): vulnerability.saveVulnerability has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7, boolean chains 6, ternaries 2, error handling 1. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a8363224ee03d90ee722c450b47cd5a8518986b180cc74bb9cb1dc9a3c6c35d"}},{"ruleId":"D2","level":"warning","message":{"text":"parseAssetImportMatrix (cognitive 16): parseAssetImportMatrix has cognitive complexity 16 (threshold 15). Drivers by points: if/else 9 (10 pts), boolean chains 4, other 2 (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 4 function literals inside it that branch (lines 299, 301, 293, \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":"web/static/js/assets.js"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"dddb07b93b1a8ed17db786173e4d00f5113437880ffd832858441da63b5ab26e"}},{"ruleId":"D2","level":"warning","message":{"text":"renderAuditLogsPagination (cognitive 16): renderAuditLogsPagination has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8, boolean chains 6, if/else 2. Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"05cc849357dd6d6d186850f353f0cbc49eedbba696803aa173482635235eaf3d"}},{"ruleId":"D2","level":"warning","message":{"text":"renderHitlPagination (cognitive 16): renderHitlPagination has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 8, boolean chains 6, if/else 2. Of this number, 14 points are the body\u0027s own statements and 2 belong to 2 function items inside it that branch. To reduce it, split the body: this score is breadth rather than depth \u2014 many checks laid out side by side rather than nested inside one another, so inverting conditions into early returns has nothing left to flatten. Group the statements between the checks into named steps and move each step into its own function, so the body reads as a short sequence of named stages."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca3975778610832d616160b7a1b70d33d012a42a49a113d46ee814b7c34d545a"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 16): (anonymous) has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (10 pts), boolean chains 6 (nesting depth added 3). Of this number, 15 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":"web/static/js/modal.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"50161cf6dc5246bc6c3cbb5b2585f705455613d10331c746f6c37ed34fd78394"}},{"ruleId":"D2","level":"warning","message":{"text":"bindMcpStatsTimelineEvents (cognitive 16): bindMcpStatsTimelineEvents has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, if/else 8. Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to 10 function items inside it that branch (a function literal at line 7961, a function literal at line 7985, (anonymous)::onclick, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7942}}}],"partialFingerprints":{"codehealthFindingId/v1":"27f5ec258e5c68c2e9d8563a8f98ff4b3b97259b1ab8b40f6c95826b49102309"}},{"ruleId":"D2","level":"warning","message":{"text":"fillFactModalForm (cognitive 16): fillFactModalForm has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), boolean chains 6, ternaries 1 (2 pts) (nesting depth added 2). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition, 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":"web/static/js/projects.js"},"region":{"startLine":2339}}}],"partialFingerprints":{"codehealthFindingId/v1":"00c22b7f55c4436993e425edfb09c70ce0cf03533c383dccfea299151843b21a"}},{"ruleId":"D2","level":"warning","message":{"text":"renderRoleSelectionSidebar (cognitive 16): renderRoleSelectionSidebar has cognitive complexity 16 (threshold 15). Drivers by points: if/else 5 (6 pts), boolean chains 4, error handling 1 (3 pts), ternaries 3 (nesting depth added 3). Most of this is not in the body itself: 1 of the 16 points is its own statement and the rest belongs to 5 function items inside it that branch (a function literal at line 429, getRoleIcon, (anonymous)::onkeydown, \u2026). The named helpers are already separate functions; the literals\u0027 work cannot be called, reviewed or tested from outside this body. To reduce it, move the named helpers out of the body to the enclosing scope and lift each literal\u0027s work into a named function there, so each is measured, reviewed and tested on its own, and reduce whichever one then reads as the largest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfc83ba24ddbf8a9a9fe54a95de2b15fa659aa91a25e0ea87f5094185f0b247"}},{"ruleId":"D2","level":"warning","message":{"text":"installDomPurifyHooks (cognitive 16): installDomPurifyHooks has cognitive complexity 16 (threshold 15). Drivers by points: if/else 6 (8 pts), boolean chains 7, loops 1 (nesting depth added 2). Most of this is not in the body itself: 3 of the 16 points are its own statements and the rest belongs to one function literal inside it that branches (line 46). 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":"web/static/js/sanitize-markdown.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bd29f429421e40cd84efc183d4998edadc91abb63406e8ecac36df1564d34f4"}},{"ruleId":"D2","level":"warning","message":{"text":"initTerminal (cognitive 16): initTerminal has cognitive complexity 16 (threshold 15). Drivers by points: if/else 8 (10 pts), error handling 3 (4 pts), boolean chains 2 (nesting depth added 3). Most of this is not in the body itself: 7 of the 16 points are its own statements and the rest belongs to 5 function literals inside it that branch (lines 516, 497, 524, \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":"web/static/js/terminal.js"},"region":{"startLine":490}}}],"partialFingerprints":{"codehealthFindingId/v1":"e38beb5c03f809462d7968dc77055c74a105a88bf86804ac849129b2698e67d4"}},{"ruleId":"D2","level":"warning","message":{"text":"refreshTokenUsage (cognitive 16): refreshTokenUsage has cognitive complexity 16 (threshold 15). Drivers by points: if/else 7 (8 pts), ternaries 4 (6 pts), boolean chains 1, error handling 1 (nesting depth added 3). To reduce it, split the body: most of this score is breadth rather than depth \u2014 checks laid out side by side rather than stacked \u2014 so group the statements between the checks into named steps and move each step into its own function. Some of it IS depth: where a check sits inside another whose only job is to reach it, merge the two into one condition."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/token-usage.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dc71c430158b55d5dcff181e36e9a206b0c33366006d30fc192910bb9beb4d6"}},{"ruleId":"D2","level":"warning","message":{"text":"webshellFileRead (cognitive 16): webshellFileRead has cognitive complexity 16 (threshold 15). Drivers by points: boolean chains 8, ternaries 3 (4 pts), if/else 3, error handling 1 (nesting depth added 1). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 4 function literals inside it that branch (lines 4847, 4863, 4857, \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":"web/static/js/webshell.js"},"region":{"startLine":4839}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf01901ce6a46e0327c028e4c646c46ea68b3734b75eb912d28a0fd84498fbad"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: OpenAPIHandler.GetOpenAPISpec: MethodTooLong \u2014 GetOpenAPISpec runs 4554 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 4454 over it, 45.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":"internal/handler/openapi.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b8a6c101436ad451ae9314bae4788d2e3cac8c862826d776b961912cf8b4ccd"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/chat.js: FileTooLong \u2014 8073 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 7573 over it, 16.15\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":"web/static/js/chat.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"98871e9dfafac911b932ede496b01fbd4c50b8ce7482649802f19fb2486f0014"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/monitor.js: FileTooLong \u2014 7208 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 6708 over it, 14.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":"web/static/js/monitor.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3138817dd5f0d3c331908da2c0e79bf108556a916f0ee7797422f43eaa6ee1cc"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: DB: TooManyMethods \u2014 372 methods, declared across 36 files: database/c2.go (51), database/conversation.go (48), database/rbac.go (38), database/batch_task.go (24), \u002B32 more file(s). The bar is 30 methods; this is 342 over it, 12.40\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/database.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"082a53bba88b7ee4c9d05fe0103e5d3fa246ef5b6cda6d8728d73dd7f5a6b503"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: OpenAPIHandler: ClassTooLong \u2014 4585 significant lines (blank, comment-only and punctuation-only lines excluded), 2 methods, 3 blocks, lines 13-6662. The bar is 400 significant lines; this is 4185 over it, 11.46\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/openapi.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"35030abd07538796a74b19f84294177db2a37484cd010ac1bd0ba77353b1e51f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/openapi.go: FileTooLong \u2014 4597 significant lines (blank, comment-only and punctuation-only lines excluded), about 100% of them inside a single declaration: OpenAPIHandler (3 blocks, 13-6662). The bar is 500 significant lines; this is 4097 over it, 9.19\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":"internal/handler/openapi.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"43c8f7e3d9e2972ca1add37a233087f086a3c40af1f6ff4915f32a587423d7bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/webshell.js: FileTooLong \u2014 4218 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 3718 over it, 8.44\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":"web/static/js/webshell.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"a426ce3cafbe0c0cff39e111fa394baa985ca99c7145e2ef76623f3bba868d79"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/settings.js: FileTooLong \u2014 3691 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 3191 over it, 7.38\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":"web/static/js/settings.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b5f6297faee8d5d9a5540087c64a39a091ebe8dbb71690caa35c93e769ebfb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: webshell.selectWebshell: FunctionTooLong \u2014 selectWebshell runs 736 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 636 over it, 7.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"326631755fe2c51e87b8c73c09b22a299a28d025c734202923b4fedd22029911"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/c2.js: FileTooLong \u2014 3641 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 2141 over it, 2.43\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":"web/static/js/c2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acae3c3780d022e318bda6984a8f72059eea10d245af8c63a9903d87bc5e18d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/projects.js: FileTooLong \u2014 3292 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 2792 over it, 6.58\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":"web/static/js/projects.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"566b487cace3b888029a31568e450db560856497841726375c8eedaaa0a78728"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/workflows.js: FileTooLong \u2014 2438 significant lines (blank, comment-only and punctuation-only lines excluded; the length bar is tripled for a single-responsibility module of 4 or fewer top-level units). The bar is 1500 significant lines; this is 938 over it, 1.63\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":"web/static/js/workflows.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"860c13d71dd85629ed02614c75cccbea11c65b0014a99499f9e4950f8134796d"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentHandler: TooManyMethods \u2014 143 methods, declared across 24 files: handler/agent.go (50), handler/hitl.go (20), handler/hitl_logs.go (12), handler/async_agent_runs.go (9), \u002B20 more file(s). The bar is 30 methods; this is 113 over it, 4.77\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce7d6f88a70b440a845d9d11369e3f600f2dcfd4dcb22623248fbf7af020115d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: handler.RegisterBatchTaskMCPTools: FunctionTooLong \u2014 RegisterBatchTaskMCPTools runs 462 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 362 over it, 4.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":"internal/handler/batch_task_mcp.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"373a3837a051b2ccfcce69d94e974c9825a1edd54f523b4990ed70142dd0b2e4"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.setupRoutes: FunctionTooLong \u2014 setupRoutes runs 452 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 352 over it, 4.52\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":"internal/app/app.go"},"region":{"startLine":948}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccb9b9a02eec95b5b945c9200e214cfe3b852b688912351e82072d6b1c19ada6"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat.renderAttackChain: FunctionTooLong \u2014 renderAttackChain runs 451 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 351 over it, 4.51\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":"web/static/js/chat.js"},"region":{"startLine":7135}}}],"partialFingerprints":{"codehealthFindingId/v1":"f54e30b0a75c7a16bc18051ca3cec4157c39a8066ab610dfdc444831526892c9"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: webshell.runWebshellAiSend: FunctionTooLong \u2014 runWebshellAiSend runs 436 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 336 over it, 4.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3383}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ea1f71e0afc6ce642400eb645c7dd415329e67ade8a18f1cdaadf0cd85d196"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/tasks.js: FileTooLong \u2014 2095 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 1595 over it, 4.19\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":"web/static/js/tasks.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da062ce3f035ef2643b744074fb1c6aa8f401899b532640a83c1190964229411"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/config.go: FileTooLong \u2014 2086 significant lines (blank, comment-only and punctuation-only lines excluded), about 64% of them inside a single declaration: ConfigHandler (40 blocks, 77-3067). The bar is 500 significant lines; this is 1586 over it, 4.17\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":"internal/handler/config.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac2c89716f7029c6f3232164f6f0b276ea5be8e061a94bf5e21cd35fdf5afb7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/vulnerability.js: FileTooLong \u2014 2048 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 1548 over it, 4.10\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":"web/static/js/vulnerability.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5a7c82b701b9f96dc0890bcbdb11b722c7f8d482837eb151a361a6e7b625505"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.New: FunctionTooLong \u2014 New runs 401 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 301 over it, 4.01\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":"internal/app/app.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fdd185c51b96101a3dea6d96a86ed2a4cc20330d3ade138757c0826dd372ca7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat.renderProcessDetails: FunctionTooLong \u2014 renderProcessDetails runs 379 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 279 over it, 3.79\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":"web/static/js/chat.js"},"region":{"startLine":4069}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5889a82ed0cf045c10b8ad19896498b0399bcbb58b4e253e6b61e035f86edb9"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/dashboard.js: FileTooLong \u2014 1830 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 1330 over it, 3.66\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":"web/static/js/dashboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfdacce239d75e6221a94319d87fa61343ad9534c139aeae8116a7a121057f8d"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentHandler.createProgressCallback: MethodTooLong \u2014 createProgressCallback runs 359 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 259 over it, 3.59\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfa4c0af8a8e2012a1545cc0356549b57fc30019e5fea9580d0b5722ec3b9676"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat._acBuildSvgString: FunctionTooLong \u2014 _acBuildSvgString runs 354 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 254 over it, 3.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":"web/static/js/chat.js"},"region":{"startLine":8484}}}],"partialFingerprints":{"codehealthFindingId/v1":"661a45f0900a089ab176241c458c537a1de09feb10f7808d0cddbf3421d3a043"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/agent.go: FileTooLong \u2014 1699 significant lines (blank, comment-only and punctuation-only lines excluded), about 73% of them inside a single declaration: AgentHandler (51 blocks, 184-2569). The bar is 500 significant lines; this is 1199 over it, 3.40\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":"internal/handler/agent.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef700d8b3252bf86c6bf7bd5f30179c0936ec511a0d6bab021354f622885589b"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/app.go: FileTooLong \u2014 1681 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1181 over it, 3.36\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":"internal/app/app.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcdb533fd2e4e778d6e8a694af7fa580d25ebbd0b7093b8d7ef35428e88f2025"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ConfigHandler: ClassTooLong \u2014 1325 significant lines (blank, comment-only and punctuation-only lines excluded), 47 methods, 40 blocks, lines 77-3067. The bar is 400 significant lines; this is 925 over it, 3.31\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"5bf1f0af075f317b298c7edf3c15b6a92a3233ac61343726b2f500df554f28bf"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.registerWebshellManagementTools: FunctionTooLong \u2014 registerWebshellManagementTools runs 319 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 219 over it, 3.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":1686}}}],"partialFingerprints":{"codehealthFindingId/v1":"394a7e6e97cf506bee96301f56d310523fedaa2e7289e671bc30e29f4ff35bd3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: dashboard.refreshDashboard: FunctionTooLong \u2014 refreshDashboard runs 317 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 217 over it, 3.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":"web/static/js/dashboard.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"12ec3c3076dc9c369e9af5cee1a16f8a2e2fec58f1ed4a0173611349c4444d72"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/hitl.js: FileTooLong \u2014 1576 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 1076 over it, 3.15\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":"web/static/js/hitl.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf47c7b3dd6fd4b303d208f8a224c4f8ef0f2c8fa024a476b4c506d0d0ae70fe"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentHandler.MultiAgentLoopStream: MethodTooLong \u2014 MultiAgentLoopStream runs 315 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 215 over it, 3.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"961247ed8ce9667666d97e339605baf337c42c8491fd42633a8aba09f076424e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/knowledge.js: FileTooLong \u2014 1563 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 1063 over it, 3.13\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":"web/static/js/knowledge.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4689f4f9cbd8c6854cddf5d040944846c5c1d7f6efead9d6cb8a4612fa3ba278"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentHandler: ClassTooLong \u2014 1240 significant lines (blank, comment-only and punctuation-only lines excluded), 143 methods, 51 blocks, lines 184-2569. The bar is 400 significant lines; this is 840 over it, 3.10\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0e9f3895e61d1d230918bec648765d4cfba8504453c932c502dc97e1a0aaf7"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigHandler.UpdateConfig: MethodTooLong \u2014 UpdateConfig 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":"internal/handler/config.go"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"e960705b40a41da09769f2f9011a7775561048ae81d948b2aedac4fa42fd5e2a"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentHandler.SingleAgentLoopStream: MethodTooLong \u2014 SingleAgentLoopStream runs 308 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 208 over it, 3.08\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":"internal/handler/single_agent.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b15ef058c73accc20d86d4b7edeba7c572dfc5aaa3c8df88bb0a41e024bd3e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: config/config.go: FileTooLong \u2014 1532 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 1032 over it, 3.06\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f55f5c9b7f232b4454852d318af718c59d65dc567702cb1ab21eb7ba1fa99b1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/assets.js: FileTooLong \u2014 1484 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 984 over it, 2.97\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"56bb5276ef3c78dd36c960fe816c7ffcb64419977a29fd763bbbdfb45eb5d36e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/chat-files.js: FileTooLong \u2014 1472 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 972 over it, 2.94\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":"web/static/js/chat-files.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0854cadc3225a9b7ef8d40ed2a032fbe0e04d1a7b30606957d4c9deaedbc1501"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: RobotHandler: ClassTooLong \u2014 1174 significant lines (blank, comment-only and punctuation-only lines excluded), 68 methods, 65 blocks, lines 79-1977. The bar is 400 significant lines; this is 774 over it, 2.94\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b195dd9829f449733b5b1ff09e189fe03d221d7efc12363549ef0e0783aabf2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/robot.go: FileTooLong \u2014 1402 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: RobotHandler (65 blocks, 79-1977). The bar is 500 significant lines; this is 902 over it, 2.80\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":"internal/handler/robot.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c5a64d0a438c96b89b29b062b4e82cde725c35817deb1cd9c2e5f0114abe32"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat-files.renderChatFilesTable: FunctionTooLong \u2014 renderChatFilesTable runs 273 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 173 over it, 2.73\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":"web/static/js/chat-files.js"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"52b26e243932323b04146a6765be689b1efb707a7d2c4dbcc20a32b2352ffb20"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.registerProjectFactTools: FunctionTooLong \u2014 registerProjectFactTools runs 266 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 166 over it, 2.66\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":"internal/app/project_fact_tools.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"a15af1dd1d6cf479bb878a120a860918464d229f4dece899c14c6353e524cd37"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Server: ClassTooLong \u2014 1048 significant lines (blank, comment-only and punctuation-only lines excluded), 56 methods, 57 blocks, lines 37-1742. The bar is 400 significant lines; this is 648 over it, 2.62\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"983ae5c667b2eeb8925ec72e2b23bf1b4d47eca936581d8e8995106a6814a14c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/info-collect.js: FileTooLong \u2014 1289 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 789 over it, 2.58\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":"web/static/js/info-collect.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"076630d56d39ab528b2a2d29070fb73f04570393bfa5a2a62d594efc3cb86ee3"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/rbac.js: FileTooLong \u2014 1275 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 775 over it, 2.55\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":"web/static/js/rbac.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8d375fb9b131425539f1f2247af317fc0d6b4bda615e6588c70e1376e0363b5"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/roles.js: FileTooLong \u2014 1251 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 751 over it, 2.50\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":"web/static/js/roles.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2346deb597a37ba785f939cd2ccffd7a7cc2c4cbd69b52dea131e9f565bb13db"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: piRun.run: MethodTooLong \u2014 run runs 249 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 149 over it, 2.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_runner.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f844574e7d79d3f91b9bc64e7da2ebe2592aa805158079249033e648094ca35"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat.loadConversation: FunctionTooLong \u2014 loadConversation runs 248 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 148 over it, 2.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":"web/static/js/chat.js"},"region":{"startLine":6381}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ca6877b8a8c0f7fa37a8b6407cfd14cb2cb7d5644cfbafeafa9e9787f7fd10"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ChatUploadsHandler: ClassTooLong \u2014 985 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods, 35 blocks, lines 43-1516. The bar is 400 significant lines; this is 585 over it, 2.46\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"028f3cc8c8babf3d4744f01bc446c088087637be93394a592d23d14048480885"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/conversation.go: FileTooLong \u2014 1225 significant lines (blank, comment-only and punctuation-only lines excluded), about 82% of them inside a single declaration: DB (48 blocks, 48-1866). The bar is 500 significant lines; this is 725 over it, 2.45\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":"internal/database/conversation.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6068afe175f1ee45832241b04304adc2586b7bf6617c544fae2660e37490ae0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/c2.go: FileTooLong \u2014 1207 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: DB (51 blocks, 155-1953). The bar is 500 significant lines; this is 707 over it, 2.41\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":"internal/database/c2.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"236813fc37aee44ac92ee73bbb6e3169c84d47770b3f1db87cf8582608a109ec"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: ExternalMCPManager: ClassTooLong \u2014 928 significant lines (blank, comment-only and punctuation-only lines excluded), 67 methods, 59 blocks, lines 53-1661. The bar is 400 significant lines; this is 528 over it, 2.32\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"7970d5ea695238e4e5e5e70ec8252e0997a6f4805c71ed0b862d93e40a15a790"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: RobotHandler: TooManyMethods \u2014 68 methods, declared across 2 files: handler/robot.go (64), handler/vulnerability_alert.go (4). The bar is 30 methods; this is 38 over it, 2.27\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"73ac1ef597006a43113cf9ea8891bd63f2a8d4c023e1d4c35616b5f8f4af1b9c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/server.go: FileTooLong \u2014 1128 significant lines (blank, comment-only and punctuation-only lines excluded), about 93% of them inside a single declaration: Server (57 blocks, 37-1742). The bar is 500 significant lines; this is 628 over it, 2.26\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":"internal/mcp/server.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b5c25cb027fb93f37cefd5f438f158e7255a1d35db8314c4b460cac3370a24c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/chat_uploads.go: FileTooLong \u2014 1118 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: ChatUploadsHandler (35 blocks, 43-1516). The bar is 500 significant lines; this is 618 over it, 2.24\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":"internal/handler/chat_uploads.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"626d40cd497f44f90b6c19616859c5df1dee423dc248b2d05a19fab4b88f1884"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ExternalMCPManager: TooManyMethods \u2014 67 methods, declared across 2 files: mcp/external_manager.go (58), mcp/connection_recovery.go (9). The bar is 30 methods; this is 37 over it, 2.23\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"45811436ac879fccea13249a24996a906d856d0a87c4a02e8e40e75a7d5459d7"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat.sendMessage: FunctionTooLong \u2014 sendMessage runs 223 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 123 over it, 2.23\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":"web/static/js/chat.js"},"region":{"startLine":2248}}}],"partialFingerprints":{"codehealthFindingId/v1":"c679a08993975fabb88e755e4ecefac816203974159c3cf3f8901694b06b35fe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: mcp/external_manager.go: FileTooLong \u2014 1039 significant lines (blank, comment-only and punctuation-only lines excluded), about 89% of them inside a single declaration: ExternalMCPManager (59 blocks, 53-1661). 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":"internal/mcp/external_manager.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a750ea56f35a89199ce2a68c5fc93f9623c3c1865e5a23d472bd89edabc9a91"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: C2Handler: ClassTooLong \u2014 817 significant lines (blank, comment-only and punctuation-only lines excluded), 39 methods, 40 blocks, lines 29-1268. The bar is 400 significant lines; this is 417 over it, 2.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"396a010f2dedcc9386bdf06be46ed8e487b7e97d94c4190ebdeebb9e9db62813"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: piRun.executePiLocal: MethodTooLong \u2014 executePiLocal runs 204 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 104 over it, 2.04\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_local_tools.go"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"174dd165f13270564e1253c85b672b4130f3c047a4d6050facaf83c5c9b37225"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: BatchTaskManager: ClassTooLong \u2014 795 significant lines (blank, comment-only and punctuation-only lines excluded), 40 methods, 41 blocks, lines 97-1479. The bar is 400 significant lines; this is 395 over it, 1.99\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"895f0f6048f643fd9e8e52b6c5fdb194fe6802856ff05d26c4cfb621791d0b49"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/asset.go: FileTooLong \u2014 961 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 461 over it, 1.92\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":"internal/database/asset.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5081af2988adb391337440e1cb61af011570d209b7b1a9d6aec07a8ea5aba455"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: panel/panel.js: FileTooLong \u2014 936 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 436 over it, 1.87\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":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20f34d4fe4dcbc6dd64c8f659da2c05f57171d2cacc6e82583adbe27fa676d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: Server: TooManyMethods \u2014 56 methods. The bar is 30 methods; this is 26 over it, 1.87\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e0fa7e6a20f2debaa428eec452efad1fb1338ab70c43d2cfca46430c95c28f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: security/executor.go: FileTooLong \u2014 924 significant lines (blank, comment-only and punctuation-only lines excluded), about 60% of them inside a single declaration: Executor (17 blocks, 34-1496). The bar is 500 significant lines; this is 424 over it, 1.85\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0861f61095b00bcca24f4e22a7fad81a171ad01f87dbc1324384e48e1fc4d9f"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/batch_task_manager.go: FileTooLong \u2014 922 significant lines (blank, comment-only and punctuation-only lines excluded), about 86% of them inside a single declaration: BatchTaskManager (41 blocks, 97-1479). The bar is 500 significant lines; this is 422 over it, 1.84\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":"internal/handler/batch_task_manager.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4650d338ddbdcd5d3cabb61b2934a19e81e3778ed90a75bd29d0a87cafc354"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigHandler.GetTools: MethodTooLong \u2014 GetTools runs 183 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 83 over it, 1.83\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc79b319a8478c4bae6b674228a3e5bbd6b2f10319bc8b937a9c246a6cd6725f"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentHandler.executeOneBatchSubTask: MethodTooLong \u2014 executeOneBatchSubTask runs 180 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 80 over it, 1.80\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_queue_executor.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"39946dab09dcd404033029f70d9cc45117a61e8c5b5a77eb7e6fa416acce5097"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/rbac.go: FileTooLong \u2014 894 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: DB (38 blocks, 90-1315). The bar is 500 significant lines; this is 394 over it, 1.79\u00D7 the bar. Moving the declarations that sit BESIDE it into sibling files will not shorten this file. Extract from INSIDE that declaration instead: lift each cohesive group of its body \u2014 the parts that share the same inputs and are named together \u2014 into its own unit in a sibling file, and have the original call them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f14e4d6c98e737d9eb13e0ab621e665624e54635667636d07682780e6e326f3b"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Pi.Run: MethodTooLong \u2014 Run runs 177 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 77 over it, 1.77\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":"internal/agentruntime/pi.go"},"region":{"startLine":89}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e1484ea850750c1a987907368e62485bd417577d3e8de47ef0bd140f4c3231"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/mobile-ui.js: FileTooLong \u2014 861 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 361 over it, 1.72\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":"web/static/js/mobile-ui.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f0d68cdc2aa4501d51741cb68b53528f7b7050f01383995ffd5e8d45d92dbc7"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/c2.go: FileTooLong \u2014 853 significant lines (blank, comment-only and punctuation-only lines excluded), about 96% of them inside a single declaration: C2Handler (40 blocks, 29-1268). The bar is 500 significant lines; this is 353 over it, 1.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":"internal/handler/c2.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ef5dcfd5360c907595d0fdd4c631db479150cd75557e9d531b4355da8dae080"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: webshell.initWebshellTerminal: FunctionTooLong \u2014 initWebshellTerminal runs 170 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 70 over it, 1.70\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":"web/static/js/webshell.js"},"region":{"startLine":3985}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dbe297b56e090f768e43976744d9e4619053a65360bf26dda99f375e7dc67e2"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.mcpToolAuthorizer: FunctionTooLong \u2014 mcpToolAuthorizer runs 168 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 68 over it, 1.68\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/mcp_authorization.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9e095ddcd6007eae93a0a659bef936c6e9a315b1e99151fd70b80ae036bb0a5"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ConfigHandler.ApplyConfig: MethodTooLong \u2014 ApplyConfig runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"internal/handler/config.go"},"region":{"startLine":1781}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab7ec448c50c3b8b325e932a570feaa10d3741e30bce8a365230d2e3262377b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tasks.showBatchQueueDetail: FunctionTooLong \u2014 showBatchQueueDetail runs 166 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 66 over it, 1.66\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":"web/static/js/tasks.js"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"e03439348b14be695853fbf01727b2feff3ccd035abbea251b87531f017cf502"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/hitl.go: FileTooLong \u2014 812 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 312 over it, 1.62\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":"internal/handler/hitl.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f0cea52b727acd836311aaa767d0ac73956d13719591300d0cd4957eca3f53e"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/skills.js: FileTooLong \u2014 805 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 305 over it, 1.61\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/skills.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ca5434c1d68533f075efde3fd62c4e33efcd2e917164998a0d3054879c0846"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: CyberStrikeAITab: ClassTooLong \u2014 631 significant lines (blank, comment-only and punctuation-only lines excluded), 42 methods. The bar is 400 significant lines; this is 231 over it, 1.58\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dbc9ee0deb0479df1458b62f0e8e843ed77ccdb92f860c20f5b6ca9873aa1d0"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ConfigHandler: TooManyMethods \u2014 47 methods, declared across 4 files: handler/config.go (39), handler/tool_guard.go (6), handler/config_probe_headers.go (1), handler/config_secrets.go (1). The bar is 30 methods; this is 17 over it, 1.57\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"1444373d7cc2226deb61cc03e5db91c52e05f3653d073a46d549b402a1a084ee"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/fofa.go: FileTooLong \u2014 780 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 280 over it, 1.56\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":"internal/handler/fofa.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d7d0ebbfeb09d0cd148f3694e61a00d1f778abadbbd51660d679e65252c43a8"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Server.handleCallTool: MethodTooLong \u2014 handleCallTool runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"internal/mcp/server.go"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"c559034f0bdbf1d53feac99fd9c223de3a538c44929aa4ebe337a7a36073c532"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: workflow.RunRoleBoundWorkflow: FunctionTooLong \u2014 RunRoleBoundWorkflow runs 156 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 56 over it, 1.56\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":"internal/workflow/runner.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"096841149cbea8dda4ce5f3b38989d9cca58aad003798739d25277de2f886e0a"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: knowledge.RegisterKnowledgeTool: FunctionTooLong \u2014 RegisterKnowledgeTool runs 154 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 54 over it, 1.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":"internal/knowledge/tool.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"bab3d761dea106ef9d65a2b26a2b3f719025bff143d23b2a70be307770b833bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat.loadConversations: FunctionTooLong \u2014 loadConversations runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\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":"web/static/js/chat.js"},"region":{"startLine":10004}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2096102719d8695b79bdfcf472c2d26df98030a5fb45e5cf32737101e8eefad"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: router.initPage: FunctionTooLong \u2014 initPage runs 152 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 52 over it, 1.52\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":"web/static/js/router.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"258b4a0cc8522d602364b7fcb9c606fc7f155716bdbf52e5a180df39f48902fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/update.js: FileTooLong \u2014 759 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 259 over it, 1.52\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":"web/static/js/update.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"27136b2d45703968c1aa3bfab6a467b4a516fa995f14c0741b00ccd00f73ecc1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/webshell.go: FileTooLong \u2014 756 significant lines (blank, comment-only and punctuation-only lines excluded), about 75% of them inside a single declaration: WebShellHandler (20 blocks, 201-1098). The bar is 500 significant lines; this is 256 over it, 1.51\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":"internal/handler/webshell.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"281da30221b7bf69269de869b7a89b5feda5953f7b95a56416a07ba01e83d712"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: webshell.refreshWebshellUIOnLanguageChange: FunctionTooLong \u2014 refreshWebshellUIOnLanguageChange runs 151 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 51 over it, 1.51\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":"web/static/js/webshell.js"},"region":{"startLine":5031}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2a68fc284b3c49e31350183886640b1b6bf88ca19eeb1df3a796260f823e0c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/auth.js: FileTooLong \u2014 754 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 254 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":"web/static/js/auth.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c7648f9d42e6c992715521ad41b7e7d74351c2bd6a8fb92f3d22e5bc097192"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: TCPReverseListener.handleTCPBeaconSession: MethodTooLong \u2014 handleTCPBeaconSession runs 150 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 50 over it, 1.50\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":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd3579196e386b33b56e08bfc93ddaa38969ab23086402d53d1ef0a2440f141c"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Executor.buildCommandArgs: MethodTooLong \u2014 buildCommandArgs runs 149 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 49 over it, 1.49\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":354}}}],"partialFingerprints":{"codehealthFindingId/v1":"4828c74cac29b266a30cf9712b64ca778c98972a6197bdce30972bf2cb6cc8ea"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: DB.GetProcessDetailsSummary: MethodTooLong \u2014 GetProcessDetailsSummary 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":"internal/database/conversation.go"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"77830fdc12adffeacd464a8f23c4e2d2920ca99838005bdd6b103519404ffee1"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/api-docs.js: FileTooLong \u2014 727 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 227 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":"web/static/js/api-docs.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e55dcaffc116cb1849f09a6fb47e90a5ca55a9e007cb74bf719d776fd7f9a659"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: update/apply.go: FileTooLong \u2014 724 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 224 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":"internal/update/apply.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d37c48c4ff396fbd18edd2ff9542604ce974134094a7110d2c0bd6ffdc1e3909"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: fact-graph.render: FunctionTooLong \u2014 render runs 143 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 43 over it, 1.43\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":"web/static/js/fact-graph.js"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"32285f4ec0ba64bfa32520cc9a644e2f2f2d067758129bf607ca392ede19e110"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: WebShellHandler: ClassTooLong \u2014 567 significant lines (blank, comment-only and punctuation-only lines excluded), 21 methods, 20 blocks, lines 201-1098. The bar is 400 significant lines; this is 167 over it, 1.42\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b640b49a490837893482cbdba6d806033382dd02ed9e2e6003cbcad6e87631"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentHandler.waitHITLApproval: MethodTooLong \u2014 waitHITLApproval 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":"internal/handler/hitl.go"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7a691ba1e4696f27c190d128af85489e24860ab0215404a7518c4b2df2e2fc2"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/audit.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":"web/static/js/audit.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8993582f67cabe8ca86eb9c28bb4df162701dd44a3665b95ffb8e81ae649521"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: CyberStrikeAITab: TooManyMethods \u2014 42 methods. The bar is 30 methods; this is 12 over it, 1.40\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9643e210b3b5ed4ecd90e4a50b5a36b2637ed9673b570860a067e216cc62941"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: AgentHandler.prepareMultiAgentSession: MethodTooLong \u2014 prepareMultiAgentSession runs 140 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 40 over it, 1.40\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":"internal/handler/multi_agent_prepare.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f04469967fa8c21dfd50d6508cb5fc53b320090278a65c81a682fa5c98302ee"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Executor: ClassTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded), 16 methods, 17 blocks, lines 34-1496. The bar is 400 significant lines; this is 156 over it, 1.39\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"205f13bc502e79ba5bb2a498351fd2ae11231ffda3c7a581b62cff0b7426e908"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: update.Apply: FunctionTooLong \u2014 Apply runs 139 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 39 over it, 1.39\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"489d9a1f3555ad462459bc094b609df3acf83af3e617e422d2b0bc694fbf9a98"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: workflow.GenerateDraftFromNaturalLanguage: FunctionTooLong \u2014 GenerateDraftFromNaturalLanguage runs 137 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 37 over it, 1.37\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":"internal/workflow/draft_generator.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb618c5bed45893e5191b60a52c3cfda2d83e021e2722adc81ddd52b7b9f1fc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: token-usage.renderTokenUsageAnalysis: FunctionTooLong \u2014 renderTokenUsageAnalysis runs 136 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 36 over it, 1.36\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/token-usage.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d070da2c1aa3d34917a2a5c9435ac0f35eca076d6b06a4ed8ae22737d5512a"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/monitor.go: FileTooLong \u2014 673 significant lines (blank, comment-only and punctuation-only lines excluded), about 70% of them inside a single declaration: MonitorHandler (26 blocks, 24-1012). The bar is 500 significant lines; this is 173 over it, 1.35\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":"internal/handler/monitor.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e309f9ab2364de10705f3a4cd3492f29f23de51003b8fb2e44fa2771d7d860"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: database/monitor.go: FileTooLong \u2014 670 significant lines (blank, comment-only and punctuation-only lines excluded), about 90% of them inside a single declaration: DB (23 blocks, 15-1129). The bar is 500 significant lines; this is 170 over it, 1.34\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":"internal/database/monitor.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"524bb8dfafed14d8894f46a229b54df4b2db5d6ff68543c3352f0788cece48f8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: BatchTaskManager: TooManyMethods \u2014 40 methods. The bar is 30 methods; this is 10 over it, 1.33\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"86add11301d1883fa915e123d3bda5b65fd32d94c2bc3d72008e5d4ba41ded25"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.registerC2ListenerTool: FunctionTooLong \u2014 registerC2ListenerTool runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_tools.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a660488d4990119a35d01f96e2787086d68248f3775acb74ee1efa8549f27c6"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Builder.BuildChainFromConversation: MethodTooLong \u2014 BuildChainFromConversation runs 131 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 31 over it, 1.31\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/builder.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9ae6089dbde100cd86b991cb52035f23e6a7a70b5ce9435668ac555a12f73e8"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: C2Handler: TooManyMethods \u2014 39 methods. The bar is 30 methods; this is 9 over it, 1.30\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"eee0dea2c0cf8a78aa1523b55841766a2933e85926589fc203ec8174184b0c62"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Manager: ClassTooLong \u2014 517 significant lines (blank, comment-only and punctuation-only lines excluded), 28 methods, 24 blocks, lines 27-941. The bar is 400 significant lines; this is 117 over it, 1.29\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/manager.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd167a04bd3f2e5d87ac51787fb174ed0dd8e12a949b571275fbe7aca0fbc96"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: update.finishPendingBuild: FunctionTooLong \u2014 finishPendingBuild 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":"internal/update/apply.go"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d0dbdd0e1d6716f9c6d4f556519c69ef70c84ce8e4be58cd3ebef885f6d6825"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: burp/CyberStrikeAITab.java: FileTooLong \u2014 640 significant lines (blank, comment-only and punctuation-only lines excluded), about 99% of them inside a single declaration: CyberStrikeAITab (12-877). The bar is 500 significant lines; this is 140 over it, 1.28\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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c6371e368f4fe2f2a190d66bc5555f5dd0dcac0364cb0d679028b374a2e250"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: BurpExtender.sendMessage: MethodTooLong \u2014 sendMessage runs 128 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 28 over it, 1.28\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/BurpExtender.java"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"84b2559d37237ea639ef3200c3cbe3793cf372d39ba312425f4be1db30768d6d"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/fact-graph.js: FileTooLong \u2014 634 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 134 over it, 1.27\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":"web/static/js/fact-graph.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"31c9dd43a08dfa6c091ea10fb30300938d1e178aac14deb132530bc468e49bb1"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: AgentTuningConfig: TooManyFields \u2014 38 stored fields beside 16 methods. The bar is 30 stored fields; this is 8 over it, 1.27\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"524745876afced7fd620edfdf652933db29ebcf37a58702ce092560a6f1734bb"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: app/c2_tools.go: FileTooLong \u2014 632 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 132 over it, 1.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":"internal/app/c2_tools.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e68dd8e869920369ac585dd46fff2de91e13e906958ca241cb56bac04f5aabe"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/batch_task_mcp.go: FileTooLong \u2014 627 significant lines (blank, comment-only and punctuation-only lines excluded), about 74% of them inside a single declaration: RegisterBatchTaskMCPTools (22-668). The bar is 500 significant lines; this is 127 over it, 1.25\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":"internal/handler/batch_task_mcp.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"23ba81aed838ab27853a2cf52a39e612483a23c5c6a1f67d6209e131a7463e6e"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: worker.run: FunctionTooLong \u2014 run runs 125 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 25 over it, 1.25\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":"runtime/pi/src/worker.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"2693cc400c24aff83e9ac9438ec9a238237424ca2c242ab6497fc67db1909230"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: c2/manager.go: FileTooLong \u2014 618 significant lines (blank, comment-only and punctuation-only lines excluded), about 84% of them inside a single declaration: Manager (24 blocks, 27-941). The bar is 500 significant lines; this is 118 over it, 1.24\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":"internal/c2/manager.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f7192c4ba4fcbc13255c6cf65c326e65ffc4324c205c393013c4888fc2c7da"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/tool-guard.js: FileTooLong \u2014 611 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 111 over it, 1.22\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":"web/static/js/tool-guard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"440a32d47eccebcbe1056c52ad5d1446552994ff9b2c551c33906b8ee8e9e8cc"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.registerAssetTools: FunctionTooLong \u2014 registerAssetTools runs 122 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 22 over it, 1.22\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/asset_tools.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3afd01e18eb4c1d095c0bd76d4646a384bbe19adc987eb46638d2a27d2e5598"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: multiagent.runPiMulti: FunctionTooLong \u2014 runPiMulti runs 121 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 21 over it, 1.21\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_runner.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"3954fb77ce31fa9edb5d409a196980b7b585137a47f7aa7c97383046abd6b2d3"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: project.BuildProjectFactGraph: FunctionTooLong \u2014 BuildProjectFactGraph runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_edges.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b764da8b512bafdcfa0d0ac89e99f55b4a5edc007fe5623280e743f9483dd49"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: webshell.renderDirectoryTree: FunctionTooLong \u2014 renderDirectoryTree runs 119 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 19 over it, 1.19\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4552}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9ec26bd8b0216a10daab8edd43bf10b67619c14c182324745630daac32dc85"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: Manager: ClassTooLong \u2014 473 significant lines (blank, comment-only and punctuation-only lines excluded), 17 methods, 18 blocks, lines 18-885. The bar is 400 significant lines; this is 73 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/manager.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cec485083a13ed033a49998c39cc5ddb6edb36cf210f0e181893e0167fdba40"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: AgentTaskManager: ClassTooLong \u2014 471 significant lines (blank, comment-only and punctuation-only lines excluded), 34 methods, 31 blocks, lines 76-821. The bar is 400 significant lines; this is 71 over it, 1.18\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/task_manager.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c843c48ae138fd4fa145fc8a6335f2c5f1519ffb1b0d5f89ffa6ca02e92b3ef"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: js/chat-scroll.js: FileTooLong \u2014 587 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 87 over it, 1.17\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-scroll.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2d4b79591dfb1685106c09a513d13e9705954f402f07b3c4cc05ed16aa1cdbf"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: MonitorHandler: ClassTooLong \u2014 469 significant lines (blank, comment-only and punctuation-only lines excluded), 25 methods, 26 blocks, lines 24-1012. The bar is 400 significant lines; this is 69 over it, 1.17\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/monitor.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b1fcd06607e0537eefbc4094c4bffd5eacdcaf2a58715d48315788c720ceece"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: RobotHandler.handleRobotCommand: MethodTooLong \u2014 handleRobotCommand runs 115 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 15 over it, 1.15\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb7275265e458f7daa5918b5f335cae2b786dc16c1a5ccfbbc817d009729b91"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: ChatUploadsHandler: TooManyMethods \u2014 34 methods. The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b6f3b4e25fb7b824471b85333fc0722fd20c23d1c38f955d5e1f2da33216482"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyMethods: AgentTaskManager: TooManyMethods \u2014 34 methods, declared across 2 files: handler/task_manager.go (30), handler/hitl_cognition.go (4). The bar is 30 methods; this is 4 over it, 1.13\u00D7 the bar. That list is where to read them, not a suggestion to split the file: the members belong to the type wherever they are declared, so moving them between files leaves the count unchanged. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/task_manager.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71976f9a5218dd60870e8c58fe198fd1d62781bb0bddc052718f188b6b92e88"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Asset: TooManyFields \u2014 34 stored fields. The bar is 30 stored fields; this is 4 over it, 1.13\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ba55efe5eab25e5fbb4677a555f5667bb58d27863489948c5ddcf7902e60b7e"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: PayloadBuilder.BuildBeacon: MethodTooLong \u2014 BuildBeacon runs 113 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 13 over it, 1.13\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/payload_builder.go"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c5e2f19e812f135e64098694b8c89fa368eeed3049da12bf8a223b2fa4cbb1c"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: workflow/draft_generator.go: FileTooLong \u2014 556 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 56 over it, 1.11\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/draft_generator.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1d7c9d7059710d3b0152f3fb0e24e5a7e4aa666c5e545b6c92f814f5fd8f0ff"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: agent/agent.go: FileTooLong \u2014 555 significant lines (blank, comment-only and punctuation-only lines excluded), about 68% of them inside a single declaration: Agent (27 blocks, 26-924). The bar is 500 significant lines; this is 55 over it, 1.11\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":"internal/agent/agent.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c0fea7ea30aa38656d040affef06419a9a2a334d0ca3166133386621abe4e70"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: CyberStrikeAITab.wireActions: MethodTooLong \u2014 wireActions runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"6023f094031f85e2322c0151f537af707e5b3b596366ab969657d0d794d0126d"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat.ensureProjectSidebarStructure: FunctionTooLong \u2014 ensureProjectSidebarStructure runs 111 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 11 over it, 1.11\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6089}}}],"partialFingerprints":{"codehealthFindingId/v1":"abcc212fb531d107aad88d7bdc59858efaee2e373b7cb549e117487a53554a94"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: App: TooManyFields \u2014 33 stored fields beside 11 methods. The bar is 30 stored fields; this is 3 over it, 1.10\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"e54a06bd9784fde70b9a29a4b3d2e80dbf2269b2895af28f59aab9fc1350a2c6"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/task_manager.go: FileTooLong \u2014 538 significant lines (blank, comment-only and punctuation-only lines excluded), about 88% of them inside a single declaration: AgentTaskManager (31 blocks, 76-821). The bar is 500 significant lines; this is 38 over it, 1.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":"internal/handler/task_manager.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6660533e786bdbe3d036da4320b45f94b32acea42df1fb1d027d51d8e4a8d7c0"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: handler/notification.go: FileTooLong \u2014 535 significant lines (blank, comment-only and punctuation-only lines excluded), about 69% of them inside a single declaration: NotificationHandler (12 blocks, 19-812). The bar is 500 significant lines; this is 35 over it, 1.07\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":"internal/handler/notification.go"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31559a589991a8d8e4268a10ffe597660367d9f40415e9b635188a4a5b84177"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: app.registerWebshellTools: FunctionTooLong \u2014 registerWebshellTools runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":1534}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df565ad9f32667083cb1a04aebd49643da7da37dd4e3ad2bad99a40aa40277f"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: update.Adopt: FunctionTooLong \u2014 Adopt runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/adopt.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7f0dce3642f710a684676fa73fe943ee212fa513537f6b49cdba0da385b563"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: webshell.renderFileList: FunctionTooLong \u2014 renderFileList runs 107 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 7 over it, 1.07\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4413}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c197b4b57f7a39192df4890ce8bbf4f8fef895a600487760d0f92209726f79f"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: ExternalMCPManager: TooManyFields \u2014 32 stored fields beside 67 methods. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b91cdd21bd8236a0fd2d0b85c18c934832a6ad0044c5099c42d94d88d23e23e"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: Config: TooManyFields \u2014 32 stored fields beside 5 methods. The bar is 30 stored fields; this is 2 over it, 1.07\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbd6279147e35b082950b2c903e7899b12d5de3212df2f1248fd14c94d017c80"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: main.main: FunctionTooLong \u2014 main 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":"cmd/server/main.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"391997151094f959599ec52881756d4e825f5c93bb18d2b7f4b70205b4aab42b"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: roles.editRole: FunctionTooLong \u2014 editRole 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":"web/static/js/roles.js"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9defa35dfc73481a4f8100346fa4d844a7df2f09082ae45ee9ef7b17f4709fa9"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: FofaHandler: ClassTooLong \u2014 420 significant lines (blank, comment-only and punctuation-only lines excluded), 9 methods, 10 blocks, lines 25-1117. The bar is 400 significant lines; this is 20 over it, 1.05\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"535778f942044db026a08f29030a2100316429f07797c16ff96ea349af4b56c1"}},{"ruleId":"D3","level":"warning","message":{"text":"ClassTooLong: SkillsHandler: ClassTooLong \u2014 415 significant lines (blank, comment-only and punctuation-only lines excluded), 18 methods, 19 blocks, lines 22-663. The bar is 400 significant lines; this is 15 over it, 1.04\u00D7 the bar. To reduce it, group the members that share the same data into a smaller type of their own and delegate to it, so no single type carries every responsibility."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/skills.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c1ce2728e3b99798b1cda3000c93113544582d7156358ad613c636041f5cbca"}},{"ruleId":"D3","level":"warning","message":{"text":"TooManyFields: AssetListFilter: TooManyFields \u2014 31 stored fields. The bar is 30 stored fields; this is 1 over it, 1.03\u00D7 the bar. This is width in DATA, not behaviour: every reader that takes the whole type couples to all of its fields, so a change to any one of them is a change every reader has to be checked against. To reduce it, group the fields that are read together by the same callers into a smaller type of their own, and have this one hold that type as a single member \u2014 each reader then names only the group it uses."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bdb9b2742da1c14c9cef48e75b1203d40671ba582cc67e558016cd2290552d0"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: chat.showNodeDetails: FunctionTooLong \u2014 showNodeDetails runs 103 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 3 over it, 1.03\u00D7 the bar. This is length, not branching: a long straight-line body scores low on complexity and is still read whole to change any part of it, so the complexity numbers beside this row neither confirm nor excuse it. To reduce it, extract each cohesive step of the body \u2014 the runs of statements that work on the same values and would earn the same name \u2014 into its own named unit, and have this one call them in order."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":7961}}}],"partialFingerprints":{"codehealthFindingId/v1":"d536654d2164473ee9ffb029f5c1ea99b0305c03d5b4c3bab6cbe41b13dd7366"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: ChatUploadsHandler.collectFiles: MethodTooLong \u2014 collectFiles runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"internal/handler/chat_uploads.go"},"region":{"startLine":323}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73c7974ddd2b6134903f32f08ccce46ea44518b5a4e7c4915af8e670e8b01e4"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: Executor.ExecuteTool: MethodTooLong \u2014 ExecuteTool runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"internal/security/executor.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb54370f954f21a2012419011ac2c37ae34a24bb2ca755a12655559a492a0b53"}},{"ruleId":"D3","level":"warning","message":{"text":"FunctionTooLong: tool-guard.renderRules: FunctionTooLong \u2014 renderRules runs 102 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 2 over it, 1.02\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":"web/static/js/tool-guard.js"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"098ba00bb15835ac1d79b0581ea53c1b26b5e36665aee86b7b70e1633991c3dd"}},{"ruleId":"D3","level":"warning","message":{"text":"MethodTooLong: SendOptionsDialog.show: MethodTooLong \u2014 show runs 101 significant lines (blank, comment-only and punctuation-only lines excluded) in one body. The bar is 100 significant lines; this is 1 over it, 1.01\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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SendOptionsDialog.java"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5280fc80b950b4e4b86c35f42b7eaee0e0b049727934bd653968056f78148b"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member family (3 members, 32 shared lines): internal/handler/chat_uploads.go:459-533 | internal/handler/chat_uploads.go:535-605 | internal/handler/chat_uploads.go:607-669 \u2014 These 3 members are variants of one another: a block of 32 lines reported below appears in every one of them, and the pairwise near-duplicate rows they would otherwise produce are collapsed into this row. Read them as one construct written 3 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":459}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b13280986be3c0d6075cb6e7c1877482dbb0916bf0c1f97f9fc1bc5ff96c245"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (36 shared lines): internal/handler/webshell.go:741-822 | internal/handler/webshell.go:854-952 \u2014 These two members are variants of one another: 36 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":741}}}],"partialFingerprints":{"codehealthFindingId/v1":"f86a91d62487e6e3c592c8b0d93b47332408bb20ad8c34fb9ec6953a63d1307c"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (31 shared lines): internal/handler/markdown_agents.go:156-261 | internal/handler/markdown_agents.go:264-341 \u2014 These two members are variants of one another: 31 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/markdown_agents.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"7566bf46a7a9a9fcf46f56ec68fd925c904fca637bb303c725815475413ba4da"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (29 shared lines): internal/config/config.go:1754-1825 | internal/config/config.go:1829-1866 \u2014 These two members are variants of one another: 29 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1754}}}],"partialFingerprints":{"codehealthFindingId/v1":"0074c24088ea5f9c689ef278edd2074494743b9af4280b58edae815acb71e816"}},{"ruleId":"D4","level":"warning","message":{"text":"Near-duplicate member pair (22 shared lines): internal/handler/hitl.go:817-847 | internal/handler/hitl_logs.go:163-194 \u2014 These two members are variants of one another: 22 of their lines are already reported as duplicated blocks below, spread through both bodies rather than gathered into one. Read them as a single construct written twice. The repair is at the members\u0027 grain \u2014 factor the shared pipeline into one implementation the two call with their differences as parameters or as an injected step, or, where the difference is systematic (sync against async, one transport against another), generate one from the other. Extracting the individual blocks below is not the same fix: it leaves the two bodies in place and the next edit still has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":817}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c2dff8bed731d92ea752f6f722e11b82f934f3d6bd27b90a092847079e8e664"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (80 corresponding lines): internal/handler/batch_task_manager.go:302-397 | internal/handler/batch_task_manager.go:539-645 \u2014 These two members are one piece of code written twice and then edited apart: 80 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":302}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd19a39d256ff5a998b91e2e447f89e33cf5f394cb7175794e98116a014ed1f0"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): internal/database/conversation.go:1002-1062 | internal/database/conversation.go:1065-1118 | internal/database/conversation.go:1370-1403 | internal/database/conversation.go:1406-1426 | internal/database/conversation.go:1757-1800 | internal/database/conversation.go:1833-1866 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1002}}}],"partialFingerprints":{"codehealthFindingId/v1":"35b155f53f3508b034f9e9356647277d651a7ecc0576e335c380ebed5cecb5ea"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): internal/handler/external_mcp.go:153-218 | internal/handler/external_mcp.go:221-257 | internal/handler/external_mcp.go:260-306 | internal/handler/external_mcp.go:309-339 | internal/handler/role.go:96-205 | internal/handler/role.go:208-253 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/external_mcp.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca2f948306c62c1cc197fc7a9841ada1769d213ede4b68420d2d23e23fd2defb"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (6 members, 50\u002B identical tokens): internal/handler/webshell.go:470-542 | internal/handler/webshell.go:545-567 | internal/handler/webshell.go:570-599 | internal/handler/webshell.go:602-646 | internal/handler/webshell.go:649-670 | internal/handler/webshell.go:673-693 \u2014 These 6 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 6 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 6 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":470}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f84bb508db40f1c8025ededca7f23b856ce0dfe962366f288dbed9d60cbcdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/app/c2_tools.go:54-231 | internal/app/c2_tools.go:237-341 | internal/app/c2_tools.go:532-634 | internal/app/c2_tools.go:689-835 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_tools.go"},"region":{"startLine":54}}}],"partialFingerprints":{"codehealthFindingId/v1":"b387806b4f83be2bdf9f6b18e5e1e32dfea59be2b79ad178f0121b89432c81ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/database/asset.go:961-1064 | internal/database/asset.go:1073-1109 | internal/database/asset.go:1113-1177 | internal/database/asset.go:1182-1226 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":961}}}],"partialFingerprints":{"codehealthFindingId/v1":"531f022db087c41e7edcd3dc6db2cef98c2927f9d284cbb1d8542d5c7ec6dc4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/database/c2.go:764-799 | internal/database/c2.go:1349-1384 | internal/database/c2.go:1455-1474 | internal/database/c2.go:1771-1806 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"de19c0895645cf8bd04dd4c5c57e9e10f6d3901c780bb3db885cb4cf3e5ecbb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/handler/agent.go:951-965 | internal/handler/batch_queue_executor.go:113-353 | internal/handler/multi_agent.go:23-445 | internal/handler/single_agent.go:22-431 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":951}}}],"partialFingerprints":{"codehealthFindingId/v1":"211a9d62c7a9b4c004ecca870f6173662b6d323da584d2d8026eada27a0ba1cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/handler/c2.go:239-253 | internal/handler/c2.go:276-290 | internal/handler/c2.go:597-649 | internal/handler/c2.go:652-670 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":239}}}],"partialFingerprints":{"codehealthFindingId/v1":"35278f9f5a663cb6de7ac76b7c41a1c1dd1bbf917b1933808aa93405bd07254e"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/handler/config.go:1368-1405 | internal/handler/config.go:1408-1526 | internal/handler/config.go:1538-1589 | internal/handler/config.go:1601-1671 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a244e4c6994b0c06e834f7cd2f114bde28fbbbe5eee63c2a9887ab3ced5e64b"}},{"ruleId":"D4","level":"warning","message":{"text":"Members sharing a duplicated core (4 members, 50\u002B identical tokens): internal/knowledge/manager.go:253-348 | internal/knowledge/manager.go:369-451 | internal/knowledge/manager.go:454-538 | internal/knowledge/manager.go:541-595 \u2014 These 4 members share a duplicated core: a run of at least 50 identical tokens appears in every one of them. That run is NOT broken out as duplicated-block rows below \u2014 it is what admitted this row, and the blocks below cover only the part of it that clears the block floor, so they understate the correspondence. Read the members as one construct written 4 times. The repair is at the members\u0027 grain \u2014 factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Extracting the individual blocks below is not the same fix: it leaves every body in place and the next edit still has to be made 4 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/manager.go"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"a615b54c36848f070c56b947ac0ead8de3f9287ddb4de2092cf0e9e2b7cf28f3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (94 corresponding lines): internal/handler/agent_multi_json_runner.go:15-120 | internal/handler/agent_single_json_runner.go:11-104 \u2014 These two members are one piece of code written twice and then edited apart: 94 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent_multi_json_runner.go"},"region":{"startLine":15}}}],"partialFingerprints":{"codehealthFindingId/v1":"4205d8f0649b8ae52bffb6ad77a119437fd5218a294295c9828c729b4161636b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (66 corresponding lines): internal/handler/c2.go:476-549 | internal/handler/c2.go:872-937 \u2014 These two members are one piece of code written twice and then edited apart: 66 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":476}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec884b2f031890fb81365d2ba6c039ba2c3b51a66030094b783c236491849db1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (71 corresponding lines): internal/database/conversation.go:111-181 | internal/database/conversation.go:240-330 \u2014 These two members are one piece of code written twice and then edited apart: 71 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"258b2fababb94f297322c01ceca50a14aa59999b3f951a016087a67fc163054c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (72 corresponding lines): internal/database/rbac.go:823-894 | internal/database/rbac.go:898-975 \u2014 These two members are one piece of code written twice and then edited apart: 72 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"a405451f5cc36dc168d521169442a212ad6ced6b99690d05c71f043c12da1746"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (45 corresponding lines): internal/handler/multi_agent.go:448-497 | internal/handler/single_agent.go:434-478 \u2014 These two members are one piece of code written twice and then edited apart: 45 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":448}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce9af8088b4f3ccfdfa3f402f03e5fb232cd6d8858b652fad28064877f450d4e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (88 corresponding lines): internal/database/monitor.go:164-264 | internal/database/monitor.go:743-830 \u2014 These two members are one piece of code written twice and then edited apart: 88 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"193f8aa8f9e0bafe9b76f5135161ad488762faa4093f90f45ae9aef418287725"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (56 corresponding lines): internal/app/vulnerability_tools.go:100-155 | internal/handler/vulnerability.go:555-621 \u2014 These two members are one piece of code written twice and then edited apart: 56 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/vulnerability_tools.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"575384d385b1d4e201f7ab09a0078d3453e0396ab828b358262cb11f8e402347"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (53 corresponding lines): internal/update/apply.go:680-744 | internal/update/apply.go:761-813 \u2014 These two members are one piece of code written twice and then edited apart: 53 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":680}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4e6f8fad42ee44fe2166df23997f43cfa0c083dae3e8c576a7fd99bee5773a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (49 corresponding lines): internal/handler/attackchain.go:56-120 | internal/handler/attackchain.go:124-172 \u2014 These two members are one piece of code written twice and then edited apart: 49 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/attackchain.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"150578b6886677f9474d0733390421acf7440a6c45c181395107cd6894b1757e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (57 corresponding lines): internal/handler/role.go:326-383 | internal/handler/skills.go:607-663 \u2014 These two members are one piece of code written twice and then edited apart: 57 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"b076fd770469b9118b30ab7f11ed60470e274edc0f47859526bbc9f317214e22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): internal/database/conversation.go:334-389 | internal/database/conversation.go:627-667 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ff6f44370a7283e9a1bfe618f27335b011f5c8d693972467700228eb201281b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (41 corresponding lines): internal/knowledge/rerank_http.go:101-141 | internal/knowledge/rerank_http.go:143-190 \u2014 These two members are one piece of code written twice and then edited apart: 41 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/rerank_http.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43304098ca068e2722eac9278c4373d69aef2725e906c403b78bdea611e1a85"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (51 corresponding lines): internal/database/monitor.go:301-384 | internal/database/monitor.go:386-436 \u2014 These two members are one piece of code written twice and then edited apart: 51 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":301}}}],"partialFingerprints":{"codehealthFindingId/v1":"20913741f2176176df8c143f4bd9afcf3de796174302d492f00b2ad9cd67587c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): internal/app/main_server_tls.go:103-133 | internal/c2/listener_http.go:534-561 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/main_server_tls.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"6bab6b8d24611a8291939e7214f0545a2892cdebe9de228aca59698f8b4ce557"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): internal/database/c2.go:1142-1204 | internal/database/c2.go:1238-1272 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"5420f5213b156c3ea16af934bdf29ddbc29814f94e92a663e3e17ce81a458248"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (42 corresponding lines): internal/database/project_fact_edges.go:152-193 | internal/database/project_fact_edges.go:196-241 \u2014 These two members are one piece of code written twice and then edited apart: 42 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project_fact_edges.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"e877de18206c8b4ce2c783bdbbb87b7446753159e8e148beeaa4a3d8a1f17b91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (52 corresponding lines): cmd/test-sse-mcp-server/main.go:107-160 | internal/mcp/server.go:334-385 \u2014 These two members are one piece of code written twice and then edited apart: 52 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/test-sse-mcp-server/main.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead6ec55f278bf2a6aadb64b2797a9d861b9093f59a29d52fefcdce2339d8f1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (40 corresponding lines): internal/database/conversation.go:544-584 | internal/database/conversation.go:586-625 \u2014 These two members are one piece of code written twice and then edited apart: 40 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d65e225abb5a9975f089a285065e833172f59cee369ea25f24d9a2818b7a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (39 corresponding lines): internal/database/asset.go:723-764 | internal/handler/hitl_logs.go:284-322 \u2014 These two members are one piece of code written twice and then edited apart: 39 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1c59a1e61ec86e265d3eb02d1ac58322f3e79d6d5b28b54af1b1b3f003d6508"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (32 corresponding lines): internal/database/project.go:258-289 | internal/database/project.go:291-325 \u2014 These two members are one piece of code written twice and then edited apart: 32 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"df4db56bc5b3b34aba244234884b556f2cd4a6945c26e563bbbc0e77e66c0072"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/handler/hitl.go:1070-1102 | internal/handler/hitl.go:1110-1135 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":1070}}}],"partialFingerprints":{"codehealthFindingId/v1":"38fe9c14ebaa07d975ead0722c203ba1744af6a880112c6ca152b626304c2330"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (29 corresponding lines): internal/handler/knowledge.go:241-269 | internal/handler/knowledge.go:272-302 \u2014 These two members are one piece of code written twice and then edited apart: 29 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/knowledge.go"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fac65c1579c201c8246c217771d241ea219cfea6ba3b2d76fc2c8ac4de8379d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (35 corresponding lines): internal/database/c2.go:995-1029 | internal/database/c2.go:1522-1589 \u2014 These two members are one piece of code written twice and then edited apart: 35 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"37304877aa3ff6de38d45a89f3e3cd713cd36f7abd4e57a0b773ab303ae47823"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 23\u002B corresponding lines): internal/handler/c2.go:361-388 | internal/handler/c2.go:552-579 | internal/handler/c2.go:940-962 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 23 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":361}}}],"partialFingerprints":{"codehealthFindingId/v1":"78d6b1466636ef4b5690c2ba3550af9d7fc31291a0aa58b2a9937ca42091ec17"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (30 corresponding lines): internal/handler/agent.go:2260-2290 | internal/handler/agent.go:2293-2322 \u2014 These two members are one piece of code written twice and then edited apart: 30 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":2260}}}],"partialFingerprints":{"codehealthFindingId/v1":"37daf3db22417f8afebf14d6e0c2a7173e35e53f206e95253bf9badbabd23c7b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (31 corresponding lines): internal/handler/notification.go:419-449 | internal/handler/notification.go:451-484 \u2014 These two members are one piece of code written twice and then edited apart: 31 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/notification.go"},"region":{"startLine":419}}}],"partialFingerprints":{"codehealthFindingId/v1":"e92d612c355718448bf63f980ee9b3269909f73c3f4d059cde33fdf1e5ecc4c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): internal/database/c2.go:155-182 | internal/database/c2.go:829-864 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1741fd02ea35ed888846891d7ae80d7018926bed10ee1dc433d63785b33610e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): internal/mcp/server.go:1431-1468 | internal/mcp/server.go:1540-1577 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"74c907f1e6d0e85bde5d04a5e051a378419f554958d6f19d1b7aebd7348fcabd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): internal/database/audit.go:98-131 | internal/database/c2.go:1481-1508 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/audit.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"c39e343e2d76a845a3c5d5e7c697f97775772cd01f19fdd91520571987ce307f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (28 corresponding lines): internal/c2/crypto.go:62-89 | internal/c2/crypto.go:116-143 \u2014 These two members are one piece of code written twice and then edited apart: 28 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/crypto.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9a807f305445c8244e1a558ed60378b1e092af327eea03880609651b6dd0b1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (27 corresponding lines): internal/database/asset.go:785-815 | internal/database/asset.go:819-845 \u2014 These two members are one piece of code written twice and then edited apart: 27 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":785}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab6e47d438cb3090d6b034cd5409a9a4c569c2904599d1a426978b8e9fd15fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): internal/database/conversation.go:479-502 | internal/database/conversation.go:504-529 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6b2a0906712d94c6314e828add168c2bf99387328fe6c7abaef13a15b20272"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 22\u002B corresponding lines): internal/database/c2.go:801-822 | internal/database/c2.go:1386-1407 | internal/database/c2.go:1808-1829 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 22 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":801}}}],"partialFingerprints":{"codehealthFindingId/v1":"1acb4b6e83bca168ee41c1ac11f4f954067be6cfb1db3977539728f8ef0ba1a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/handler/project.go:614-636 | internal/handler/project.go:639-657 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":614}}}],"partialFingerprints":{"codehealthFindingId/v1":"52648cf864b1e22fecb5d321edeab717d627a1b2ed6f180519266c1260f44c80"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): internal/config/config.go:2133-2169 | internal/config/config.go:2195-2239 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":2133}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d302be98e601d2465d1db70868599096834ac76704ad7aabb8f320a7243a3b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (25 corresponding lines): internal/robot/qq.go:116-140 | internal/robot/qq.go:142-167 \u2014 These two members are one piece of code written twice and then edited apart: 25 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/qq.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d3b76435386dac95769be92c7ef7a1f4a195b01821302187d1389e1861dcc5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/c2/listener_tcp.go:245-270 | internal/c2/listener_websocket.go:240-265 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_tcp.go"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"07bfcee31150873a82ca6e7040f2cb800d09397add831322f04d5eb895b0749d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/handler/rbac.go:79-100 | internal/handler/rbac.go:228-249 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/rbac.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"5935d4da744257fca683ea0c08876a8695a1b7accf61d49b77304494ad1edd06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/handler/asset.go:373-393 | internal/handler/asset.go:395-411 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/asset.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f65a5003366066ab40906bc05baf9fd162cbd89c54f845c1b7d15c48018b519"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/handler/robot.go:571-600 | internal/handler/robot.go:688-710 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":571}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c332996f12d55abe71f31d16693f369ba5e8ef53a6502f98afb20ed4958564a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/c2/crypto.go:39-59 | internal/c2/crypto.go:93-113 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/crypto.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"d42edf489831cdfee497850fcd6229289746597374ab87e4a24d3e2e87c49543"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/handler/finalization_helpers.go:85-97 | internal/handler/finalization_helpers.go:120-142 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/finalization_helpers.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"eebbb9cbd0824ac49f30d5f7d276af332e36f453aebeb5261717b667db5b87e6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): internal/handler/task_manager.go:247-270 | internal/handler/task_manager.go:273-296 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/task_manager.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0ace0d22be20aed3f336ef5503d3bc2381c401da5e1aac0372dac11447cd131"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (38 corresponding lines): internal/database/monitor.go:933-974 | internal/database/skill_stats.go:50-87 \u2014 These two members are one piece of code written twice and then edited apart: 38 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"dad9ee4c9d9b990c5cd947b429a4960f4dbf80b086c393a0e64f51138dd7d438"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 21\u002B corresponding lines): internal/database/rbac.go:977-998 | internal/database/rbac.go:1000-1020 | internal/database/robot_identity.go:131-154 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 21 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfb06431e25135bb233646b90bb824e578df0f6d8c8a702f0f89485803cd704f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (23 corresponding lines): internal/database/workflow.go:209-234 | internal/database/workflow.go:255-277 \u2014 These two members are one piece of code written twice and then edited apart: 23 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/workflow.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"08cc56c40c4009cab61f7f15e6cb81c741a31bc0159d018d7fc4aca8312b4870"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 20\u002B corresponding lines): internal/audit/service.go:117-136 | internal/hitl/retention.go:35-54 | internal/monitor/retention.go:35-54 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/audit/service.go"},"region":{"startLine":117}}}],"partialFingerprints":{"codehealthFindingId/v1":"963b8e62b1680611c57725d1ffd15b39ec1538e691c58a984bdfbcb6f4fc7c59"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): internal/handler/batch_task_manager.go:917-949 | internal/handler/batch_task_manager.go:1124-1162 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":917}}}],"partialFingerprints":{"codehealthFindingId/v1":"b55afc06e723f713be541bba8db5c76a1ae9866d7392004cfe99e4a93c326be5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 20\u002B corresponding lines): internal/handler/chat_uploads.go:233-256 | internal/handler/chat_uploads.go:671-690 | internal/handler/chat_uploads.go:692-711 | internal/handler/chat_uploads.go:713-732 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 20 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ca54c576e00c1871666904aadc2f5677633d5b2e07ca86d7be63973132ed46"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/handler/conversation.go:579-604 | internal/handler/vulnerability.go:372-393 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/conversation.go"},"region":{"startLine":579}}}],"partialFingerprints":{"codehealthFindingId/v1":"5758ca3c7a3d3d4d63d2d929133fad58c2fffe8e7b22065e3d88f78f39c5651f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/database/storage_activity.go:11-31 | internal/database/storage_activity.go:34-54 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/storage_activity.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"088bd66d4a819f062d0b8ea79320eed4e862e3d93ee2de6a2c9284c25b3f224d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/database/project.go:640-659 | internal/database/project.go:661-677 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project.go"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac98f67ca4161cbcdadc94c8cc6e7b370506125feec8d960957af986997a1451"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java:229-244 | plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java:279-295 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5c8c420ade04753d686b5d9d9c7724b0b761eb7993e74549f83d49b4bfb6a78"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/handler/agent.go:2076-2092 | internal/handler/agent.go:2372-2394 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":2076}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e75d82a99fddcd06180aa2918b431975c8c012394aece04f53918c9113757ce"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (21 corresponding lines): internal/project/fact_body_links.go:220-240 | internal/project/fact_body_links.go:243-263 \u2014 These two members are one piece of code written twice and then edited apart: 21 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_body_links.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"278b8871a832aed8047ef88fa81f7088a75f51431ff7b99a1555fbcc5bdf242d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/handler/hitl.go:336-362 | internal/multiagent/tool_metadata.go:36-57 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed2a149092a006e0e7b9f3cec20043f274ee06209362b64f1d5c87a7f3d39d99"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): internal/agentfinalizer/decision.go:216-241 | internal/agentfinalizer/decision.go:243-266 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentfinalizer/decision.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc1e3ebce6eb74be7aadd2ae9b91e286f7ad5e9e5a367d1cb130a2fb41b914cb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/database/c2.go:1836-1855 | internal/database/c2.go:1858-1882 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1836}}}],"partialFingerprints":{"codehealthFindingId/v1":"2cffd249dac599459db488a0ff834b1d93f0d3c6fc37bb125310a600332726fe"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/processguard/platform_linux.go:210-226 | internal/processguard/platform_windows.go:91-108 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/processguard/platform_linux.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b1d360908341e1be6fa9e27a6354c87751333c99cd15c2bcb2727c5ccf7fa7d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): internal/handler/chat_uploads.go:172-190 | internal/handler/chat_uploads.go:192-210 | internal/handler/chat_uploads.go:212-230 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4e54bb4b8d675acb73ecf579970ef8fd509d616ebe6d313ec4e2f6ae669ea6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (37 corresponding lines): internal/handler/fofa.go:527-563 | internal/handler/hitl_audit_agent.go:219-256 \u2014 These two members are one piece of code written twice and then edited apart: 37 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"f93f4af89518e0a50c304660ad109433311adebd226e1879403be4bddc534f02"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/mcp/external_manager.go:1096-1115 | internal/mcp/server.go:1329-1348 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":1096}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d5312168afc2ca8587e360f9f0324dbb9f50c8c0007a3dd52b42f560f9346fa"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/handler/rbac.go:188-203 | internal/handler/rbac.go:341-354 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/rbac.go"},"region":{"startLine":188}}}],"partialFingerprints":{"codehealthFindingId/v1":"37e79cd85b5f966dd88a4a2168031dcd41778074bec3e677983eb43e0573f5bf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (22 corresponding lines): internal/storage/category.go:174-202 | internal/storage/category.go:267-288 \u2014 These two members are one piece of code written twice and then edited apart: 22 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/category.go"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"d270a086622ab5c4ece6d6e43313c34f935ab3b61caf7d1131a5d823be869390"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/robot/qq.go:169-188 | internal/robot/qq.go:190-209 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/qq.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9fc4bc495aea88910d4ef3d62a73d4bd308341be3e38b8e91989bb504c74c70"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/handler/token_usage.go:17-29 | internal/handler/token_usage.go:32-45 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/token_usage.go"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"55b41f2173baaef87cf20683bd0f28d728f7a310ec28b0ec35e45cc26c23c2ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/handler/chat_uploads.go:108-120 | internal/handler/chat_uploads.go:126-138 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6fca45e926d355d6edf1ab81653593a0518f113592463eabed65178600fdca4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/handler/project.go:560-571 | internal/handler/project.go:579-590 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":560}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dfe02ef7dab54cbd5680788e0283d5ea781769addaa8afc010fee4dadf61958"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/handler/config.go:2454-2471 | internal/handler/hitl.go:314-333 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":2454}}}],"partialFingerprints":{"codehealthFindingId/v1":"674813b9f8d315f1ba56e6e226c091415c825957805ffee3acb9d2072ff9331e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/handler/agent.go:796-806 | internal/handler/agent.go:816-827 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":796}}}],"partialFingerprints":{"codehealthFindingId/v1":"df396b55d2113857d18e4500a11f9d3c7e3a445bcef857a3d8aaa3084c8bacc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/workflow/graph_types.go:92-104 | internal/workflow/graph_types.go:106-118 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/graph_types.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9026b502f3aef3414063069f86c399c268779f8de15323b6180f8bf5fd8de66"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 19\u002B corresponding lines): internal/database/c2.go:343-361 | internal/database/c2.go:727-748 | internal/database/c2.go:1031-1055 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 19 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"509e370675cd91d8fca54c2e82aa7710a6a6321129c997f793903606ffb87147"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): internal/handler/c2.go:137-151 | internal/handler/c2.go:582-594 | internal/handler/c2.go:1016-1028 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b3b8ba261ea900a2ec72e46cb4af00998240b885e83e95c90b70e0879a006e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (19 corresponding lines): internal/knowledge/indexer.go:250-268 | internal/knowledge/indexer.go:270-294 \u2014 These two members are one piece of code written twice and then edited apart: 19 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/indexer.go"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"92423f6db11eafa3f95b120a23e8c2192119875519bc4d6d5bbe7667740dc2fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/multiagent/runtime_dispatch.go:28-39 | internal/multiagent/runtime_dispatch.go:57-68 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/runtime_dispatch.go"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"1546cf6d54c62f4bb5965dff0e79fbce4752774368249aed4537028228641cf1"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/database/asset.go:923-938 | internal/handler/config.go:1350-1365 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"d01581925a85830f6cbecdd9043f0132abb96303df6d3a78f3e28abe2defbcb8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/database/webshell.go:134-145 | internal/database/webshell.go:148-164 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/webshell.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"632ed76477be3c85aa4881d0e8814882ce6dba598a1482a2ffe1c80a6494fb06"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/monitor/reconcile.go:36-51 | internal/monitor/reconcile.go:69-84 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/monitor/reconcile.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c61dbaa474990aa9c5046f6494a031184f598b700b488757229cf604151ed29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/robot/slack.go:83-98 | internal/robot/slack.go:100-112 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/slack.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"523a579282efdbbfdb26c26a68efe8a67a078ca466de70c7f374049719601b89"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 28\u002B corresponding lines): internal/database/monitor.go:903-930 | internal/database/monitor.go:977-1005 | internal/database/skill_stats.go:20-47 | internal/database/skill_stats.go:90-118 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 28 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"82ac58fda8759fa5e7b55a55f6d8275b7e73bee60221c61635a1ab3b080fb1b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 18\u002B corresponding lines): internal/mcp/server.go:501-518 | internal/mcp/server.go:1410-1428 | internal/mcp/server.go:1519-1537 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 18 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":501}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb275c06d3158c81fb0d52fd138b010084b1efc3d2d70319482143e0b3adabf9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/database/project.go:155-173 | internal/database/project_fact_edges.go:244-259 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e42b6a35c0ff11ef6735f3dd62b9b00b13255a2f334d53d4674e4b142455fff"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/attackchain/truncate.go:193-208 | internal/attackchain/truncate.go:210-225 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/truncate.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8fe54678dcabd1e0b173608909e247479de99553a82ccb9532fee23d8a155bc"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java:645-656 | plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java:719-730 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fd1aed78a4f51bb4230b7421b336e83e6c2ff142e258fbd47cd17eae53644d4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): internal/handler/config.go:2674-2693 | internal/handler/finalization_auto_continue.go:162-177 | internal/handler/fofa.go:1133-1149 | internal/knowledge/retrieval_postprocess.go:100-122 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":2674}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f27dc7d3e724f621cf4d354508ce12c4b4e558249446bcd89782b35d9fc6c22"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (20 corresponding lines): internal/agent/token_counter.go:24-43 | internal/knowledge/retrieval_postprocess.go:37-56 \u2014 These two members are one piece of code written twice and then edited apart: 20 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agent/token_counter.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2c38c9e44195dc031e12c8976734a779cfb5c1d587aa3843c28864be05e973e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (16 corresponding lines): internal/handler/robot.go:306-321 | internal/handler/robot.go:334-350 \u2014 These two members are one piece of code written twice and then edited apart: 16 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b45d9be8ef0847679ac14a531459bea220221ee524ca7a173430aa79e05f795"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/database/vulnerability.go:599-616 | internal/knowledge/manager.go:137-154 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability.go"},"region":{"startLine":599}}}],"partialFingerprints":{"codehealthFindingId/v1":"1478563090f1f1ee6ebcfb8816b4197827ed6871c2d3f25a1e46230059860c37"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/database/rbac.go:280-292 | internal/database/rbac.go:1022-1039 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"a525c5d20d90298806be3e2260395839b5179e37ae94eefd3881352b4333181d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (6 members, 16\u002B corresponding lines): internal/database/c2_http_auth.go:46-61 | internal/database/project_stats.go:53-79 | internal/database/rbac.go:1205-1220 | internal/database/rbac.go:1222-1237 | internal/database/schema_reconcile.go:27-42 | internal/database/schema_reconcile.go:44-59 \u2014 These 6 members are one piece of code written 6 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 6 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2_http_auth.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce1305a267a5d67a250704b44b4fe0ae380340ddc4a1bc77f9acc81c1f8481df"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/database/workflow.go:236-253 | internal/database/workflow.go:279-296 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/workflow.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ab45ce63c90a3f97de2915a02d08796a46ffe74a34a581f42808835521276ee"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SendOptionsDialog.java:187-197 | plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SendOptionsDialog.java:199-209 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SendOptionsDialog.java"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcbff1eaf2950d640fb1527e198170fa6e5e0f302e8ca976b0c2de918f37851b"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/agents/markdown.go:202-218 | internal/skillpackage/content.go:68-87 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agents/markdown.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"103d82122e9ed6cf4c31d02cd3a90aedded08d98ed33cb32b67a9ec8a277898a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/config/config.go:761-778 | internal/config/config.go:780-797 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"56dbc6e4a6142f0876fa2bbdbfe69fd2560287d6b236fc4547674e56f30fa76d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (18 corresponding lines): internal/database/conversation.go:982-999 | internal/database/conversation.go:1338-1358 \u2014 These two members are one piece of code written twice and then edited apart: 18 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":982}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f8e130fb74b9b042c861b71283729775fb57dfc48f7ebd2cad6dee7dee6ef4a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (26 corresponding lines): internal/database/c2.go:1206-1236 | internal/database/c2.go:1726-1751 \u2014 These two members are one piece of code written twice and then edited apart: 26 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9a922b95fb96ae61c720d5eefe59e7e8064469977413206124be8694a9d64d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (24 corresponding lines): internal/database/rbac.go:488-511 | internal/database/rbac.go:541-566 \u2014 These two members are one piece of code written twice and then edited apart: 24 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1403b163a7621328f9f1432c31702a9f1b6fcb0b48bb08550c279202394c2ad"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/project/workspace.go:27-40 | internal/tooloutput/spill.go:57-70 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/workspace.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"75e68c724b06af4a27dcc0d5160742d978dd9b0080a462985d2be7f590d35c16"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/database/asset.go:705-721 | internal/database/pi_sessions.go:31-48 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c2fc76130e64b3771043c12c405ee5508bf80abdfaad5a494731b2526112dc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java:658-668 | plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java:670-680 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAITab.java"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"456d112d17b3d2cbb98674de122e58b1ba09f189061a5e41d3c389fbf365b481"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/database/project.go:234-243 | internal/database/project.go:245-255 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfc33bf6f5af53edb8f314f702f111ebb60ac9a93dea1768a59848a324858fe8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (17 corresponding lines): internal/handler/fofa.go:827-845 | internal/handler/fofa.go:847-863 \u2014 These two members are one piece of code written twice and then edited apart: 17 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"36d7462f1dacf28c15145d4f296b21b1df10056e8d9861b67f517ad313dd95c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (4 members, 16\u002B corresponding lines): internal/robot/discord.go:27-42 | internal/robot/qq.go:39-57 | internal/robot/slack.go:29-44 | internal/robot/telegram.go:79-94 \u2014 These 4 members are one piece of code written 4 times and then edited apart: every two of them correspond over at least 16 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 4 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/discord.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69eb737774be194113ef31b01c3a7c64c60185cf5638a0d73244a9775f4bed5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/config/config.go:1672-1689 | internal/config/config.go:1694-1707 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1672}}}],"partialFingerprints":{"codehealthFindingId/v1":"21c164387bbdaa4c89bf4f518d164ca21e47a9eb9f1f6edba5d8a606be98e726"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/database/workflow.go:139-152 | internal/database/workflow.go:355-368 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/workflow.go"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"1202d8222f50de348da578c406665d7e8614656e78a1c428de5ed97edad0b330"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/project/fact_edges.go:268-283 | internal/project/fact_template.go:24-37 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_edges.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"79f6ce4e59fe4def7daec33a47491abe1b1a665bf6dc2a8653907fe0111df789"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): internal/handler/chat_uploads.go:275-289 | internal/handler/chat_uploads.go:291-305 | internal/handler/chat_uploads.go:307-321 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"99b5363701daa7be3c997d9aee69ac54e03d24b7443652cd6b9f67e3a99f743d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/handler/knowledge.go:227-238 | internal/handler/vulnerability.go:140-151 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/knowledge.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"d89126f3dc4c09a6c1fcb399eded02f21a1db55c292cb76e2f5a80ed5faf7124"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/database/rbac.go:402-409 | internal/database/rbac.go:411-418 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9ae81af7b8769f04d757ee6f0114c3a0e96a1194bd1194319dcb03912d867c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 14\u002B corresponding lines): internal/openai/reasoning_payload.go:20-33 | internal/openai/reasoning_payload.go:56-72 | internal/openai/reasoning_payload.go:77-94 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 14 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/reasoning_payload.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"c18367311b36a2f6be8e1d5bd079cb9c392fdde803f87d84f58aa74cd3a1b087"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/robot/discord.go:110-121 | internal/robot/slack.go:123-135 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/discord.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ff4a28d4291ef6f77f2a588c74243f7bd4f560114a7660cfd46b73330051c9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/handler/config.go:2474-2485 | internal/handler/config.go:2488-2500 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":2474}}}],"partialFingerprints":{"codehealthFindingId/v1":"093879e702b562208b86d3dbb6bf0a156957dcd7b7cdc9609dddf024fb09a7e5"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (13 corresponding lines): internal/handler/hitl_cognition.go:37-49 | internal/handler/hitl_cognition.go:52-68 \u2014 These two members are one piece of code written twice and then edited apart: 13 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_cognition.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b4267b0affde63d84b5e7269d734129668166c91b73bc853789946ef30bedd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/handler/agent.go:1834-1843 | internal/handler/agent.go:1846-1855 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":1834}}}],"partialFingerprints":{"codehealthFindingId/v1":"378adab8558d22d539abf23aa3670b4637322600e11d7ee53353adcb29d6f42d"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/handler/batch_task_manager.go:1247-1260 | internal/handler/batch_task_manager.go:1263-1279 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":1247}}}],"partialFingerprints":{"codehealthFindingId/v1":"f78f5133a91bc301aedb6fc61314ab22bc079c6f4d2fb609543d46af84f94128"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/update/apply.go:91-101 | internal/update/apply.go:124-135 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ec2d91ccb0e34870aec43c9d00cc2746e222b6a1fbbc170bbe96e94d535aae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 10\u002B corresponding lines): internal/handler/config.go:2801-2814 | internal/handler/config.go:2816-2829 | internal/handler/external_mcp.go:485-494 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 10 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":2801}}}],"partialFingerprints":{"codehealthFindingId/v1":"b67c657ecb039816bc01ca16f4490779fc3c3131a211d6cbaa8bd925e61a0399"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 12\u002B corresponding lines): internal/app/asset_tools.go:382-393 | internal/handler/asset.go:239-250 | internal/handler/token_usage.go:81-92 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/asset_tools.go"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f7139e8a8e4f892f0f47d2a4975a3b1184c528bd661e5baeaad886512fbab3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/mcp/execution_control_tools.go:228-242 | internal/knowledge/metadata.go:42-56 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/execution_control_tools.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9353e38f06c617774e31ad2e40f9e8904005609d121e58d65d9458b888572f43"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/handler/config.go:2723-2734 | internal/handler/config.go:2789-2799 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":2723}}}],"partialFingerprints":{"codehealthFindingId/v1":"71005bed3373a9089328526cf81bf330569f5cdd0a54cb2cfa5ed1cc5e8c9d91"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/database/project.go:176-186 | internal/database/conversation.go:670-680 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"cee2a4c8ac732fcc5707c590f6fba738e607ec68d92e8cb00bb424d89b027af9"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/handler/asset.go:534-540 | internal/handler/project.go:230-236 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/asset.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"778a2e4cb897c70e44cdf8df3ab91592e0e5166784e078ab8fbc5e5e932b357e"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 13\u002B corresponding lines): internal/handler/batch_task_manager.go:832-846 | internal/handler/batch_task_manager.go:849-861 | internal/handler/batch_task_manager.go:864-877 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 13 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"69f5a97eeee587a825441447a535314721836437a0d07558b9abc1edd7ac57b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (15 corresponding lines): internal/mcp/client_sdk.go:176-191 | internal/mcp/client_sdk.go:194-208 \u2014 These two members are one piece of code written twice and then edited apart: 15 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/client_sdk.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ab6feb38e4f252b8563f834192ff01891722cc06cba54198de7b1a6f13c678"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 9\u002B corresponding lines): internal/handler/robot.go:295-303 | internal/handler/robot.go:324-332 | internal/handler/robot.go:352-361 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 9 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"f134904a757ccb698fcd9625e8b2ca120dbae68a54a5bbbacac1041a8493b78a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (7 members, 12\u002B corresponding lines): internal/handler/task_manager.go:76-87 | internal/handler/task_manager.go:90-103 | internal/handler/task_manager.go:106-117 | internal/handler/task_manager.go:120-131 | internal/handler/task_manager.go:187-200 | internal/handler/task_manager.go:216-229 | internal/handler/task_manager.go:232-244 \u2014 These 7 members are one piece of code written 7 times and then edited apart: every two of them correspond over at least 12 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 7 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/task_manager.go"},"region":{"startLine":76}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a4a8e1295546632c1537e486b976d38122a869b59ab7598eb77e9163c7e8bc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/database/c2.go:24-35 | internal/handler/skills.go:700-710 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"acfda548b0834d52d81eb93cf61fb5b9c692faf6a6482cf75602ed7b91523be4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 15\u002B corresponding lines): internal/audit/retention.go:13-27 | internal/hitl/retention.go:57-71 | internal/monitor/retention.go:57-71 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 15 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/audit/retention.go"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf0c278b8e81592b74510dd4e8587c887fdba881a37900b3daf5de2db917303f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copies of one member (3 members, 11\u002B corresponding lines): internal/handler/c2.go:1227-1240 | internal/handler/conversation.go:134-144 | internal/handler/webshell.go:976-989 \u2014 These 3 members are one piece of code written 3 times and then edited apart: every two of them correspond over at least 11 lines, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below: the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain. Factor the shared implementation out once and have all of them call it with their differences as parameters or as an injected step, or, where the difference is systematic, generate them from one template. Left alone, the next edit has to be made 3 times and the copies will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"87db76d9b2a0027d73f18be9f181190c43264d090c34425a519e9740d3fa25a2"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/security/auth_manager.go:273-286 | internal/security/auth_manager.go:290-306 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/auth_manager.go"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"89ff70c740aa15a00916bc9536a9ab530a677bfe0e31799864a3fd11832b4e9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (14 corresponding lines): internal/database/c2.go:441-454 | internal/database/c2.go:470-490 \u2014 These two members are one piece of code written twice and then edited apart: 14 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"652d09811aceb9d070d1d5158935f1cd76f428037a7e5c58124f0ac6b9e568d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/agent/agent.go:626-635 | internal/handler/attackchain.go:37-45 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agent/agent.go"},"region":{"startLine":626}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce6589613ba7f61e06f67fe0564430f823851734e7b29de0f18a7357a5d16379"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/c2/listener.go:61-69 | internal/mcp/server.go:911-920 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener.go"},"region":{"startLine":61}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5fc3bd13b2089ad087b40d816a89bd0629d2daea8e1d26dfafcf4b0d4b3c15"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (33 corresponding lines): internal/handler/notification.go:172-207 | internal/database/vulnerability.go:122-154 \u2014 These two members are one piece of code written twice and then edited apart: 33 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/notification.go"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"17d72cb221187f1cebc0fce3e022b1e08e880930cbd88253a55c858aef0bcabd"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/database/skill_stats.go:133-142 | internal/database/monitor.go:709-717 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/skill_stats.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"d62a277ab280cbea91ca07c10fe0f3a919822a4b4b9d4750f2a0bbcf48799040"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/config/envexpand.go:77-86 | internal/reasoning/provider.go:109-118 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/envexpand.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f2b1f70a481341670b73cf7f2f202df40e5eaa47565cb3c9d2dc3470262e889"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/handler/fofa.go:565-575 | internal/project/fact_edges.go:75-85 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":565}}}],"partialFingerprints":{"codehealthFindingId/v1":"371eb10db660f379001d36cbc62002a5338b0c0ac540da180dbd4f91c1a785a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/mcp/external_manager.go:1014-1023 | internal/mcp/server.go:1288-1297 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a3ddbdf8fb27836b1a5acee3f586f04523d63fc92960e07236cd8051e58938f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/app/asset_tools.go:417-423 | internal/app/c2_tools.go:677-683 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/asset_tools.go"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"92523d3687f84943f4227600a8f435fa0b739cac13da28557f61e786acd66e49"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (12 corresponding lines): internal/security/executor.go:1108-1123 | internal/tooloutput/spill.go:190-201 \u2014 These two members are one piece of code written twice and then edited apart: 12 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":1108}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e49590f66bc7bd2da785e09f7d7fc48ea40d4824a2486496bba6cfeb213d1a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/handler/skills.go:44-54 | internal/skillpackage/layout.go:25-34 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/skills.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"b949d4fe09ddb1d12003e8176daedd640e11acc586337d30f4ae0c74d8581e9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (11 corresponding lines): internal/mcp/types.go:333-344 | internal/project/blackboard.go:12-22 \u2014 These two members are one piece of code written twice and then edited apart: 11 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/types.go"},"region":{"startLine":333}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0186408c66ea96e4592dee1e1adba090b0ea2f51a3b76d0f6ebfc61505eb29"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (9 corresponding lines): internal/workflow/engine.go:144-152 | internal/workflow/validation.go:327-336 \u2014 These two members are one piece of code written twice and then edited apart: 9 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/engine.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cff3666521fe10c6745f6a833deff0b8e84e16d2dc792a5936e2a3b8e845579"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (4 corresponding lines): internal/handler/agent.go:1857-1860 | internal/handler/workflow_run.go:185-188 \u2014 These two members are one piece of code written twice and then edited apart: 4 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":1857}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf7fd40a458b73162cf195da01987e69d736154519c7d921d2e2c6b829848af4"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/database/audit.go:162-168 | internal/database/c2.go:1065-1071 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/audit.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1297ce7aa88617eb4083f55333b0805c6f899fa4476ce37b7209d3f9f0a0a4e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (5 corresponding lines): internal/database/asset.go:511-515 | internal/database/vulnerability.go:40-45 \u2014 These two members are one piece of code written twice and then edited apart: 5 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0cd66ba55693847394dfed147750de0ff9a6dd1726a58c98f6ca16970f75860"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/handler/c2.go:1242-1248 | internal/handler/hitl_logs.go:332-338 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":1242}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a9e4a55cbd1a81ab13b97bb5dcf0924486c3d947f9fb49668893c50ef962570"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (7 corresponding lines): internal/robot/discord.go:19-25 | internal/robot/telegram.go:71-77 \u2014 These two members are one piece of code written twice and then edited apart: 7 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/discord.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a0a6e167176feca65109c0908d10f52cb1f6262b06433f3779da86736c8e69f"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (10 corresponding lines): internal/security/procattr_unix.go:11-20 | internal/security/procattr_windows.go:13-23 \u2014 These two members are one piece of code written twice and then edited apart: 10 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/procattr_unix.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b0c66621e21779bb0b5a931c5afb1797ecdc4ab063df4f186468492af76acf"}},{"ruleId":"D4","level":"warning","message":{"text":"Edited copy of a member (8 corresponding lines): internal/mcp/external_manager.go:1005-1012 | internal/mcp/server.go:1279-1286 \u2014 These two members are one piece of code written twice and then edited apart: 8 consecutive lines correspond almost exactly, broken only by small local edits. Most of that correspondence is NOT reported as duplicated blocks below \u2014 the edits cut it into fragments and only the largest of them clear the block floor, so the rows below understate it. The repair is at the members\u0027 grain \u2014 factor the shared implementation into one the two call with their differences as parameters or as an injected step, or, where the difference is systematic (an extra return value, one transport against another), generate one from the other. Left alone, the next edit has to be made twice and the two will drift further apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea1e6c28a06cf2976ad6c7e25eb0239bfb6e34d734cd4abf214af9008c9af29a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 2): internal/handler/batch_task_manager.go:317-394 | internal/handler/batch_task_manager.go:562-639 \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":"internal/handler/batch_task_manager.go"},"region":{"startLine":317}}}],"partialFingerprints":{"codehealthFindingId/v1":"39ccc2db2d9d85bcc35f831af3036c9e04ebb505d86425a09e12ed239ed3a76d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (83 lines \u00D7 2): internal/handler/multi_agent.go:299-381 | internal/handler/single_agent.go:285-367 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:299\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"5280a81337c1ae4769bd39a46e04f02e079ed639badb0efb152c1ca7f59116c7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (51\u201357 lines \u00D7 2): internal/handler/multi_agent.go:49-105 | internal/handler/single_agent.go:38-88 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:49\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":49}}}],"partialFingerprints":{"codehealthFindingId/v1":"932d42c185ce9464eae077f66dd0bb3068b0c7eb98949c7aecc9326bd5b63876"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (47\u201352 lines \u00D7 2): internal/handler/terminal.go:65-116 | internal/handler/terminal.go:191-237 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3254108d48f53ee1bc719695aced9c1bebff641d9d0ba1153041999f2cf84b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (46 lines \u00D7 2): internal/handler/multi_agent.go:216-261 | internal/handler/single_agent.go:203-248 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:216\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":216}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dac0ecf73d23f0fae516d218d16771231985750ca62d04d73c377b8a9196ca3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (39\u201340 lines \u00D7 2): internal/security/executor.go:1144-1183 | internal/security/shell_execute_stream.go:119-157 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"2878ff50531458d1b3ec114dfdab2f654083ed4face44d5ebd7acb21721e6a08"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (38 lines \u00D7 2): internal/database/monitor.go:196-233 | internal/database/monitor.go:762-799 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/monitor.go:196\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"906359cf528abf2b4c789158affcd2c42b4df3ea1631409238133ac3610b99b2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2): internal/mcp/external_manager.go:1146-1182 | internal/mcp/server.go:747-783 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":1146}}}],"partialFingerprints":{"codehealthFindingId/v1":"a75e897bb5b502d53ea41a9eead74a2e38f6b96a278212a02f71c207549d3ff0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201336 lines \u00D7 4): internal/knowledge/manager.go:307-342 | internal/knowledge/manager.go:413-445 | internal/knowledge/manager.go:500-532 | internal/knowledge/manager.go:557-592 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060m *Manager) GetItemsWithOptions(category\u0060 in one and \u0060m *Manager) SearchItemsByKeyword(keyword\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/manager.go"},"region":{"startLine":307}}}],"partialFingerprints":{"codehealthFindingId/v1":"b637c2d033b7410f11b97b54e8f7cf21ddd8b34364511f037bf14cd415c1d09d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (36 lines \u00D7 2): internal/database/c2.go:555-590 | internal/database/c2.go:662-697 \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":"internal/database/c2.go"},"region":{"startLine":555}}}],"partialFingerprints":{"codehealthFindingId/v1":"83196103a4bf896aebfca7c0b68789e39f532a2d74acc5b03c2f212c5006bf0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33\u201335 lines \u00D7 2): internal/database/conversation.go:1028-1062 | internal/database/conversation.go:1086-1118 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/conversation.go:1028\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"993cddb753b6caa7df16d76865fd1ee57f0ee6bdf1614f30bb5d370f84877c71"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2): internal/database/c2.go:1171-1204 | internal/database/c2.go:1239-1272 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2.go:1171\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/database/c2.go:1235\u0060 calls \u0060scanC2TaskRows\u0060 and \u0060internal/database/c2.go:1170\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1171}}}],"partialFingerprints":{"codehealthFindingId/v1":"418544dcfad16f523bb9018e1a9aabd9a339f0353a105b93d31744961331d158"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31\u201334 lines \u00D7 2): internal/database/conversation.go:151-181 | internal/database/conversation.go:297-330 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/conversation.go:151\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e57bbc807c6c806676194f6af708eeaef10f88bf474c5a579ef26429db9f821"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): internal/database/batch_task.go:182-214 | internal/database/batch_task.go:254-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":"internal/database/batch_task.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f87c3577882c6fae324cd9c18f132219c0ed3d35c76b3f430a200f7b0b11d790"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2): internal/handler/multi_agent.go:114-146 | internal/handler/single_agent.go:97-129 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/handler/multi_agent.go:147\u0060 calls \u0060TrimSpace\u0060 and \u0060internal/handler/single_agent.go:131\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf47f10f4f343bc33dc8f4432b9811e7ec39d2499a51e385db7b7cdca5fbe117"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (31 lines \u00D7 2): internal/handler/c2.go:483-513 | internal/handler/c2.go:880-910 \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":"internal/handler/c2.go"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f20c6dfdb69c0c62cad8bc7f2faf2c55f968f82e981e91bff15b45a683bec9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): internal/handler/role.go:388-417 | internal/handler/skills.go:668-697 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":388}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d952c4bfc94ebd3eb2b8341cadbc81180c4f613d36ff761bfd440f3fa1358ca"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201329 lines \u00D7 3): internal/database/conversation.go:258-286 | internal/database/conversation.go:352-380 | internal/database/conversation.go:639-663 \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":"internal/database/conversation.go"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"3e464e15dde259145d36644bd290897d2f95cfb4da54ca9a420fb93ebdf262b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (24\u201328 lines \u00D7 3): internal/database/monitor.go:231-258 | internal/database/monitor.go:566-589 | internal/database/monitor.go:797-824 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/monitor.go:231\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2529c119d91fe1a63df0744644d8f32dd4804512ac65e026846bf71037ecec3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2): internal/handler/multi_agent.go:465-494 | internal/handler/single_agent.go:446-475 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b167f06436587ff2dde6b4655c64eb939c1c14234a9f3f7fdd2d0438ad8e732"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2): internal/database/c2.go:1144-1170 | internal/database/c2.go:1208-1234 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/database/c2.go:1235\u0060 calls \u0060scanC2TaskRows\u0060 and \u0060internal/database/c2.go:1171\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1144}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c372834b0b568dcbdbed898477085bb9a80f7c57093c109dc0a98747a6a5694"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25\u201327 lines \u00D7 2): internal/handler/config.go:1483-1509 | internal/handler/config.go:1743-1767 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/config.go:1483\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd148d5e0f26f22a97a0baca948ff13c52868f7621e52d3c9a38d9f3b080746"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): internal/handler/webshell.go:410-435 | internal/handler/webshell.go:481-506 \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":"internal/handler/webshell.go"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf6bdb1c5a8d775c19243dab6d7a1fe39345ce06c885c9d2ba725bf26bb30f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): internal/handler/config.go:529-553 | internal/handler/config.go:584-608 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/config.go:529\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d43de94c2026a3163ce83e9b226e0802adc6fb3324d932af71178590bf11361"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): internal/mcp/external_manager.go:826-850 | internal/mcp/server.go:995-1019 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebc32c8b7ef6b4fe9594275feacbed68647387193527e1bc6f6a638bc1363d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): internal/mcp/external_manager.go:979-1003 | internal/mcp/server.go:1302-1326 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":979}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3a585ff3693acace22ce29ad3fa7c88787e22e78c01d09ea5076c3d49f94710"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23\u201324 lines \u00D7 2): internal/database/project.go:266-289 | internal/database/project.go:303-325 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/project.go:266\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/database/project.go:302\u0060 calls \u0060appendProjectAccessFilter\u0060 and \u0060internal/database/project.go:265\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e7a416b8e0687cae97be305020ef0743a1a2f83bec07281d0a741f3e6f02a2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201323 lines \u00D7 3): internal/app/app.go:1939-1948 | internal/app/app.go:2014-2032 | internal/app/app.go:2056-2078 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/app.go:1939\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":1939}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f2e425dfd1fd5bc9955e02adb28ddb2cce01623398db2b73bf7443cc85ab712"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): internal/app/c2_tools.go:745-767 | internal/app/c2_tools.go:799-821 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/c2_tools.go:745\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_tools.go"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc4b23f985c5e24f77ce1cc4955c62f81aa0dbaa5262dca39e5a3b733f8b1af5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): internal/handler/config.go:2284-2306 | internal/handler/config.go:2354-2376 \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":"internal/handler/config.go"},"region":{"startLine":2284}}}],"partialFingerprints":{"codehealthFindingId/v1":"11f3efd906cebacba503a39ce976c77913bbdb417229174f294def7d3c5676dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (43\u201344 lines \u00D7 2): internal/handler/multi_agent.go:167-210 | internal/handler/single_agent.go:160-202 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:167\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/single_agent.go:159\u0060 calls \u0060UpdateTaskStatus\u0060 and \u0060internal/handler/multi_agent.go:166\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb7d0a50fd0c56992f8375fda7f0152dd810aecac896d8caf0190548004ea7a7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2): internal/handler/role.go:327-349 | internal/handler/skills.go:608-630 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/role.go:327\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d818866288e32f2ed0d8946d3389e08b13f3c14bc9cfdab77d3b9a0316329d9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): internal/database/c2.go:1688-1709 | internal/database/c2.go:1728-1749 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/database/c2.go:1750\u0060 calls \u0060scanC2EventRows\u0060 and \u0060internal/database/c2.go:1710\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1688}}}],"partialFingerprints":{"codehealthFindingId/v1":"12adab868b39fb197389427a6d0876c417e9ae97d663355ce3f94bc47fe7008e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): internal/handler/chat_uploads.go:488-509 | internal/handler/chat_uploads.go:564-585 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/chat_uploads.go:488\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":488}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e76c43398b09f3fa6b1a8f92857721f2c7f579588f8838e4920710c687a83f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (30\u201331 lines \u00D7 2): internal/handler/role.go:353-383 | internal/handler/skills.go:634-663 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/role.go:353\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a9b63d7a6a061b4401bbcaa36169313530ca46fc575bd41c17665384aa44a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): internal/mcp/external_manager.go:1060-1081 | internal/mcp/server.go:787-808 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":1060}}}],"partialFingerprints":{"codehealthFindingId/v1":"2627278973ca64758dc4df1dcbf2b4564b9f6008b206e0e8e96493d5e1396326"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20\u201321 lines \u00D7 4): internal/handler/monitor.go:210-229 | internal/handler/monitor.go:262-281 | internal/handler/monitor.go:361-381 | internal/handler/monitor.go:391-411 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/monitor.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8b3b06aa1ebcdfbdd7f553591d9cd5051f2248ede5574617e7db12f6e8647c6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): internal/c2/crypto.go:63-83 | internal/c2/crypto.go:117-137 \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":"internal/c2/crypto.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"3536b5b188a741619e208c1cd52bbed9f4038d265fafcd742abd096cb3d52692"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2): internal/handler/multi_agent.go:395-415 | internal/handler/single_agent.go:381-401 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:395\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":395}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f2e151001674419b10e4760df8a754eb81a83e23b530df67d23db2ff893ccd3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2): internal/handler/c2.go:715-734 | internal/handler/c2.go:786-805 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/c2.go:715\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a507c0bdd38d1be7cff0d328b33cc2ad10948a81dc269ce9245e1cafbe235b8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): internal/app/c2_tools.go:68-89 | internal/app/c2_tools.go:543-561 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/c2_tools.go:68\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_tools.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f29bdf80ff1c9350bf8b69dba0fb7eb2e5bfb23154ceca1c6072be41a5020f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): internal/database/c2.go:591-609 | internal/database/c2.go:639-657 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":591}}}],"partialFingerprints":{"codehealthFindingId/v1":"f18cb18a98ded106d4ca112c8eb4f97804177ae5644e20e33c7d2fc89117a2e7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): internal/handler/role.go:159-176 | internal/handler/role.go:282-300 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/role.go:159\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/handler/role.go:303\u0060 calls \u0060Info\u0060, \u0060String\u0060 and \u0060internal/handler/role.go:178\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"efa249d8ecd2e23b644ff1a490ac0f4ef155dd6dedfd2b2279772d1403e9eb13"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18\u201319 lines \u00D7 2): internal/mcp/server.go:548-566 | internal/mcp/server.go:1043-1060 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/mcp/server.go:548\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":548}}}],"partialFingerprints":{"codehealthFindingId/v1":"6533ca1fbf7b848625106ea5591244776b525e613636c862e7fc20d7eb39d2d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/knowledge/manager.go:267-284 | internal/knowledge/manager.go:468-485 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/knowledge/manager.go:267\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/manager.go"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9050e716ed612ec82f86f8979f4cacfc0792eddb4dff1ffae6384118d1215c8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 4): internal/database/c2.go:768-784 | internal/database/c2.go:1353-1369 | internal/database/c2.go:1456-1472 | internal/database/c2.go:1775-1791 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":768}}}],"partialFingerprints":{"codehealthFindingId/v1":"3baae69891faedc6f41662143903964889298ab0456d950f423c0164cf5517d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16\u201317 lines \u00D7 3): internal/database/asset.go:995-1010 | internal/database/asset.go:1078-1093 | internal/database/asset.go:1188-1204 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/asset.go:995\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":995}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c5f3efb6176460c2936ac2283353ec0e4e29813333ff1e2c1bff2e021c2af5d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/app/app.go:328-344 | internal/app/app.go:2258-2274 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/app.go:328\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b29c8bc65edcab80d436c017ce78b0f8d89dd0fb7124ceaf35d381efad69fc6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/database/project_fact_edges.go:177-193 | internal/database/project_fact_edges.go:225-241 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/project_fact_edges.go:177\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project_fact_edges.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df4c4ab9e9449b793c6f6c1006d334486e9ad54fd40b06515e96fac29cb55de"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2): internal/handler/multi_agent.go:424-440 | internal/handler/single_agent.go:410-426 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:424\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5d86902d3364df2798e245905dafb7b5e1cbb3b95d3eebc424fb49f1ae3d04"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): internal/c2/crypto.go:40-55 | internal/c2/crypto.go:94-109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/crypto.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"cffe08c6cef84f6162a6d4091dc0303363ac6069086bc3bf34cda0e170ef973c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26\u201327 lines \u00D7 2): internal/database/batch_task.go:147-173 | internal/database/batch_task.go:220-245 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/batch_task.go:147\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/batch_task.go"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"fab8bcbd386584d92b0a71992c37d30460b748ba1e0ed711a60932bcfda15424"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): internal/database/c2.go:618-633 | internal/database/c2.go:710-725 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2.go:618\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":618}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccd00a5eb321807c624f0cfc5febc5ed4b20ad697c47b21e9afba82b84fd51b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): internal/handler/agent.go:1932-1947 | internal/handler/agent.go:2187-2202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/agent.go:1931\u0060 calls \u0060NormalizeAgentMode\u0060 and \u0060internal/handler/agent.go:2186\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":1932}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab7c9105c331e1e3738464d50cd0d379afd9a7bad17adb6ea993f55d50ca1469"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201316 lines \u00D7 2): internal/handler/attackchain.go:79-94 | internal/handler/attackchain.go:136-149 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/attackchain.go:79\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/attackchain.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d340cceaba07a149c6e1fb3263cee84a620ed5636c85c2a0b13595aa3acad499"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2): internal/handler/webshell.go:573-588 | internal/handler/webshell.go:605-620 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/webshell.go:573\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":573}}}],"partialFingerprints":{"codehealthFindingId/v1":"58e4d241224ccf3df1b3150bc6980666ed14ea4c2fab9fba30a76493dcba5fbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): internal/database/c2.go:966-980 | internal/database/c2.go:1186-1200 | internal/database/c2.go:1254-1268 \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":"internal/database/c2.go"},"region":{"startLine":966}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f8a743b839c7a77deb21e4662359297dac69a0ac2d87ee5ba38bc1c6eefb42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 3): internal/handler/multi_agent.go:179-193 | internal/handler/single_agent.go:172-186 | internal/handler/workflow_integration.go:95-109 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8025d6b125e5b7035959f5fac80a056491001bc97b5398ca38a83e670ecec90"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/database/c2.go:1710-1724 | internal/database/c2.go:1754-1768 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2.go:1710\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/database/c2.go:1750\u0060 calls \u0060scanC2EventRows\u0060 and \u0060internal/database/c2.go:1709\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1710}}}],"partialFingerprints":{"codehealthFindingId/v1":"55516733cf9870c49907e3660788eaf4a14adf028c22a9bb691a25ff4f601d2f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2): internal/database/monitor.go:130-144 | internal/database/monitor.go:178-192 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d41320b906e7c5bc0069e2ed2ba73eca842cf03e48459c74d1a8d189ece0402"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2): internal/handler/webshell.go:1000-1025 | internal/handler/webshell.go:1069-1094 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/webshell.go:1000\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf2307edfd186e456c9d96270d98d20317651a425bfdf73ff9a19e23657e2421"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14\u201315 lines \u00D7 2): internal/workflow/resume.go:90-103 | internal/workflow/runner.go:185-199 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/resume.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"354d3985bda4123fe60f8dfb2a796209446368e6db05d74bcf0d21d1d323c1d6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): internal/database/c2_http_auth.go:48-61 | internal/database/rbac.go:1207-1220 | internal/database/rbac.go:1224-1237 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2_http_auth.go:48\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2_http_auth.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"8db923c265c6b17684bc33ae9f148133aef88e6e70f5d52c3bad5401e979e7a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): internal/handler/chat_uploads.go:175-188 | internal/handler/chat_uploads.go:195-208 | internal/handler/chat_uploads.go:215-228 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/chat_uploads.go:175\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1f69e97de8b33db09e5974937810599d78930983940b5c37dc8d787d1bd0c78"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): internal/handler/chat_uploads.go:473-486 | internal/handler/chat_uploads.go:549-562 | internal/handler/chat_uploads.go:619-632 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/chat_uploads.go:473\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/chat_uploads.go:472\u0060 calls \u0060Join\u0060 and \u0060internal/handler/chat_uploads.go:618\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcdddaff6b1cd52625473a29f512f20f73001fe9d71f7dbcc4a9891409ca6e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3): internal/handler/multi_agent.go:376-389 | internal/handler/single_agent.go:362-375 | internal/handler/workflow_integration.go:158-171 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:376\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a157704cfe0dac92280237612e2e4e90dd4bddfc639b2b9050315442087e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/app/app.go:308-321 | internal/app/app.go:2238-2251 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/app.go:308\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ac450e4c37ea1b7014bd1a89c8342be6858ab25597de0953fe050c9ae14860"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/config/config.go:1762-1775 | internal/config/config.go:1830-1843 \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":"internal/config/config.go"},"region":{"startLine":1762}}}],"partialFingerprints":{"codehealthFindingId/v1":"4610b256c4e819031277b588d03cf0798c272f823077e13d820a180c460ff1e0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2): internal/database/c2.go:270-294 | internal/database/c2.go:317-341 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2.go:270\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"15ba2361bb6f435a6e44a1ed9cdb330a75d2cf33327fe67c6f2cb140431b7c2e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u201314 lines \u00D7 2): internal/database/monitor.go:357-370 | internal/database/monitor.go:419-425 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/monitor.go:357\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":357}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c05eb57d47ffdc5ded6e83553c335d5cc4f5258ecefc1fc63f4701c3513b95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/handler/agent.go:2049-2062 | internal/handler/vulnerability.go:221-234 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/agent.go:2049\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":2049}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c1212afa3336fd7f4e09f39ca683a90e8396f992dade05eefb6fcfda2b5e00c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/handler/batch_task_mcp.go:208-221 | internal/handler/batch_task_mcp.go:500-513 \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":"internal/handler/batch_task_mcp.go"},"region":{"startLine":208}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9dfb4993005fec45ace2385e9009b33da5cbd3432936a61d4b6117d6e8c5f9b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/handler/chat_uploads.go:990-1003 | internal/handler/chat_uploads.go:1030-1043 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/chat_uploads.go:990\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":990}}}],"partialFingerprints":{"codehealthFindingId/v1":"092afdf06361b64cd63bc3406b491b92fd7b0a6bdb973034445135857708b23d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/handler/fofa.go:528-541 | internal/handler/hitl_audit_agent.go:220-233 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/fofa.go:528\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"fef58caf13bce0c91b48d26931c018633ca89f8ec89a1503a6589fbda5d7994a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/handler/terminal_stream_unix.go:34-47 | internal/handler/terminal_stream_windows.go:53-66 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/terminal_stream_unix.go:34\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/terminal_stream_windows.go:52\u0060 calls \u0060Wait\u0060 and \u0060internal/handler/terminal_stream_unix.go:33\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal_stream_unix.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b698421cf25c726b7b2456ede2960d29c4112a5d9c4a76366a116c273d51aa6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/mcp/external_manager.go:810-823 | internal/mcp/server.go:979-992 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/mcp/external_manager.go:810\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd847bad61aa7ccce91d80475e5ee26cf2be5ad8af9eb7d67523f85bb3d64dbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12\u201313 lines \u00D7 3): internal/app/app.go:1586-1597 | internal/app/app.go:1618-1629 | internal/app/app.go:1650-1662 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/app.go:1586\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":1586}}}],"partialFingerprints":{"codehealthFindingId/v1":"84cf75fec86ba73ef66d330bcdd7a90778b6f48162b04ed0f482fc23d4cc3c57"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): internal/database/asset.go:926-938 | internal/handler/config.go:1353-1365 | internal/handler/finalization_auto_continue.go:165-177 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/asset.go:926\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":926}}}],"partialFingerprints":{"codehealthFindingId/v1":"f90ac904d2ffefdd6451b8dd1d0ba0c54eed65fa5722a0a6f2b4c43e769292af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): internal/database/conversation.go:766-778 | internal/project/workspace.go:11-23 | internal/tooloutput/spill.go:218-230 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"59090931594c5655cc0656fcc1bf57448310eb57325a2cd82a691603b7b69682"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): internal/handler/config.go:1492-1504 | internal/handler/config.go:1564-1576 | internal/handler/config.go:1752-1764 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/config.go:1492\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":1492}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1fcd903818f84df808fded0af7c3fad335a0626c1a24d5715d6991536fae8db"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3): internal/mcp/execution_control_tools.go:34-47 | internal/mcp/execution_control_tools.go:59-73 | internal/mcp/execution_control_tools.go:93-105 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/mcp/execution_control_tools.go:34\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/execution_control_tools.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"67aae7c1dc120e819182fbcfa939ac3ac69ed13fa0d2eb16ef0e03d9538d1613"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/agentfinalizer/decision.go:222-234 | internal/agentfinalizer/decision.go:248-260 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/agentfinalizer/decision.go:222\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentfinalizer/decision.go"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"94829ff62acd47eb007dd75a92d7386f429085c2fd8e91b21e8e86ee0763a66b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/c2/listener_http.go:162-174 | internal/c2/listener_http.go:284-296 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_http.go"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"207a9c80e082c04c626d0675743034f15163b0340d9ff647eb94de3aaba01678"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/database/conversation.go:1382-1395 | internal/database/conversation.go:1845-1858 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/conversation.go:1382\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1382}}}],"partialFingerprints":{"codehealthFindingId/v1":"579d19df92e223ba65f7e34d7936e4a016937878d2258362e3984f2e8faf0f22"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/database/rbac.go:732-744 | internal/handler/fofa.go:1135-1147 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060db *DB) lookupRBACResourceOptionsByIDs(resourceType\u0060 in one and \u0060message\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb0b27a325762a45affca5d920cf70cbf3fa0af15446626759cb94391847f3c0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/database/storage_activity.go:19-31 | internal/database/storage_activity.go:42-54 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/storage_activity.go:19\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/storage_activity.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b99956317d7d483c178e5c3a879887f7fb51c542aa89275b63fddffd58bc3d7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/handler/attackchain.go:57-69 | internal/handler/attackchain.go:125-137 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/attackchain.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e40d5ca882df8587cd13ce152dd144acd8f59ff4f95b9e1e092080f0ad465ab5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/handler/chat_uploads.go:503-515 | internal/handler/chat_uploads.go:640-652 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/chat_uploads.go:503\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":503}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8d6000f9ba81c76ff963c23a6801aed0452f3d22d61db405961bd0a3ecb09a3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/handler/config.go:2070-2082 | internal/handler/external_mcp.go:383-395 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/config.go:2067\u0060 calls \u0060NormalizeAIProviderProfiles\u0060 and \u0060internal/handler/external_mcp.go:382\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":2070}}}],"partialFingerprints":{"codehealthFindingId/v1":"66dfc6f8f1eb99257a7e875b07cc4d36d7ca468aa80a90c6511b0b916d387af6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201313 lines \u00D7 2): internal/handler/webshell.go:751-763 | internal/handler/webshell.go:864-872 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/webshell.go:751\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"360603e64bb3da74d20e11d4c0ecda8abcf741a41e06f1825d9e1544f46e388b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): cmd/test-sse-mcp-server/main.go:108-119 | internal/mcp/server.go:335-346 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Check import visibility before settling on that home: \u0060internal/mcp/server.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/test-sse-mcp-server/main.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacf05150dda4549bdd1a83176757b65ba7e3e4cb052e453cb167a2078943b15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/database/asset.go:726-737 | internal/handler/hitl_logs.go:287-298 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/asset.go:726\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf598c50d91c98f32a1ff84b8f078ffaf9c7272bf49b326a98e25977fd17cbd1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/handler/agent.go:1805-1816 | internal/handler/agent.go:1820-1831 \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. Each matched range is the entire body of the declaration above it, so the region is already a complete unit: move that whole declaration to the shared location and have each site call it, rather than lifting the lines out of their bodies. Any \u0060return\u0060 inside it is the body\u0027s own exit and keeps its meaning in the moved unit."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":1805}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa4bdf6898ed94809de0d85cfc393f1505f3f8841861efd124c5da6cbe4dfcba"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/handler/agent.go:2264-2275 | internal/handler/agent.go:2296-2307 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":2264}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d508b0287b7c1e4f3bb7b21f857359f27bdda1008c7201db0925c8bfb4de66b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/handler/agent_multi_json_runner.go:20-31 | internal/handler/agent_single_json_runner.go:21-32 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent_multi_json_runner.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbf10c640ededcdb979c41b125ba7f53cc1dd0802bfd7881d18297e4bde18c24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/handler/config.go:417-428 | internal/handler/monitor.go:106-117 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":417}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b7c5c31a9cb57ecb73db3d49c9bca52ed885bc1d03ccddca7ce66f2c789b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/handler/hitl.go:858-869 | internal/handler/hitl.go:886-897 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"34b780efe7eb4f0c92657ade4cce26d39fb797a0d242de11cb4635933a07dc44"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/handler/knowledge.go:396-408 | internal/knowledge/indexer.go:320-331 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/knowledge.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa2ca124f06a601fa3d95a908f18bcafbd99fb4a9dc18e1146335a3a7d3edbe"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/handler/markdown_agents.go:187-198 | internal/handler/markdown_agents.go:280-291 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/markdown_agents.go:187\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/handler/markdown_agents.go:199\u0060 calls \u0060Base\u0060 and \u0060internal/handler/markdown_agents.go:292\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/markdown_agents.go"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b897d6e043cfaf7d419be6662ab720dfb0a70982022c47d61f51216b900c5e1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/handler/multi_agent.go:282-293 | internal/handler/single_agent.go:268-279 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:282\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3462bd1059858cda8b66d2cc369654771e4ac844136955b89c5aa0458fbd423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/knowledge/rerank_http.go:109-120 | internal/knowledge/rerank_http.go:156-167 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/knowledge/rerank_http.go:109\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/rerank_http.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef969586710b002280bd52345647776b3770ebf14c87ff8af0403417febc418"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/robot/qq.go:170-181 | internal/robot/qq.go:191-202 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/robot/qq.go:170\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/qq.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a4eab2611b0f91429c3e57d7ec086be33988dca0ab1c13744ebc6a398e9c376"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11\u201312 lines \u00D7 2): internal/update/apply.go:688-699 | internal/update/apply.go:775-785 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060ref string) (backupDir\u0060 in one and \u0060changed []Change) (backupDir\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d0e67b7019eeda4bdfb1cb8f6116caa7faa7a54a176ffd5726a94688e357246"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4): internal/database/asset.go:726-736 | internal/database/asset.go:926-936 | internal/handler/config.go:1353-1363 | internal/handler/finalization_auto_continue.go:165-175 \u2014 there are 4 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfc6b078e9c813ad4284e1cec3ac48276b582ed16296c5f88475cd8e4545cc3c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): internal/agentfinalizer/decision.go:200-210 | internal/database/asset.go:924-934 | internal/handler/config.go:1351-1361 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/agentfinalizer/decision.go:200\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060db *DB) GetAsset(id\u0060 in one and \u0060contextProfile\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentfinalizer/decision.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"a123cf5b01872a62fa7c41f991a19514dd264439278a069896eb47388ba41398"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10\u201311 lines \u00D7 3): internal/database/monitor.go:128-138 | internal/database/monitor.go:176-186 | internal/database/monitor.go:267-276 \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":"internal/database/monitor.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f358510717196ceb8cbb575a96d76d6af5d77bae0168ffc32bfe75c17133e68"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): internal/handler/agent.go:2278-2288 | internal/handler/agent.go:2310-2320 | internal/handler/agent.go:2377-2387 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":2278}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0123291d6adb49aeef73085b8fc8811e7730d65f28d25d6c87e72370ee45cce"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3): internal/handler/c2.go:362-372 | internal/handler/c2.go:553-563 | internal/handler/c2.go:941-951 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7aa7e668311d0dff14f27fd363c8e04bf3d34d7e6018fe7966a7d19ebefc16"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/app/app.go:228-238 | internal/app/app.go:2140-2150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/app.go:228\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f07579319a4e779e8a9033c73b5b1639e48381c6858e34aedef0344fc358dfb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/app/project_fact_tools.go:336-346 | internal/app/project_fact_tools.go:371-381 \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":"internal/app/project_fact_tools.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"010dd1b2e4527308bf950b16fa209695ae9cf96ddccbf3d918dffbd29c7f9d29"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/config/config.go:2147-2157 | internal/config/config.go:2209-2219 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/config/config.go:2147\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":2147}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdc5ca4f22cf4b4aead22227c1b829255fec472e95a0518923595c6b92b8bcdc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/database/vulnerability.go:652-662 | internal/database/vulnerability.go:672-682 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability.go"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"159407347beb81a313e3625bdc2b1db846c510d18f6536d021309c771db882b5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8\u201311 lines \u00D7 2): internal/handler/attackchain.go:110-120 | internal/handler/attackchain.go:165-172 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/attackchain.go:110\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/attackchain.go:162\u0060 calls \u0060getOpenAIConfig\u0060, \u0060NewBuilder\u0060 and \u0060internal/handler/attackchain.go:107\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/attackchain.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b34085670aee2f1329eb98d8ab228039eb2eb615b844c95f38e00e02aa822b0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/handler/chat_uploads.go:523-533 | internal/handler/chat_uploads.go:595-605 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/chat_uploads.go:523\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1b33b592a3bcdd48650d0d4630f7222e6b5c74bccae11f1b15742988e84510"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/handler/config.go:1374-1384 | internal/handler/config.go:1415-1425 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":1374}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ce94911252b612f00e98b70db6c946e9fa58932d10b720dae55583a36e0ff0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/handler/config.go:2458-2468 | internal/handler/hitl.go:321-331 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":2458}}}],"partialFingerprints":{"codehealthFindingId/v1":"03e99050e61a0579b8968c2750584ac0c5624896f492583dcd3b28d33c91474a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/handler/hitl.go:342-352 | internal/multiagent/tool_metadata.go:39-49 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":342}}}],"partialFingerprints":{"codehealthFindingId/v1":"61f898a2e8d1d34fc3a485d46f7283c47c111e57ab49f5d08fc25c19a463929f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/handler/workflow_run.go:27-37 | internal/handler/workflow_run.go:113-123 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/workflow_run.go:27\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_run.go"},"region":{"startLine":27}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c78b2f778df8c9e91b517f946782d2345d367bf01054733dd5bb8c987475a11"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/openai/openai.go:265-275 | internal/openai/openai.go:431-441 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/openai.go"},"region":{"startLine":265}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ae7d541b58e1e2ff25015f8ffd9d69f88ef1ac2cb2c6a488f09739e98e4ea0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 5): internal/agentfinalizer/decision.go:201-210 | internal/agentfinalizer/decision.go:221-230 | internal/agentfinalizer/decision.go:247-256 | internal/database/asset.go:925-934 | internal/handler/config.go:1352-1361 \u2014 there are 5 copies across 3 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/agentfinalizer/decision.go:201\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060db *DB) GetAsset(id\u0060 in one and \u0060contextProfile\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentfinalizer/decision.go"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd53b0741677fed1418f09506418578fe1ffa17392e5f9d57190b9be88c7961"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 4): internal/handler/config.go:1371-1379 | internal/handler/config.go:1411-1420 | internal/handler/config.go:1541-1549 | internal/handler/config.go:1604-1613 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/config.go:1371\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":1371}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd321af95c867017ad95f9592cf0616d9de3c0d8427a24aa9f540829e70c462"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 3): internal/database/batch_task.go:130-139 | internal/database/batch_task.go:160-168 | internal/database/batch_task.go:232-240 \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":"internal/database/batch_task.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcfe9fe8121f9551ad361c9f0e38aa54e1d6a5e196423404548d4cd3a4532094"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/handler/batch_task_mcp.go:126-135 | internal/handler/batch_task_mcp.go:318-327 | internal/handler/batch_task_mcp.go:487-496 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/batch_task_mcp.go:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_mcp.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c4e5ba0a584dd98e31866a2fe11c100e755553ba18e1452ee65f673372e85c3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/handler/chat_uploads.go:461-470 | internal/handler/chat_uploads.go:537-546 | internal/handler/chat_uploads.go:609-618 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/handler/chat_uploads.go:472\u0060 calls \u0060Join\u0060 and \u0060internal/handler/chat_uploads.go:619\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":461}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e522cff90ae0bf50d07eb00ad31cc38b2e33c8d5883aabb79030f527c531917"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/handler/chat_uploads.go:1044-1053 | internal/handler/chat_uploads.go:1330-1339 | internal/handler/chat_uploads.go:1417-1426 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/chat_uploads.go:1415\u0060 calls \u0060TrimSpace\u0060, \u0060PostForm\u0060 and \u0060internal/handler/chat_uploads.go:1043\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1044}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d37894c126d11781d8bcdb2a50ab757b8a8c2da3be25f73db57737864d65c7e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/handler/multi_agent.go:362-371 | internal/handler/single_agent.go:348-357 | internal/handler/workflow_integration.go:146-155 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:362\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"80279ed7c127cb1bf936c21a1ca114580e56f6e04dbb4b88776cd4df9bc88f23"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/c2/listener_tcp.go:255-264 | internal/c2/listener_websocket.go:250-259 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/c2/listener_tcp.go:255\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_tcp.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e2fb49ce8b746c0201315c2f289505a66f46bafae1f0985b994145e613502b6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/database/conversation.go:493-502 | internal/database/conversation.go:520-529 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/conversation.go:493\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/database/conversation.go:519\u0060 calls \u0060appendConversationAccessFilter\u0060 and \u0060internal/database/conversation.go:492\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"520c6060b3ddc3ad225f364e6a64833aeb8820fa424b923997625dd179d71741"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/database/conversation.go:1391-1400 | internal/database/conversation.go:1788-1797 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/conversation.go:1391\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"463c764b48d513ebe319306e0129868c5be5c07f99d0b544da6e726df3307d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/database/rbac.go:314-323 | internal/database/rbac.go:1007-1016 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/rbac.go:314\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"62a669a32e7d9f474869e63f3ef3fb7f18b502cef7a4e933ad0ea3d6301563dd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/agent_multi_json_runner.go:30-39 | internal/handler/multi_agent.go:209-219 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/agent_multi_json_runner.go:30\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent_multi_json_runner.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"275801daf79ab4b355805304e6c09e8c7a6c7b46c4d017e133c34c039124949c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/c2.go:138-147 | internal/handler/c2.go:155-164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"a622e3431551a0501e060d9f0adf0e03044a62ec0faf778bdbb307eaf0bbe18d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/c2.go:1017-1026 | internal/handler/c2.go:1054-1063 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/handler/c2.go:1027\u0060 calls \u0060JSON\u0060, \u0060CreateProfile\u0060 and \u0060internal/handler/c2.go:1065\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":1017}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb8ec5d47244bf7f8f4506a0779b469d90c526fed39fed5dcb55b946e81f33d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/c2.go:1032-1041 | internal/handler/c2.go:1065-1074 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/c2.go:1027\u0060 calls \u0060JSON\u0060, \u0060CreateProfile\u0060 and \u0060internal/handler/c2.go:1063\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"82d160bfc453f271c98d600e3d18ceaea7431c2d9471db16af762e5b1c0b99ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/knowledge.go:242-251 | internal/handler/knowledge.go:275-284 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/knowledge.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"48f41121f228232bd67b5100f959acc84c90899da43476601821b3f714a29bcc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/markdown_agents.go:212-221 | internal/handler/markdown_agents.go:304-313 \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":"internal/handler/markdown_agents.go"},"region":{"startLine":212}}}],"partialFingerprints":{"codehealthFindingId/v1":"c923f7282fbd65e6563b76bb412eac7e49852a8a829eaeaba619a6fddb44892f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/multi_agent.go:29-38 | internal/handler/single_agent.go:30-39 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:29\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ac15130af223cd054cc6015347b036999b503ad448d7879a5684b551d25801"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/role.go:68-77 | internal/handler/role.go:257-266 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ac34d8c9864b7df6fb2d3c25b1bc9ea9db7d50db49ca76b4362590f02ee9596"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/task_manager.go:248-257 | internal/handler/task_manager.go:274-283 \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":"internal/handler/task_manager.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"bafce8ad9e74d38258e3d9f1c7198e4a2dca901f79f84fe8eae91e5b642aea0d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): internal/handler/task_manager.go:745-754 | internal/handler/task_manager.go:799-807 \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":"internal/handler/task_manager.go"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08562ce4bcfd67518e81dd7b8729067f144a27eab507b5c051ea9ab3ced67e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/webshell.go:777-786 | internal/handler/webshell.go:911-920 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/webshell.go:777\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":777}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b94422b19c149e376e9db59540dbe00a33f2b1f16640f4e1b15915334c99c49"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): internal/mcp/external_manager.go:1482-1491 | internal/mcp/external_manager.go:1520-1528 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/mcp/external_manager.go:1482\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":1482}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb952275b2a90a476df8e9dd709e9da081bcd2353307cde21344114885b49b34"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/mcp/server.go:1433-1442 | internal/mcp/server.go:1542-1551 \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":"internal/mcp/server.go"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e88024a01970346e8cf059b4adddd57bc3c7b536c4c8d06a18cd1af5c86abb3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9\u201310 lines \u00D7 2): internal/security/executor.go:1185-1194 | internal/security/executor.go:1340-1348 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/security/executor.go:1185\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":1185}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ab4681531a369b369ff073ba14258fd1c04b5d82140ed69e693a6eff31e569b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/workflow/resume.go:105-114 | internal/workflow/runner.go:203-212 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/resume.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5c228849ffd51d72fb9b1cd0f594db67f9fbb6dc8b69e2a27274735f34f444"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 6): internal/handler/webshell.go:471-479 | internal/handler/webshell.go:546-554 | internal/handler/webshell.go:571-579 | internal/handler/webshell.go:603-611 | internal/handler/webshell.go:650-658 | internal/handler/webshell.go:674-682 \u2014 all 6 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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b5562af127f87956edb373aadda5ec3c284b44bd242f756838bcfb69aa5187"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 5): internal/handler/chat_uploads.go:988-996 | internal/handler/chat_uploads.go:1010-1018 | internal/handler/chat_uploads.go:1028-1036 | internal/handler/chat_uploads.go:1049-1057 | internal/handler/chat_uploads.go:1335-1343 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":988}}}],"partialFingerprints":{"codehealthFindingId/v1":"f20143466cc6ae35f829910bf52ae8c6d576053633164ff02e93c27bcddf599c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/handler/batch_queue_executor.go:190-198 | internal/handler/multi_agent.go:71-79 | internal/handler/single_agent.go:54-62 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_queue_executor.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"31a7c04aa762433fd6bc607a1a3748b3fa89a184bc12af3ea7e2f322b223cf47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/handler/c2.go:584-592 | internal/handler/c2.go:688-696 | internal/handler/c2.go:1191-1199 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bf1dd61b325a1d69bf0ec8a615ade46e70ff83f29580230db62857964e4ab87"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/handler/chat_uploads.go:678-686 | internal/handler/chat_uploads.go:699-707 | internal/handler/chat_uploads.go:720-728 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/chat_uploads.go:678\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"87844ef0d59cf20bfb0593da1d1d03a5c92279e274462dd73c73069b15178f85"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/app/asset_tools.go:383-391 | internal/handler/asset.go:240-248 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/asset_tools.go"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62e478e591e0c0b40aafe74eb3564adb78eeb88eadc2ef0773b25eb2dee9d42"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/attackchain/builder.go:344-352 | internal/attackchain/builder.go:357-365 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/attackchain/builder.go:344\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/builder.go"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6789f2168791b7deb15494f900c87fd3668f0dc2efd71641ec582311e5dc6fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/database/audit.go:105-113 | internal/database/c2.go:1488-1496 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/audit.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b488a1e765a22ee160ad0da2fd041a4fcf4ce264cf769d0bcfd97bc1c8e3366"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/database/rbac.go:281-290 | internal/database/rbac.go:985-994 \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":"internal/database/rbac.go"},"region":{"startLine":281}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee5ba649fc0757155ee38dce54f93c45beeab2b41b0359368c58a6134437a93"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/agent.go:492-500 | internal/handler/agent.go:610-618 \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":"internal/handler/agent.go"},"region":{"startLine":492}}}],"partialFingerprints":{"codehealthFindingId/v1":"36e4fca2d8ad40160ef2fb96aded7ad87f84b17238c29251c308e6f2225f1803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/c2.go:325-333 | internal/handler/c2.go:446-454 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c8337f36a0b4f76c226b8c42805fbab9658f4880a6022aec69aace7c007aa15"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/chat_uploads.go:110-118 | internal/handler/chat_uploads.go:128-136 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc65bc8ab832da74b33e485d4c8cbf7415e6f80b9c8d7c868a3c3a62e3158571"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/config.go:2275-2283 | internal/handler/config.go:2342-2350 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/config.go:2275\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":2275}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4a5a96826a8dc4668d6e418b5d4dbd68be6c0789289c2bfeed08e7e8c61fcbc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/markdown_agents.go:228-236 | internal/handler/markdown_agents.go:320-328 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/markdown_agents.go:228\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: \u0060internal/handler/markdown_agents.go:228\u0060 is reached only past a guard at line 159 that tests \u0060h.dir\u0060 and leaves the function early, and \u0060internal/handler/markdown_agents.go:320\u0060 reads \u0060h.dir\u0060 with no such check. What separates these copies is not which lines they run but which PRECONDITION they enforce, so one of them is operating on state the other one refuses. Decide which is intended BEFORE unifying them \u2014 extract the shared part and whichever copy is missing the check keeps running unchecked, and if the guard is the correct behaviour then that hole is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/markdown_agents.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"662b7905381a04a9c626eae853706eeabc12317bdfcce72795f9394b5b5d69a1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/monitor.go:592-600 | internal/handler/monitor.go:866-874 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/monitor.go"},"region":{"startLine":592}}}],"partialFingerprints":{"codehealthFindingId/v1":"062e718393ea9702fa3231bd9c2212d251f0567057d6e8d059871100faefb325"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/rbac.go:124-132 | internal/handler/rbac.go:157-165 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/rbac.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f678a3b88135f8ae502a192592d4db4fdebbac145f60a3551110a05fb530c47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/workflow.go:102-110 | internal/handler/workflow.go:235-243 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"deca9ce544e10a3c67715fddc3df468186ec70ff77bf69bfbea351ebba985e07"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/mcp/external_manager.go:699-707 | internal/mcp/server.go:924-932 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"371cc73ec1685a16ee53f42cc7fe204132370e61dac068052851b96988ae2b80"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/update/adopt.go:138-146 | internal/update/apply.go:187-195 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/adopt.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"9564110f6a25626fa7ce19a44867fea0bf829decf9aae38122e04e3d40d335d5"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 6): internal/database/conversation.go:1028-1035 | internal/database/conversation.go:1086-1093 | internal/database/conversation.go:1390-1397 | internal/database/conversation.go:1417-1424 | internal/database/conversation.go:1787-1794 | internal/database/conversation.go:1853-1860 \u2014 all 6 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":"internal/database/conversation.go"},"region":{"startLine":1028}}}],"partialFingerprints":{"codehealthFindingId/v1":"866bcc626d2f6ee4a2a30f514d96ed00194f66963dab4004336da5c9fc627b9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): internal/handler/c2.go:242-249 | internal/handler/c2.go:279-286 | internal/handler/c2.go:636-643 | internal/handler/c2.go:659-666 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/c2.go:242\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34c0e5493d1a0307ccb30aeff7afd495fd1bdaac12252a25bdd217211fd7aa1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): internal/database/project_fact_edges.go:177-184 | internal/database/project_fact_edges.go:225-232 | internal/database/project_fact_edges.go:278-285 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/project_fact_edges.go:177\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project_fact_edges.go"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b6dcabdbb2f0a9294c04c8b6fef7ea9db776f88da9370fe43808c2ebe1fc309"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): internal/handler/asset.go:346-353 | internal/handler/asset.go:375-382 | internal/handler/asset.go:397-404 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/asset.go"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb714d4893e855c31a284764ba1558f11b7d1fedf1f4971277b390a987a37ffd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): internal/handler/chat_uploads.go:523-530 | internal/handler/chat_uploads.go:595-602 | internal/handler/chat_uploads.go:660-667 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/chat_uploads.go:523\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd9bbc2be7a487f2f9687d9abc0a57e5a8ba64cb123c6e5fca73a82af0e10543"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): internal/handler/external_mcp.go:197-204 | internal/handler/external_mcp.go:273-280 | internal/handler/external_mcp.go:328-335 \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. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/external_mcp.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd49ab25abda8b185558ee30a10b781b973923d398f9e95ff438751300f4fecf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/config/config.go:1808-1815 | internal/config/config.go:1849-1856 \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":"internal/config/config.go"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"dabc08514074f5410a3b276fb23061463375fb6abeb1a3cc6ed22e09cd6210e4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (3\u20138 lines \u00D7 3): internal/database/c2.go:521-523 | internal/database/c2.go:610-617 | internal/database/c2.go:702-709 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2.go:521\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dfda04188a3f58ecc053fe583b96c052dd1cc3e9e2c215340203ca62b19ce21"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/database/conversation.go:1378-1385 | internal/database/conversation.go:1776-1783 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/conversation.go:1378\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c46f5075d6d3d4ac35ff225e4a1afd3188d05406c4fada6eee2c46a1e555795"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/handler/agent.go:1490-1497 | internal/handler/agent.go:1512-1519 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/agent.go:1490\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":1490}}}],"partialFingerprints":{"codehealthFindingId/v1":"0256327aeeb87524e3c29c0b082179530c193fe9f251b00cc62ebfa7c52f046f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/handler/chat_uploads.go:1282-1289 | internal/handler/chat_uploads.go:1363-1370 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1282}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dcab2471275948f2c34d521a3f7a493d80d170f0fa1cef40071975b27962006"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/handler/config.go:933-943 | internal/handler/config.go:1974-1984 \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":"internal/handler/config.go"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"f9b6bd68ba35b1b5cf569f2b0dc77c1f03394463c752e458833bbed95c6701f8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/handler/config.go:1037-1044 | internal/handler/config.go:2003-2010 \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":"internal/handler/config.go"},"region":{"startLine":1037}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b2f441b6a8e2f46ce0dbd852743848c58c4d893ec0b7385a4f8513c94aef91"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/handler/hitl.go:838-845 | internal/handler/hitl_logs.go:185-192 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/hitl.go:838\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":838}}}],"partialFingerprints":{"codehealthFindingId/v1":"75383e14003703e3f74033927f0675e1e1f7edf6eae0dbae076c7b688721ea3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/handler/knowledge.go:256-269 | internal/handler/knowledge.go:289-302 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/knowledge.go:256\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/knowledge.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"9184e9ac0da7977b72522b26d60fcddbdbe1b11b3abe01311d5218aa37621524"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/handler/markdown_agents.go:330-337 | internal/handler/markdown_agents.go:352-359 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/markdown_agents.go:330\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/markdown_agents.go"},"region":{"startLine":330}}}],"partialFingerprints":{"codehealthFindingId/v1":"6387a500d6f47a4affaa04eb5078abe9f631b5c1c4e1656b7ebf50cb7d8a5423"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/handler/multi_agent.go:40-47 | internal/handler/single_agent.go:27-34 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:40\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"046c2857cc4b1eb6875db0c05e9c994761319f83f138d12f78b7e41db93ba401"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/handler/task_manager.go:77-84 | internal/handler/task_manager.go:91-98 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/task_manager.go:77\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/task_manager.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"87fe56a5905d3c151068052801314c1787bac7cb570d21104d059f0069d66d84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7\u20138 lines \u00D7 2): internal/handler/terminal.go:149-155 | internal/handler/terminal.go:166-173 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/terminal.go:149\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2269135b4ff45d152ac16ed57de31806d9aec284196f120b1284e9d191e6227"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/knowledge/manager.go:401-408 | internal/knowledge/manager.go:488-495 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/knowledge/manager.go:401\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060m *Manager) SearchItemsByKeyword(keyword\u0060 in one and \u0060m *Manager) GetItemsSummary(category\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/manager.go"},"region":{"startLine":401}}}],"partialFingerprints":{"codehealthFindingId/v1":"c61580cbe332266825761ef66f34dd706bb4cbafbe7ea3e2239c525a900ef689"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/knowledge/manager.go:660-667 | internal/knowledge/manager.go:715-722 \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":"internal/knowledge/manager.go"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8e983d0bd15ba4e332c1ba923efeff17fc5c70a7b0dbf830ba0817592b25772"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 4): internal/database/asset.go:1000-1006 | internal/database/asset.go:1083-1089 | internal/database/asset.go:1145-1151 | internal/database/asset.go:1194-1200 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":1000}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ed9824a7a93a0b55eb3daf56186316a01b3c31a588ec66a287a309407c2d47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/database/conversation.go:136-142 | internal/database/conversation.go:210-216 | internal/database/robot_session.go:37-43 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ac6679fa61539e557bc793d13a4c57f282db313b5084b445955ce04e1f4aae0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/openai/openai.go:116-122 | internal/openai/openai.go:209-215 | internal/openai/openai.go:360-366 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/openai/openai.go:116\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/openai.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b4833f22a60ee88cded3f75a788d509fa2d16c739934f7b2c54b56d300e791b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/app/mcp_authorization.go:33-39 | internal/app/mcp_authorization.go:298-304 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/mcp_authorization.go:33\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/mcp_authorization.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"4264ab810c082df0287741fdbeac708994970bfb749b3ad4bf85e86bdedf54b3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/database/conversation.go:516-522 | internal/database/conversation.go:608-614 \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":"internal/database/conversation.go"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"6fc24170c3aacad7206a542f034d29498843030ee406a48dd584fe8f72dd175a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/handler/c2.go:376-382 | internal/handler/c2.go:567-573 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/c2.go:376\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"705832873f46e3e689b185bb9919e722d88e2eaa47ac7145dc4c938f24199ebd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/handler/hitl.go:818-824 | internal/handler/hitl_logs.go:164-170 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"091c96d8a4decdac7bfd03e3e245f8d27dbe6531840fe5937094314e728cdd3f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/openai/openai.go:218-225 | internal/openai/openai.go:369-375 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/openai/openai.go:218\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/openai.go"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"146873316a0b62995286d8e090c7ab4a00572a04a25d80e6f2f9c5f43d8f41d1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/security/executor.go:204-210 | internal/security/executor.go:216-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/security/executor.go:204\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"973f4e49817bfd64c900f9b98aa506863dda9962bf4b3affe2691264a39b7bb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/security/executor.go:857-863 | internal/security/executor.go:868-874 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/security/executor.go:857\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":857}}}],"partialFingerprints":{"codehealthFindingId/v1":"ead353270f60813cf3cf7eb0a6f4441b25b1cd8d26c921f719b6b402c0dde07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 8): internal/handler/batch_task_mcp.go:126-131 | internal/handler/batch_task_mcp.go:287-292 | internal/handler/batch_task_mcp.go:318-323 | internal/handler/batch_task_mcp.go:359-364 | internal/handler/batch_task_mcp.go:386-391 | internal/handler/batch_task_mcp.go:439-444 | internal/handler/batch_task_mcp.go:487-492 | internal/handler/batch_task_mcp.go:541-546 \u2014 all 8 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/batch_task_mcp.go:126\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_mcp.go"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"8969a053d2e12e469533bfdace13230070f3a6191845dec2921e3b82c103760b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 5): internal/app/project_fact_tools.go:116-121 | internal/app/project_fact_tools.go:185-196 | internal/app/project_fact_tools.go:289-303 | internal/app/project_fact_tools.go:327-337 | internal/app/project_fact_tools.go:357-372 \u2014 all 5 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/project_fact_tools.go:116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/project_fact_tools.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"612350b6537b05afe9517848d16d28a858abfc94b77abcefd7644a64b4eac871"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): internal/database/c2.go:809-814 | internal/database/c2.go:1394-1399 | internal/database/c2.go:1816-1821 \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":"internal/database/c2.go"},"region":{"startLine":809}}}],"partialFingerprints":{"codehealthFindingId/v1":"cad7dac5d2e925a688d4360d70174b443e50ebfd6f3a2168a2ef7d914daf0544"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): internal/handler/config.go:1038-1043 | internal/handler/config.go:1865-1870 | internal/handler/config.go:2004-2009 \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. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/handler/config.go:2014\u0060 calls \u0060RestartRobotConnections\u0060 and \u0060internal/handler/config.go:1871\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"819918265ecedc9690f23d90e0d664eda23b830b8f2483be007a4812d6b8e4a9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3): internal/handler/webshell.go:920-928 | internal/handler/webshell.go:1007-1015 | internal/handler/webshell.go:1076-1084 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/webshell.go:920\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8007c1c15d03cfd6b6b2cfa0ed5fab1a2df34f077fdc7d8175d4f635cf4f803"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/app/app.go:256-261 | internal/app/app.go:2168-2173 \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":"internal/app/app.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6ec7702d110aab46830e456ac4efa8ef0af2105426e9eb60267d3f5cf8824c2"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/handler/agent.go:606-611 | internal/handler/chat_uploads.go:1462-1467 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"b89ccf45a1fd55157aed280fbf7d298e89d3c1bdd8c8ecaa9695617cea80a3fb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/handler/agent.go:960-965 | internal/handler/batch_queue_executor.go:195-200 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/agent.go:960\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"a713d512c30e8ad72de2ce450285e41d51daf2b7f5568a11934704dd7568ba0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/handler/hitl.go:826-832 | internal/handler/hitl_logs.go:173-179 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"dbf035f2ac4feeb5b6485792594f1984853a1fbbd5532031b22815d98d209303"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/handler/rbac.go:81-86 | internal/handler/rbac.go:230-235 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/rbac.go:81\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/rbac.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"85cc331a57230bbfe114a515a52aeff22db07163d5b972511d8d2d8a7e5b9e84"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/handler/role.go:299-305 | internal/handler/role.go:308-314 \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":"internal/handler/role.go"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ec3eb550fbe6963272e1a997476da8c59cb8bf6fd316d7ec5d0c2590366ec73"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/security/executor.go:197-204 | internal/security/executor.go:850-857 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/security/executor.go:197\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"875056a3a7f73500a8535ca0a7070902801ad44c654f3f2cc0d303d3f370d370"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/workflow/draft_generator.go:152-157 | internal/workflow/draft_generator.go:210-215 \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":"internal/workflow/draft_generator.go"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3fcdd6379736ad99e1efa4a49d0af374a2b550448c6edfd15b9f524f7f0734"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 6): internal/app/project_fact_tools.go:116-121 | internal/app/project_fact_tools.go:192-196 | internal/app/project_fact_tools.go:256-260 | internal/app/project_fact_tools.go:299-303 | internal/app/project_fact_tools.go:333-337 | internal/app/project_fact_tools.go:368-372 \u2014 all 6 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/project_fact_tools.go:116\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/project_fact_tools.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"770d711c1c50faabbe209c1914a313d0ae044255ed44541172e820c0047b7ddc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5): internal/handler/external_mcp.go:200-204 | internal/handler/external_mcp.go:276-280 | internal/handler/external_mcp.go:331-335 | internal/handler/role.go:191-195 | internal/handler/role.go:239-243 \u2014 there are 5 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 5 sites; resolving a subset leaves the remainder to drift apart. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/external_mcp.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"498d878ee6844cc1bb81af40c8cfae49e895fa26dc67f3a8c0800dcbe660fc02"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): internal/database/conversation.go:1381-1385 | internal/database/conversation.go:1779-1783 | internal/database/conversation.go:1844-1848 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/conversation.go:1381\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"bac8ef80fd6ebbd29bd5e98084b151ed88d97dc47cbba88528ad16615ebbd91a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/app/app.go:1630-1634 | internal/app/app.go:1664-1668 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/app.go:1630\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":1630}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4012a22a93bc1b9fdbcc3690c171927e7cb00dee661ba79580d89539463728f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/app/project_fact_tools.go:246-258 | internal/app/vulnerability_tools.go:374-378 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/project_fact_tools.go:246\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/project_fact_tools.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"b72451828ce880fac9f3484eee4c9b99aebac86e3b60b010c7815f9329b5ad95"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/database/project.go:641-649 | internal/database/project.go:662-670 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/project.go:641\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/database/project.go:651\u0060 calls \u0060Errorf\u0060 and \u0060internal/database/project.go:671\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project.go"},"region":{"startLine":641}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0a09845bc8463389d515a3edbb51314d893ae751668f8a7d8c67b19f67dab1d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/database/rbac.go:732-736 | internal/database/rbac.go:837-841 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/rbac.go:732\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060db *DB) lookupRBACResourceOptionsByIDs(resourceType\u0060 in one and \u0060resourceType\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/database/rbac.go:842\u0060 calls \u0060New\u0060 and \u0060internal/database/rbac.go:737\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"d14eba42c57c588ef88b46255bab3f9c27298b8c7ff8cab454b934d4c3881f01"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/handler/chat_uploads.go:1258-1262 | internal/handler/markdown_agents.go:181-185 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/chat_uploads.go:1258\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1258}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e5d84626219e87e68a64d52d34dbbec0427cccedcc6887e767309f653276696"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/handler/project.go:628-634 | internal/handler/project.go:649-655 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/project.go:628\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":628}}}],"partialFingerprints":{"codehealthFindingId/v1":"15f9ea9dd8cef0d938a1ca74f1e25293dec551157b6ba5f3ae6056f3f52eb6d0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): internal/app/project_fact_tools.go:32-37 | internal/handler/batch_task_mcp.go:768-773 | internal/vision/tool.go:96-101 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere all 3 call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made 3 times."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/project_fact_tools.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62fb7e394b04647c7093de474ea5bc220510dd19954b248e689f24cc00382d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/app/vulnerability_tools.go:179-185 | internal/project/scope_block.go:69-75 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/vulnerability_tools.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"18f00e58aae37accd2493f1b15e66dc8c2543d6106f950d72d21ed79e3e568df"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/agent.go:632-640 | internal/handler/chat_uploads.go:1391-1399 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"8345c912683a715be48bf7abc5ba0e83e87950453edb36b6fb1ca2d9bd2c8668"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3): internal/handler/c2.go:1219-1225 | internal/handler/notification.go:135-141 | internal/handler/vulnerability.go:546-552 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"60be294d65441e82c9f30dff97fcc5885927beef8d574e6cebb1359026fac3ed"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/mcp/external_manager.go:111-116 | internal/mcp/server.go:87-92 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"36971b60d8fd978c79dd6369590ff8ecd8b2c9e00fe61bd0b9e35237cb871cb4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/mcp/external_manager.go:154-164 | internal/mcp/server.go:141-151 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060int\u0060 to \u0060m *ExternalMCPManager) ConfigureToolResultMaxBytes(maxBytes\u0060 in one and \u0060s *Server) ConfigureToolResultMaxBytes(maxBytes\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"933aa1ad6849b2529514e1b505c544ff3ceabbc617c3f3367b7065b96c028e8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/mcp/external_manager.go:168-178 | internal/mcp/server.go:155-165 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060string\u0060 to \u0060m *ExternalMCPManager) ConfigureToolResultSpillRoot(rootDir\u0060 in one and \u0060s *Server) ConfigureToolResultSpillRoot(rootDir\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aeaa5caf5c216dc7f9f3051a62ffc6f46677069aec13496027b13d8ed63b027"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/mcp/external_manager.go:183-194 | internal/mcp/server.go:183-194 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note first that the copies are not typed on the same thing: the declarations holding them bind \u0060int\u0060 to \u0060m *ExternalMCPManager) ConfigureToolWaitTimeoutSeconds(seconds\u0060 in one and \u0060s *Server) ConfigureToolWaitTimeoutSeconds(seconds\u0060 in another, and the duplicated lines use it. The extracted unit therefore needs a parameter type that fits BOTH \u2014 their common supertype where they have one, or a new abstraction over them where they do not \u2014 and settling that is the step that comes BEFORE the extraction above. Where the two types are deliberately unrelated, the duplication is the price of that separation and the honest resolution is to record the decision rather than to extract."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/external_manager.go"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f1b7c70fdaa1b9b709f7c2cb7d2b601414543d665484112abe060045215c4a4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/agentfinalizer/decision.go:190-197 | internal/multiagent/empty_response.go:20-27 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentfinalizer/decision.go"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"6706dbaf31e51cfc0506c01ac5ec89177b5eb92777215d4d7ef851e034e05bb1"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): internal/mcp/run_context.go:63-72 | internal/mcp/run_context.go:84-93 | internal/mcp/run_context.go:105-114 | internal/openai/request_headers.go:25-34 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/run_context.go"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6771ba66b8f88842e242364b52fcf35dafc2b532a26340013eadddef40d50ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/handler/batch_task_mcp.go:600-621 | internal/handler/batch_task_mcp.go:638-655 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/batch_task_mcp.go:600\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_mcp.go"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"5974f3657387d42eec1f9cc967f5515aede647a63f95919ed856dea520f4a2f7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 4): internal/app/c2_tools.go:68-89 | internal/app/c2_tools.go:247-268 | internal/app/c2_tools.go:543-561 | internal/app/c2_tools.go:698-718 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/c2_tools.go:68\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_tools.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa932c30cec1b8076f25e9300a79a1b92ce5bbe277e4928ef3ee3a673148b4cd"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2): cmd/test-sse-mcp-server/main.go:34-55 | internal/mcp/types.go:131-152 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/test-sse-mcp-server/main.go:34\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Check import visibility before settling on that home: \u0060internal/mcp/types.go\u0060 sits under a restricted \u0060internal\u0060 directory, which only code inside its own subtree is permitted to import from \u2014 so it is reachable from some of these sites and not from others, and being able to see the copies is not the same as being allowed to share them. The home has to be somewhere every one of these sites is permitted to import from; if there is no such place, that restriction may be exactly why the copies are separate."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/test-sse-mcp-server/main.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0364433e9332f5ce6f157c07b3d32ed0e001de88a0c8675746b7b3c153837340"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 3): internal/database/audit.go:175-194 | internal/database/c2.go:1690-1708 | internal/database/c2.go:1730-1748 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/audit.go:175\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The \u0060return\u0060 at the foot of the matched lines is the enclosing body\u0027s own terminal exit, not an early one: it moves with them unchanged, and each site calls the extracted unit from the position that \u0060return\u0060 occupied \u2014 no decision has to be handed back and re-acted on."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/audit.go"},"region":{"startLine":175}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf820660a5a3b49c2b31504e348a769af503445065133dc4cc0027553dede0b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2): internal/database/monitor.go:906-924 | internal/database/skill_stats.go:23-41 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/monitor.go:906\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":906}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2dbb1e253b7ebfd3491f2981af6e0bbc18d93c1cd3c73338cb89fff31e7adb"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): internal/app/app.go:1824-1828 | internal/app/app.go:1939-1943 | internal/app/app.go:2014-2027 | internal/app/app.go:2056-2073 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/app.go:1824\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":1824}}}],"partialFingerprints":{"codehealthFindingId/v1":"427c62116201150080f6e6e4dc8af8a763a6abe41ac3242c60c80f66fbf54a9a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2): internal/database/monitor.go:978-995 | internal/database/skill_stats.go:91-108 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/monitor.go:978\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"865b5b6d4f455c9fa2e0fa9c02a41b69b96e396fedd1d79cc130f3c63c1cd126"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/app/c2_tools.go:452-468 | internal/app/c2_tools.go:847-860 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/c2_tools.go:452\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_tools.go"},"region":{"startLine":452}}}],"partialFingerprints":{"codehealthFindingId/v1":"76210c6059ae06a8a394638591ddadb02b7838cf93254f7554a1b871f0e39a47"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/knowledge/tool.go:40-53 | internal/knowledge/tool.go:137-150 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/knowledge/tool.go:40\u0060 it runs out through the closing brace of the declaration holding it and carries on into the declaration that follows \u2014 the window is the tail of one member plus the head of the next, so no call can be substituted for those exact lines, and the smallest declaration that contains all of them is the type they sit in. The repeated unit is the member each site sits in: where those members\u0027 bodies are the same, move one whole member to the shared location and have the others delegate to it; where the copies are a run of near-identical overloads or wrappers that differ only in their signatures, the repetition IS the run \u2014 a one-line delegation has no helper inside it to lift \u2014 so generate the run from the set it enumerates, or accept it and keep each member\u0027s own documentation with it. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/tool.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"2423dbab6345f89eebd22c0530af986979b5c5ed453868c769988d877af0bb8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4): internal/database/c2.go:344-353 | internal/database/c2.go:728-740 | internal/database/c2.go:1032-1045 | internal/database/c2.go:1592-1605 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2.go:344\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"463bff2bd9395378ea9b3c9efbdd4db0204efb1e5f26d51ec4786a3782d5b9f9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2): internal/handler/multi_agent.go:149-161 | internal/handler/single_agent.go:131-144 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/multi_agent.go:147\u0060 calls \u0060TrimSpace\u0060 and \u0060internal/handler/single_agent.go:129\u0060 does not \u2014 after which the two agree again for 4 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"c07e20ab7244b8d0ecca8353c7f71f5585c341b04c5d59d4b0164dd2b78de0b4"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2): internal/handler/fofa.go:832-845 | internal/handler/fofa.go:850-863 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/fofa.go:832\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2921c354fcf09e4ed5fdf7bc966b75518029380bd36634574eaac7bfa5ce159"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2): internal/knowledge/tool.go:68-79 | internal/knowledge/tool.go:263-274 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/knowledge/tool.go:68\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/tool.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f5e6530292caaf910727ed6ad0b75a837900840027dc7b4c5129c03788ef60a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 4): internal/database/c2.go:353-361 | internal/database/c2.go:740-748 | internal/database/c2.go:1045-1055 | internal/database/c2.go:1621-1632 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2.go:353\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2d30b90cc73dc2f5193df6246269f48a6ca5ba978471ea039f2f010b82b7af"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/database/c2.go:567-576 | internal/database/c2.go:674-683 | internal/database/c2.go:1009-1019 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2.go:567\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":567}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cd889acb393e6a41f4f9d9eb514e9f90e143b6a3bd0cd170baf0606092681e8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/handler/hitl.go:703-713 | internal/handler/hitl.go:775-785 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/hitl.go:703\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19b0f0c6444e09f4e91f08869dd9445069d558e59f569b687d73320515a53f6"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/database/project_fact_edges.go:166-176 | internal/database/project_fact_edges.go:210-220 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/project_fact_edges.go:166\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project_fact_edges.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"e928d78e833ff4d7dadbee23ec3075f6e2f624d6e11d84b425a37ca19070d07c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2): internal/handler/config.go:1432-1442 | internal/handler/config.go:1707-1717 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/config.go:1432\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/config.go"},"region":{"startLine":1432}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bfd9e88befa3baf6b2664306444a7af8f9f410c46077160369d79bffefdfb24"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/attackchain/builder.go:343-352 | internal/attackchain/builder.go:356-365 | internal/attackchain/builder.go:369-379 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/attackchain/builder.go:343\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/builder.go"},"region":{"startLine":343}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af67d03fc408aee1e8c2938604568b61c0b4f41753083327701b2dd46691e8e"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/database/c2.go:790-799 | internal/database/c2.go:1375-1384 | internal/database/c2.go:1797-1806 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2.go:790\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"d22c2ce52f886585461735bdc6ce79585271436798ec4e3f48972f6d20f49d59"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/robot.go:1578-1586 | internal/handler/robot.go:1595-1604 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/robot.go:1578\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1578}}}],"partialFingerprints":{"codehealthFindingId/v1":"fce500e933fd90315aa81c60f0ab7bff0914082a68f2b5e31c327dc2aa42f9e3"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/robot.go:1141-1150 | internal/handler/robot.go:1183-1191 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/robot.go:1141\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1141}}}],"partialFingerprints":{"codehealthFindingId/v1":"d85476cd7f5422c5e4a4a3c8de4aab848405e0cdc30baa5aabbe3c3d7e7a25a8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/handler/knowledge.go:169-178 | internal/handler/knowledge.go:213-222 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/knowledge.go:169\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/knowledge.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e4946ec5466ff47f207020daa2946101d7073308699ad7a4ef5c0259486cf64"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3): internal/update/apply.go:454-463 | internal/update/apply.go:468-477 | internal/update/apply.go:535-544 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/update/apply.go:454\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":454}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc46555725445731f91a77848e147d4df867e3563e2ed89db9eb40038442bd4f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): internal/database/asset.go:751-760 | internal/database/vulnerability.go:601-610 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/asset.go:751\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just after the matched lines, \u0060internal/database/vulnerability.go:611\u0060 calls \u0060TrimSpace\u0060 and \u0060internal/database/asset.go:761\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":751}}}],"partialFingerprints":{"codehealthFindingId/v1":"048a28a1b219a8deba750b1415d6fa5392996f3b3ac41ed7e43c2eebf2bbe978"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4): internal/handler/c2.go:362-369 | internal/handler/c2.go:553-560 | internal/handler/c2.go:941-948 | internal/handler/monitor.go:930-939 \u2014 there are 4 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 4 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/c2.go:362\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"13f202965dd12feae1568e6fee099e68bf24671a46d15594b5a577d3837d96d8"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/database/database.go:133-141 | internal/database/database.go:227-235 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/database.go:133\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/database.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed77c2fd3741ab103e90f87f31d19f9d2971d9f9b81479fc77f3822bd0944a76"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/app/app.go:1993-2001 | internal/app/app.go:2035-2043 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/app.go:1993\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":1993}}}],"partialFingerprints":{"codehealthFindingId/v1":"92a0b3856fdaca771ede36cd3227dd4a98fae556a334b691849c466f3c9138b9"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/conversation.go:588-596 | internal/handler/vulnerability.go:377-385 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/conversation.go:588\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/conversation.go"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dcf823e57d45951c939734b9fced913b8295d4ceb5758855f97ee86b0fddf9f"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/openai/openai.go:584-592 | internal/typesafe/client.go:178-184 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/openai/openai.go:584\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/openai.go"},"region":{"startLine":584}}}],"partialFingerprints":{"codehealthFindingId/v1":"63e3e0dbd285a0266406e6a28dd905afed6244a233011c4626dc5f77ac984bae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/robot/qq.go:129-137 | internal/robot/qq.go:156-164 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/qq.go"},"region":{"startLine":129}}}],"partialFingerprints":{"codehealthFindingId/v1":"d32bf23f7871e7de55c9a0f960c05c0d922ef4567f91ca927c04c3a7c7867adf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2): internal/handler/webshell.go:805-813 | internal/handler/webshell.go:937-945 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/webshell.go:805\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/webshell.go:803\u0060 calls \u0060Warn\u0060, \u0060String\u0060, \u0060Error\u0060 and \u0060internal/handler/webshell.go:935\u0060 does not \u2014 after which the two agree again for 3 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bd5c346ff184bc3c402ca52e506174e06a85b203d5441ca5bfc6f624d74629b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/handler/webshell.go:771-778 | internal/handler/webshell.go:876-883 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/webshell.go:771\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":771}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc0c1b5a8f7f9511cda607536408949aa423b1033c0fea2ec4d762610094a53"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/processguard/platform_linux.go:214-221 | internal/processguard/platform_windows.go:95-102 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/processguard/platform_linux.go:214\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/processguard/platform_linux.go"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcced95b2d886a1f8dc9a70de4337ab57dc6e0c6900e5106dfe21831568ab371"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/database/monitor.go:726-731 | internal/database/monitor.go:749-756 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":726}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bc3ef75f6bdefccb4b4098836bd3b7cb8c37cf7aebf21294f9464e497466565"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/handler/multi_agent.go:456-463 | internal/handler/single_agent.go:437-444 \u2014 before extracting anything, compare \u0060internal/handler/multi_agent.go\u0060 and \u0060internal/handler/single_agent.go\u0060 as WHOLE FILES: this scan already matched 17 separate duplicated blocks between them, totalling at least 431 lines, which is the signature of one file having been copied from the other rather than of a helper waiting to be extracted. If that is what happened, the fix is to keep one copy and have the other call it (or delete it), which resolves this row and its siblings together \u2014 extracting one helper per block leaves the fork in place. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/multi_agent.go:456\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"8201cdfd6621e9b73abe658909abacc7d5201debabbb9f580f4b947b72898fc0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/handler/agent.go:1701-1707 | internal/handler/agent.go:1730-1737 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/agent.go:1701\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":1701}}}],"partialFingerprints":{"codehealthFindingId/v1":"50a02586c301fd96be0e79fa3fd01321046abf0a3ef2bf17e397e84e24b846cf"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3): internal/handler/audit_query.go:40-47 | internal/handler/c2.go:495-502 | internal/handler/c2.go:892-899 \u2014 there are 3 copies across 2 file(s) \u2014 more copies than files, so at least one file holds the block twice. Extract it once into a single shared function every call site can reach and call it from all 3 sites; resolving a subset leaves the remainder to drift apart. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/audit_query.go:40\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/audit_query.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"53ea8987f4b499f9429709ee91ac0203f2ddd37ca500d06637c79eedb667dfa7"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2): internal/robot/slack.go:88-95 | internal/robot/slack.go:102-109 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/robot/slack.go:88\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/slack.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"a30b7e5dc4f51ae405e06b0f2139668582f278b608aaefa15130c1d7589fc569"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/config/config.go:1818-1825 | internal/config/config.go:1858-1864 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/config/config.go:1818\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1818}}}],"partialFingerprints":{"codehealthFindingId/v1":"abfdd571106751db6deefff24731744fdbfa0148c081eab4fc2ae89230b68798"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/handler/chat_uploads.go:1184-1190 | internal/handler/markdown_agents.go:352-358 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/chat_uploads.go:1184\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"33f4acdad91f415a121f573930d6d1ad16ca0c1e97011e8de6353c241037ce03"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/handler/external_mcp.go:203-209 | internal/handler/external_mcp.go:242-248 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/external_mcp.go:203\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/external_mcp.go"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c419ab97ad484511ee0f128630baf7f525a380ccec1a2eecf54367a9f63337"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2): internal/database/c2.go:156-162 | internal/database/c2.go:830-836 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/c2.go:156\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e5f81db94379f9f44b1e28ea77fb119a66f7045c90adde133d81e7b1321d43d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/handler/knowledge.go:211-217 | internal/handler/knowledge.go:458-462 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/knowledge.go:211\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/knowledge.go"},"region":{"startLine":211}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ecc84ceae8808b3addd023c8b1e0a00d2b44ddc4792884774dd21b39c086b8c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/app/asset_tools.go:133-138 | internal/app/asset_tools.go:175-181 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/asset_tools.go:133\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/asset_tools.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a8c77a59556abc81ae003321aa3dab104b00e132e282ca0ed6cb0bb19621aff"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/handler/conversation.go:347-353 | internal/handler/conversation.go:397-402 \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":"internal/handler/conversation.go"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"0685b6dfeebf8ab47e966fa39a12a8b5a3b19ee165bcbe346011da0062380b52"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/app/mcp_authorization.go:125-130 | internal/app/mcp_authorization.go:166-171 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/mcp_authorization.go:125\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/mcp_authorization.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"f727bcad5c4431f565a8bc3a4cc79a764b26e4e983f4e541a86f8e43bf7e0024"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/database/schema_reconcile.go:87-92 | internal/database/schema_reconcile.go:129-134 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/database/schema_reconcile.go:87\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/schema_reconcile.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7d08861ce78b2fad30f7fb5927f91b16197698168e82fb89c5f9382ef49272"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/openai/summarization_diag.go:58-62 | internal/openai/summarization_diag.go:65-70 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/openai/summarization_diag.go:58\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/summarization_diag.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"68e996f4646ac0d77e9ed59ad94b966c937515af5be63d5dd34d0904e562495a"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3): internal/handler/conversation.go:94-99 | internal/handler/project.go:69-74 | internal/handler/vulnerability.go:120-125 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 3 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/conversation.go:94\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/conversation.go"},"region":{"startLine":94}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe11ed075c7dc9c20d0359bdcec156a87f99a65bc62c1acbf769804d82208d98"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/knowledge/rerank_http.go:123-128 | internal/knowledge/rerank_http.go:170-175 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/knowledge/rerank_http.go:123\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also register a scope-exit action (a \u0060defer\u0060-style statement) that runs when the function holding them returns: moved into a called unit it would run when THAT unit returns instead \u2014 before the caller uses what it releases \u2014 so keep the registration at the call site and extract only the work around it, or have the extracted unit hand the resource back for the caller to register."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/rerank_http.go"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"87853e2f7e783a1324d9c921083dfa6fba32ef8f5b364ae476cc96e59c171a35"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6\u20137 lines \u00D7 2): internal/handler/robot.go:272-277 | internal/handler/robot.go:369-375 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/robot.go:272\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it. Note that the copies do not run to the end of the range shown: their LAST lines are different code, not the same code under different names \u2014 the matched region ends inside that line. Extract the lines above it, and read the last line of each site separately."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"66c341699a43099842caf048efc35c4670114daf3c42002c5ad4a7da371b0c0b"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/handler/batch_task_mcp.go:627-632 | internal/handler/batch_task_mcp.go:660-665 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/batch_task_mcp.go:627\u0060 it runs out through the closing brace of the declaration holding it \u2014 the window is that declaration\u0027s tail, not a fragment that begins part-way through something, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_mcp.go"},"region":{"startLine":627}}}],"partialFingerprints":{"codehealthFindingId/v1":"e25cc099500701df3758c2facdac5ab110b8fa0dddb2f751c331e5f2900c1e30"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/handler/chat_uploads.go:848-853 | internal/handler/chat_uploads.go:872-877 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. \u2605 These copies have DRIFTED, and that is worth reading before extracting anything: just before the matched lines, \u0060internal/handler/chat_uploads.go:845\u0060 calls \u0060parsePositiveIntQuery\u0060 and \u0060internal/handler/chat_uploads.go:870\u0060 does not \u2014 after which the two agree again for 2 more lines. One of those two behaviours is the intended one and the other is what a copy-paste left behind, so decide which BEFORE unifying them: extracting the shared part will silently settle it, and if the copy that skips the call is the wrong one, that bug is already live."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"f21c3f93a47dfd1a4d25f4db46319aa625b85f420d1f079a252309cc17935041"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 4): internal/handler/conversation.go:96-100 | internal/handler/project.go:71-75 | internal/handler/vulnerability.go:122-126 | internal/handler/webshell.go:450-454 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from all 4 call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/conversation.go:96\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/conversation.go"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"c23e567dfe9d106115992c7a444dd352737824ce0a80e53c012e6a66c2783a32"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/handler/hitl.go:1149-1153 | internal/handler/hitl_audit_agent.go:366-370 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/hitl.go:1149\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":1149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8e31a7ae9b76944db024fb70409cb33566d70e6fb1c51364dd31d43cc0ebd60"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/database/rbac.go:403-407 | internal/database/rbac.go:412-416 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":403}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee961944cabae0815c04f1c3df5c05150b3dbcbce9562f392945c58ff899a5ef"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): internal/app/app.go:1558-1562 | internal/app/app.go:1593-1597 | internal/app/app.go:1625-1629 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/app.go:1558\u0060 it begins part-way through the construct above it, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":1558}}}],"partialFingerprints":{"codehealthFindingId/v1":"551497a0cc4ce4febeb5914d98b2ba859cd2cdee8ad4cdae57f3636cd2200512"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3): internal/app/app.go:1563-1567 | internal/app/app.go:1630-1634 | internal/app/app.go:1664-1668 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/app/app.go:1563\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":1563}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fd3be8b4cc84e5853cdac82974543b45d367a23ab4326ccd69339614e98269d"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/update/apply.go:723-727 | internal/update/apply.go:795-799 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/update/apply.go:723\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":723}}}],"partialFingerprints":{"codehealthFindingId/v1":"429776f03c573331d90627a7e0229e992ba4c49687b0f1ff9e45c3de206040ae"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): internal/handler/token_usage.go:19-23 | internal/handler/token_usage.go:35-39 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited. Read the line range as the matched WINDOW rather than a finished unit: at \u0060internal/handler/token_usage.go:19\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/token_usage.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4a5755f9a77d163ea66959899123d4671f549f2b55040bdea81b92e383f0c6c"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2): internal/handler/config.go:927-932 | internal/handler/config.go:1964-1969 \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":"internal/handler/config.go"},"region":{"startLine":927}}}],"partialFingerprints":{"codehealthFindingId/v1":"09afc659c0c4b694da7dd008bb3fc0763792240c65d5dbd094068c286a5c6de0"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2): plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java:433-437 | plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SimpleJson.java:42-46 \u2014 the copies sit in sibling files of one directory, so a shared home is within easy reach: extract the block into a single shared function the call sites can all reach \u2014 a file they already depend on, or a new one alongside them \u2014 and call it from both call sites, so a change lands once. Read the line range as the matched WINDOW rather than a finished unit: at \u0060plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java:433\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that. The matched lines also transfer control out of the body holding them, which cannot survive a move into a called unit unchanged: have the extracted unit return that decision and let each site act on it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java"},"region":{"startLine":433}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fc94a8d1ad4cf90b17a6ec0a98691bb4b0c2dce13b1864bcfe20d6a7edb1fc"}},{"ruleId":"D4","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2): cmd/test-config/main.go:11-20 | cmd/test-external-mcp/main.go:15-24 \u2014 the copies span different directories, so extracting a shared function means choosing where it lives: put it somewhere both call sites can already reach \u2014 a location they all depend on today, or a new shared one if there is none \u2014 and call it from each site; until then, every change has to be made twice. Read the line range as the matched WINDOW rather than a finished unit: at \u0060cmd/test-config/main.go:11\u0060 it does not close everything it opens, so those exact lines cannot be lifted as they stand \u2014 widen the region to the smallest complete statement or declaration that contains it, and extract that."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/test-config/main.go"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f3ed0dc2ae089861158a9b65d3c00ece6a136f87d4258dcb5222b2ed76adb6"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: DB (LCOM4 150): DB\u0027s methods fall into 150 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 150 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/database.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"16b9c4c2d88ef8fe880847b3192ee8ec97db679135519a5b8b463e3cf97ee4b8"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AgentTuningConfig (LCOM4 15): AgentTuningConfig\u0027s methods fall into 15 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 15 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e592e82609d7fba0d2da7b246f16721bbfb8ba690a5221090cdd621f9e817a"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: VisionConfig (LCOM4 8): VisionConfig\u0027s methods fall into 8 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 8 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/vision.go"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44cb099764a8e7d37c373ac6728b5b824b55d26a832d44b8e292d15a38ef283"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: HitlConfig (LCOM4 7): HitlConfig\u0027s methods fall into 7 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 7 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1033}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd58f503ba497021254019417be25ac9b14aec97770b9f17c0adbe5a63e526d4"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: StorageConfig (LCOM4 4): StorageConfig\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1345}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d18a55ccf0677117dfbc17b1d8b9be2e6bf368c9f299f5c478ba93915d088fc"}},{"ruleId":"D6","level":"warning","message":{"text":"Low cohesion: AuditConfig (LCOM4 4): AuditConfig\u0027s methods fall into 4 groups that share no field and call none of each other, against a bar of more than 3 for this run (LCOM4, configurable \u2014 your repository\u0027s bar is the one quoted here). Each group is a set of methods reachable from one another through shared fields or direct calls, so 4 groups means the type has that many internally-connected clusters with nothing tying them together. Types whose shape makes a high count expected \u2014 and which would otherwise dominate this list \u2014 are excluded before this row is raised, so this is a genuine split candidate rather than a metric reading. It is still a shape, not a defect: confirm the groups match responsibilities you can name before splitting."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":1424}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb67ecb21780e0365e9eaee32c3e80c284b7bc1e13ae59a92f824ca60976b232"}},{"ruleId":"D8","level":"warning","message":{"text":"Coverage not measured \u2014 JavaScript/TypeScript suite: Coverage NOT MEASURED: the JavaScript/TypeScript half could not be measured \u2014 the node:test suite in runtime/pi/ ran and not one test passed (throw new ERR_MODULE_NOT_FOUND(), so the coverage would describe the failed run, not the code. Coverage is excluded from the score rather than counted as a near-zero. The named suite step is one the repository\u0027s maintainers can perform; once it passes, the real number is measured on the next scan."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"62e63e619c28f057e129f2997c965d32a457366a9ce18ca019ffb6bdfba85c99"}},{"ruleId":"D12","level":"warning","message":{"text":"Dependency pinned to a stale untagged commit: github.com/skip2/go-qrcode: Direct dependency \u0060github.com/skip2/go-qrcode\u0060 is required at \u0060v0.0.0-20200617195104-da1b6568686e\u0060 in go.mod \u2014 a pseudo-version, which pins an UNTAGGED commit from 2020-06-17, 6.4 years ago. The pin itself is exact, so this is not a reproducibility defect, and it is not a claim that the module is unmaintained. What it says is that this repository tracks no RELEASE of \u0060github.com/skip2/go-qrcode\u0060 and has not moved this requirement in 6.4 years: every fix the module has published since that commit \u2014 including any security fix \u2014 is absent from this build, whether the module went quiet or moved on without you. Check whether \u0060github.com/skip2/go-qrcode\u0060 now publishes tagged releases and move the requirement to one; if it publishes none, re-pin to a current commit."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a6e5287a202cd286edc04602da28ce33ce3e64a9cb3493c52e680dc4214f8d4a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/monitor.js: web/static/js/monitor.js changed 15 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 514 in monitor.handleStreamEvent at line 2918. 6 of those changes were fix/bug commits, and the other 9 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/monitor.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":"web/static/js/monitor.js"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e11831ce485c4f2f36970f1c30bf0a8fc10facbeb1cb1fc90fbc95757f25f48"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/chat.js: web/static/js/chat.js changed 17 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 291 in chat.renderProcessDetails at line 4069. 4 of those changes were fix/bug commits, and the other 13 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/chat.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":"web/static/js/chat.js"},"region":{"startLine":4069}}}],"partialFingerprints":{"codehealthFindingId/v1":"24244c005fd34fd57f6bac403cd8c0c8c7f04abaef7fe2eaa68f58989f82dc0b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/settings.js: web/static/js/settings.js changed 14 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 205 in settings.loadConfig at line 790. 7 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/settings.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":"web/static/js/settings.js"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"99468068beddcd4ef99db3afb1a36cbd368c89acc0548617f3f1990c6cd3036b"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/webshell.js: web/static/js/webshell.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 331 in webshell.selectWebshell at line 2446. 3 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/webshell.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":"web/static/js/webshell.js"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44df8a0ef0344139e4fd6b7a443015b4a268f6aaa4fcb8b3bc2a8a1eb0c67b3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/agent.go: internal/handler/agent.go changed 12 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 185 in AgentHandler.createProgressCallback at line 1025. 5 of those changes were fix/bug commits, and the other 7 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/agent.go\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":"internal/handler/agent.go"},"region":{"startLine":1025}}}],"partialFingerprints":{"codehealthFindingId/v1":"7199bbf03de9fd39e630dc889c4e510b9005fff389a61e37ea4b9aeeb791d1ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/config.go: internal/handler/config.go changed 18 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 90 in ConfigHandler.UpdateConfig at line 799. 7 of those changes were fix/bug commits, and the other 11 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/config.go\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":"internal/handler/config.go"},"region":{"startLine":799}}}],"partialFingerprints":{"codehealthFindingId/v1":"c58d9cb254db8378d9cb07ace570b15c5be563ffe111f9cb341e0e04ada9e3ae"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/app/app.go: internal/app/app.go changed 24 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 57 in app.New at line 83. 6 of those changes were fix/bug commits, and the other 18 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/app/app.go\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":"internal/app/app.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"451c72d0147d3b3db366aedc09d43bf2aae8fa1533876b186bb99bbfadef10ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/config/config.go: internal/config/config.go changed 28 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 24 in config.Load at line 1546. 11 of those changes were fix/bug commits, and the other 17 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/config/config.go\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":"internal/config/config.go"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc13cc9df78dffd7f9663d3d6315b5a7b6a30ad2cf7851b5452a6dd3ec33be7d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/tasks.js: web/static/js/tasks.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 91 in tasks.showBatchQueueDetail at line 1761. 3 of those changes were fix/bug commits, and the other 4 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/tasks.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":"web/static/js/tasks.js"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"075c970b08a734e7030491fa4b1bc2cbded480842cbece15aa5dd678c6633417"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/multi_agent.go: internal/handler/multi_agent.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 66 in AgentHandler.MultiAgentLoopStream at line 23. 3 of those changes were fix/bug commits, and the other 6 changed it for other reasons \u2014 this file is under both repair and feature pressure. Before the next change lands here, make sure the area it touches is under test, then split that area out of the file so the following change is smaller than this one \u2014 a file this often edited pays the complexity back every time. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/multi_agent.go\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":"internal/handler/multi_agent.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"378daa71176561328b7b23c26d676bd4c9963e51497483c5cd61d462906d6230"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/single_agent.go: internal/handler/single_agent.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 64 in AgentHandler.SingleAgentLoopStream at line 22. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/single_agent.go\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":"internal/handler/single_agent.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ce550e115a49d1db776275138ee24fc16709e9343b0eced0e8b1c4f097b8177"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/dashboard.js: web/static/js/dashboard.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 114 in dashboard.refreshDashboard at line 42. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/dashboard.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":"web/static/js/dashboard.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4b9e59719c2d45a830844a35e40d18eb944d12f534b86421778760d013c0c40"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/router.js: web/static/js/router.js changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 82 in router.initPage at line 410. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/router.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":"web/static/js/router.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8e0771d1ccb4fa3aa2a0599a42910da66fe6eff60a3ec8b78c2ab0fc86bab93"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/database/conversation.go: internal/database/conversation.go changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 46 in DB.GetProcessDetailsSummary at line 1452. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/database/conversation.go\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":"internal/database/conversation.go"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"897f2d23fa0f8501bac047ac8b379bbcc62fc7274f6a9f6b893ea36025b3e3cc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/update/apply.go: internal/update/apply.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in update.finishPendingBuild at line 399. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/update/apply.go\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":"internal/update/apply.go"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"294717882d2b9c9fc4cdf2c22208fc16cd346d54ef0baf3b186e887fbd64b2fc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/security/rbac_middleware.go: internal/security/rbac_middleware.go changed 8 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 54 in security.permissionForRequest at line 91. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/security/rbac_middleware.go\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":"internal/security/rbac_middleware.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d298a1fb61c053742e0d272187725b6d0c1fcbd68e769751b5c973d44ac9aa"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/batch_queue_executor.go: internal/handler/batch_queue_executor.go changed 9 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 47 in AgentHandler.executeOneBatchSubTask at line 113. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/batch_queue_executor.go\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":"internal/handler/batch_queue_executor.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"066a1e053821c9fae7abec41f492abbdd49aa9c14ac61ac41a5d36273707a738"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/update.js: web/static/js/update.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in update.watchdogProbe at line 290. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/update.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":"web/static/js/update.js"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"47d8a7f671dbf2611985680d7ef9305dad593201e912d175ca0a9acde24bb0a2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/vulnerability.js: web/static/js/vulnerability.js changed 10 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 31 in vulnerability.loadVulnerabilities at line 1274. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/vulnerability.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":"web/static/js/vulnerability.js"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb8751e9f8f0919eb60bbce2690a1519d74fb73b1958792fecab8182fbfc7675"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/multiagent/pi_runner.go: internal/multiagent/pi_runner.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 84 in piRun.run at line 226. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/multiagent/pi_runner.go\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":"internal/multiagent/pi_runner.go"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"81086050b9995260ac004b10a8ad46ef4d2b4ffa96317b4bd5bca92f875f2836"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: cmd/server/main.go: cmd/server/main.go changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 32 in main.main at line 24. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- cmd/server/main.go\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":"cmd/server/main.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"280240d7789fd822bdd63a32263c4a0c60dda532595cfc548c6879b3207d5f46"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/multi_agent_prepare.go: internal/handler/multi_agent_prepare.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 55 in AgentHandler.prepareMultiAgentSession at line 36. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/multi_agent_prepare.go\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":"internal/handler/multi_agent_prepare.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee917eca84b07f5f8f895d0c1f1624a5bab691e8cdeb9afd2b9f1aedd24a463d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: runtime/pi/src/worker.ts: runtime/pi/src/worker.ts changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 68 in worker.run at line 181. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- runtime/pi/src/worker.ts\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":"runtime/pi/src/worker.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"5421e7c5f89ed9842aabd40f6c2c264e8dac111fd2138ff1412f86f06013f35f"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/attackchain/builder.go: internal/attackchain/builder.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in Builder.BuildChainFromConversation at line 87. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/attackchain/builder.go\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":"internal/attackchain/builder.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f8c9d9bb9f6424666f77e63523324e8c1922e9cee3acaf277bf900cb26d0abf"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/auth.js: web/static/js/auth.js changed 7 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in auth.submitLogin at line 278. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/auth.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":"web/static/js/auth.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"28bdb504539e6ea868b546bc1db2acf7deeb4824a5cdd417628b3a467e91ebd2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/openai/openai.go: internal/openai/openai.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 41 in Client.ChatCompletionStreamWithToolCalls at line 328. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/openai/openai.go\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":"internal/openai/openai.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"64beaba0965ba329db9e5df404581eab38df3ad645e131e691ce31d4f09b5f02"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/app/project_fact_tools.go: internal/app/project_fact_tools.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 51 in app.registerProjectFactTools 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/app/project_fact_tools.go\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":"internal/app/project_fact_tools.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ef82eae3f6772b722e180db1fcc258911d422d22eed77d3c515f607a98aaf2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/task_manager.go: internal/handler/task_manager.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 25 in AgentTaskManager.CancelTask at line 475. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/task_manager.go\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":"internal/handler/task_manager.go"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b3db08cbe55dc67cbfb76b7a3e0d59ea23efc79fbe0a90fa9aa7fbefff47ccb"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/update/adopt.go: internal/update/adopt.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in update.Adopt at line 137. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/update/adopt.go\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":"internal/update/adopt.go"},"region":{"startLine":137}}}],"partialFingerprints":{"codehealthFindingId/v1":"15dc6fc8e533d16800dc16dc2047900ce52259c8eb4f0dfee09dd1cc2156c6c7"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/mcp/execution_service.go: internal/mcp/execution_service.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 29 in ExecutionService.finishEntry at line 266. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/mcp/execution_service.go\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":"internal/mcp/execution_service.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"14bfcbfc95b8c760cfebc9b65cd65e27283e584cc11259597b8830073efb8fb6"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/batch_task_manager.go: internal/handler/batch_task_manager.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 28 in BatchTaskManager.LoadFromDB at line 539. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/batch_task_manager.go\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":"internal/handler/batch_task_manager.go"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"87337c30a17c10ef098ec1788896aa59924388544bad4aee57105a6cfe748c44"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/workflow_integration.go: internal/handler/workflow_integration.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in AgentHandler.runRoleWorkflowStreamIfBound at line 58. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/workflow_integration.go\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":"internal/handler/workflow_integration.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d57582aad6c26c8c4c192aa9600d6df0c3e73e671dbff8823a5fcf738ffbe3"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/mcp/external_manager.go: internal/mcp/external_manager.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 30 in ExternalMCPManager.CallTool at line 698. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/mcp/external_manager.go\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":"internal/mcp/external_manager.go"},"region":{"startLine":698}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b63971c4f4391f94bf68995cf80a7811b385733f906ae0b77757d419cb1428d"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/project/blackboard.go: internal/project/blackboard.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in project.BuildFactIndexBlock at line 31. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/project/blackboard.go\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":"internal/project/blackboard.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"175364cf7d0d7ef4e9ed0ec51c9a935deb5ae20a796f02b0f32e0cfd1bd68b2c"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/agent/agent_trace.go: internal/agent/agent_trace.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 38 in agent.ParseTraceMessages at line 36. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/agent/agent_trace.go\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":"internal/agent/agent_trace.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"70788845d277004cc4556fbaaf9137530c5e2432e58daed3b03474003694ee13"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/i18n.js: web/static/js/i18n.js changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 35 in i18n.applyTranslations at line 75. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/i18n.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":"web/static/js/i18n.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"908a9638567ef964dd6dd6f61b39eff5bc78ea0eeaaea90a4df8b66f7a70dbdc"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/vulnerability.go: internal/handler/vulnerability.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in VulnerabilityHandler.ListVulnerabilities at line 184. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/vulnerability.go\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":"internal/handler/vulnerability.go"},"region":{"startLine":184}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b009d386d3c79fcea019d86d0da260d54730e4739e72026c5ba3e311c52e60"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/update.go: internal/handler/update.go changed 6 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in UpdateHandler.startJob at line 393. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/update.go\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":"internal/handler/update.go"},"region":{"startLine":393}}}],"partialFingerprints":{"codehealthFindingId/v1":"5453c8584b8de5803747f650c8e3bc3636a33b252b3a469da2e2a10076feedd4"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/database/vulnerability.go: internal/database/vulnerability.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 19 in DB.ListVulnerabilitiesByGroupForAccess at line 366. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/database/vulnerability.go\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":"internal/database/vulnerability.go"},"region":{"startLine":366}}}],"partialFingerprints":{"codehealthFindingId/v1":"7daf9453ac8460cf4754e8d730133e10d7bf53a1bf2623aa7b03784ecb8114fe"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/hitl.js: web/static/js/hitl.js changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in hitl.applyHitlDefaultConfigFromServer at line 266. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/hitl.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":"web/static/js/hitl.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"948526c81b7e16524d84572f2ee247a39b7168a67f9aa9ffd854acc0d2ffd2f2"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/workflow/nodes.go: internal/workflow/nodes.go changed 5 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in workflow.runToolNode at line 57. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/workflow/nodes.go\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":"internal/workflow/nodes.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3a6cc29f329f91fd870ac433b9f155f955a5dc06cd8d503c37ca53c68214389"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/multiagent/pi_model.go: internal/multiagent/pi_model.go changed 4 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 20 in multiagent.piModelConfig at line 10. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/multiagent/pi_model.go\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":"internal/multiagent/pi_model.go"},"region":{"startLine":10}}}],"partialFingerprints":{"codehealthFindingId/v1":"a090f31be0cd63432e442fbbd1ed4c4abbd3c253387c50ffd015e75a4bf3cf50"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: web/static/js/vulnerability-workspace.js: web/static/js/vulnerability-workspace.js changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 27 in vulnerability-workspace.openVulnerabilityInspector at line 104. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/static/js/vulnerability-workspace.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":"web/static/js/vulnerability-workspace.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"a597c202d9393365b2da97bec775d823a6ed668675b813044fb274bcc2abc3e5"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/hitl_audit_agent.go: internal/handler/hitl_audit_agent.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in AgentHandler.auditAgentReview at line 23. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/hitl_audit_agent.go\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":"internal/handler/hitl_audit_agent.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"0944af42b50a0eeb67975c52bdd88dffacd29dae106fefffe90e3ed6bfffdce0"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/security/shell_execute_stream.go: internal/security/shell_execute_stream.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in security.streamShellForeground at line 92. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/security/shell_execute_stream.go\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":"internal/security/shell_execute_stream.go"},"region":{"startLine":92}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb9291fd43b3282873a8fde75c0cfd822b3f58f0eba7e5865da888285c93985a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/c2/payload_oneliner.go: internal/c2/payload_oneliner.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 17 in c2.GenerateOneliner at line 107. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/c2/payload_oneliner.go\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":"internal/c2/payload_oneliner.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"047f5cecf606a8e183ae575e5bce30d86759b9eff29d4907aba1e60264b52931"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/knowledge/wire_retriever.go: internal/knowledge/wire_retriever.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in nativeMultiQuery.Retrieve at line 59. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/knowledge/wire_retriever.go\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":"internal/knowledge/wire_retriever.go"},"region":{"startLine":59}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e34f59ebf654ae54d31044f0b9c4e7532bfa3a20e43166ef93a4f91afe657a"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/c2/listener_websocket.go: internal/c2/listener_websocket.go changed 3 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 16 in WebSocketListener.handleConn at line 151. 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-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/c2/listener_websocket.go\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":"internal/c2/listener_websocket.go"},"region":{"startLine":151}}}],"partialFingerprints":{"codehealthFindingId/v1":"7762c0d0cb99f69d8fd047871dd4be05ce16943cc52480d8f191a5aabb97c2ec"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/handler/async_agent_runs.go: internal/handler/async_agent_runs.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 22 in AgentHandler.submitAgentRunWithExecutor at line 29. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/handler/async_agent_runs.go\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":"internal/handler/async_agent_runs.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a69971e5c04e57d21e69c1d09e9d393e553e3e25877e7095e4b913976a1376e"}},{"ruleId":"D15","level":"warning","message":{"text":"Hotspot: internal/openai/claude_native.go: internal/openai/claude_native.go changed 2 times in last 90 days, and the most complex body those changes touched has cyclomatic complexity 18 in Client.claudeRequest at line 108. Frequent change and high complexity in one file compound: schedule the next change to it to include carving out the part being edited, with the area under test before it moves. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/openai/claude_native.go\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":"internal/openai/claude_native.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee113353798ce9d88681ebe8ea060c2686bb0167ba955d41d2f6026275c2ced3"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: web/templates/index.html: web/templates/index.html changed 62 times in last 90 days and 32 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 1 (its worst body is index.html.load at line 5902), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix(ui): migrate remaining detail dialogs to drawers\u201D; \u201Cfix(ui): open skill previews in the shared drawer\u201D; \u201Cfix(ui): use square corners for detail drawers\u201D; \u201Cfix(vulnerabilities): remove empty scope heading space\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- web/templates/index.html\u0060: merges are excluded because a merge re-states changes already counted at their own commits, and history is NOT path-simplified because a change that reached the file through a merged branch is still a change to it. That command counts raw commits and can read HIGHER than this row, which counts a cherry-picked re-land, and a revert together with the commit it undoes, once each \u2014 a difference of several commits on a file whose history was re-landed or reverted inside the window."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5902}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a7c02c51a9906e654acbb26873dee48f957ccb37a459b3b609a0329a8a3a73e"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/update/update.go: internal/update/update.go changed 5 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 15 (its worst body is update.Status at line 266), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: serialize installation updates and recover interrupted adoption and rollback\u201D; \u201Cfix: a rollback keeps a recreated role, and an owed build is finished first\u201D; \u201Cfix: a rollback keeps the operator\u0027s edits, and a retry really compiles\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/update/update.go\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":"internal/update/update.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cf718bbee214926f28c9b939e29f22bc8f7d041378370e2d538180d7f6e0c50"}},{"ruleId":"D15","level":"warning","message":{"text":"Repeated repair: internal/update/build.go: internal/update/build.go changed 4 times in last 90 days and 3 of those changes were fix/bug commits, so repair is the majority of this file\u0027s churn. Its max cyclomatic complexity is 9 (its worst body is update.installBinary at line 74), AT OR UNDER the 15 threshold, so this is deliberately not filed as a churn \u00D7 complexity hotspot \u2014 the difficulty here is in the behaviour the file has to get right, not in its control flow, and refactoring it for complexity would be the wrong move. The repairs counted were: \u201Cfix: serialize installation updates and recover interrupted adoption and rollback\u201D; \u201Cfix: preserve rollback binaries during ambiguous recovery and YAML settings\u201D; \u201Cfix: a rollback keeps a recreated role, and an owed build is finished first\u201D. Each one is a case this code did not handle. Before the next change lands here, check that every one of them is pinned by a test that fails without its fix; where the same area keeps coming back, the durable fix is usually at the interface that keeps being misused rather than at the line that was last corrected. Counted over 2026-08-18..2026-11-16, the 90 days ending at the analysed commit. Reproduce with \u0060git log --since=\u00272026-08-18 11:43:34 \u002B08:00\u0027 --until=\u00272026-11-16 11:43:34 \u002B08:00\u0027 --full-history --no-merges -- internal/update/build.go\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":"internal/update/build.go"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b7f148685839f6ae6d661a7aed745eef3bdc280f9d1deb981c807698d514eac"}},{"ruleId":"D20","level":"note","message":{"text":"No ADRs found: No ADRs found. No recognised ADR directory (\u0060docs/adr/\u0060, \u0060docs/decisions/\u0060, \u0060adr/\u0060, \u0060docs/rfcs/\u0060, an \u0060ADR0001/\u0060 folder, or their siblings) exists anywhere in this tree. What was searched, so you can tell an empty log from a search that missed one: every directory under the tree (build output, dependencies and VCS metadata excepted), for a document that is either any non-index page inside a recognised ADR directory, whatever its name and however deeply nested (\u0060docs/adr/use-postgres.md\u0060, \u0060docs/adr/2024/0001-x.md\u0060); or a file anywhere whose name is ADR-shaped (\u00600001-use-postgres.md\u0060, \u0060adr-012-caching.md\u0060); or, when neither turned anything up, a document carrying the decision-record signature (an \u0022Architecture Decision Record\u0022 heading, or Status / Context / Decision / Consequences as section headings). A decision log that clears none of these \u2014 unnumbered files outside any recognised directory, without those headings \u2014 is not seen by this check and this row is then wrong. If that is your case, say so rather than renaming anything; otherwise, consider recording architectural decisions in \u0060docs/adr/\u0060. ADRs are expected here because \u0060plugins/burp-suite/cyberstrikeai-burp-extension/pom.xml\u0060 makes this repository a deployable product (line 36)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/pom.xml"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"c51d21a85871fc36f3bc9db8ea19ca16771f33818175976480182af5cdf2d584"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060HandleWecomGET\u0060 spells \u0060GET\u0060 where 12 names in the project spell it \u0060Get\u0060: 12 of 13 names in project cyberstrike-ai spell the token \u0060Get\u0060 (12 of 13; unit: names in project cyberstrike-ai containing \u0060Get\u0060). Peers: app.registerGetVulnerabilityTool (internal/app/vulnerability_tools.go:424); MonitorHandler.BatchGetToolNames (internal/handler/monitor.go:684); builtin.ToolGetVulnerability (internal/mcp/builtin/constants.go:9); builtin.ToolGetAsset (internal/mcp/builtin/constants.go:14); builtin.ToolGetProjectFact (internal/mcp/builtin/constants.go:22). Rename to \u0060HandleWecomGet\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f4e8c737e8aca5f6ce8f1c4bb6a8c1ef3aeee41e3f0a81739ec5723406b843b"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060handleQQGroupATMessage\u0060 spells \u0060AT\u0060 where 130 names in the project spell it \u0060At\u0060: 130 of 131 names in project cyberstrike-ai spell the token \u0060At\u0060 (130 of 131; unit: names in project cyberstrike-ai containing \u0060At\u0060). Peers: Event.CreatedAt (internal/c2/eventbus.go:21); TCPReverseListener.reportTaskResult(startedAtMS) (internal/c2/listener_tcp.go:320); TaskResultReport.StartedAt (internal/c2/types.go:219); TaskResultReport.EndedAt (internal/c2/types.go:220); AgentRun.CreatedAt (internal/database/agent_runs.go:18). Rename to \u0060handleQQGroupAtMessage\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/qq.go"},"region":{"startLine":142}}}],"partialFingerprints":{"codehealthFindingId/v1":"da34e8b1b9b8282bb7d85023daf8f2df0cbc760472dd8202b214b2f7cfa6a734"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060ResolveSKILLPath\u0060 spells \u0060SKILL\u0060 where 30 names in the project spell it \u0060Skill\u0060: 30 of 31 names in project cyberstrike-ai spell the token \u0060Skill\u0060 (30 of 31; unit: names in project cyberstrike-ai containing \u0060Skill\u0060). Peers: DB.SaveSkillStats (internal/database/skill_stats.go:20); DB.LoadSkillStats (internal/database/skill_stats.go:50); DB.UpdateSkillStats (internal/database/skill_stats.go:90); DB.ClearSkillStats (internal/database/skill_stats.go:121); DB.ClearSkillStatsByName (internal/database/skill_stats.go:133). Rename to \u0060ResolveSkillPath\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/skillpackage/layout.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c02c02b0a33aba26c351f52ac51f39bd6c538330e5e4019e424064e2f9e9cbe"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060applyRBACToUI\u0060 spells \u0060RBAC\u0060 where 72 names in the project spell it \u0060Rbac\u0060: 72 of 73 names in project repository spell the token \u0060Rbac\u0060 (72 of 73; unit: names in project repository containing \u0060Rbac\u0060). Peers: rbac.clearRbacResourceSelection (web/static/js/rbac.js:161); rbac.renderRbacNoRoleNotice (web/static/js/rbac.js:170); rbac.renderRbacPendingSelection (web/static/js/rbac.js:188); rbac.removeRbacPendingItem (web/static/js/rbac.js:218); rbac.removeRbacManualPending (web/static/js/rbac.js:225). Rename to \u0060applyRbacToUI\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/auth.js"},"region":{"startLine":557}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa694eeefd51dd59d3eb0a488308113d1a781abcc4225c77b8bed080f11af4b4"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060chatFilesIDDisplay\u0060 spells \u0060ID\u0060 where 421 names in the project spell it \u0060Id\u0060: 421 of 426 names in project repository spell the token \u0060Id\u0060 (421 of 426; unit: names in project repository containing \u0060Id\u0060). Peers: service-worker.getCaptures(tabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:12); service-worker.broadcastTab(tabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:23); service-worker.cleanupOldTabs(activeTabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:35); api.agentModeById (plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:8); api.extractConversationId (plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:106). Rename to \u0060chatFilesIdDisplay\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":851}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3980d5b4a4d18f898dbb3ed83c588ae0d3c9552fa70cfdaaadc5fd255fc39c8"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060chatFilesGroupHeadingID\u0060 spells \u0060ID\u0060 where 421 names in the project spell it \u0060Id\u0060: 421 of 426 names in project repository spell the token \u0060Id\u0060 (421 of 426; unit: names in project repository containing \u0060Id\u0060). Peers: service-worker.getCaptures(tabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:12); service-worker.broadcastTab(tabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:23); service-worker.cleanupOldTabs(activeTabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:35); api.agentModeById (plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:8); api.extractConversationId (plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:106). Rename to \u0060chatFilesGroupHeadingId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":980}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02695a9559811998375074179eb71212d2a7e1ae7ee4f744216be7d3d9bf420"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060getKnowledgeNotEnabledHTML\u0060 spells \u0060HTML\u0060 where 45 names in the project spell it \u0060Html\u0060: 45 of 46 names in project repository spell the token \u0060Html\u0060 (45 of 46; unit: names in project repository containing \u0060Html\u0060). Peers: markdown.mdEscapeHtml (plugins/browser-extension/cyberstrikeai-browser-extension/lib/markdown.js:3); markdown.markdownToHtml (plugins/browser-extension/cyberstrikeai-browser-extension/lib/markdown.js:68); panel.escapeHtml (plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js:273); api-docs.escapeHtml (web/static/js/api-docs.js:1003); auth.escapeHtml (web/static/js/auth.js:697). Rename to \u0060getKnowledgeNotEnabledHtml\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8e98ca0396639341af6fb98ad7056fa64be0051fab787fc4fa2f846e30f8c5a"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060mergeMcpExecutionIDLists\u0060 spells \u0060ID\u0060 where 421 names in the project spell it \u0060Id\u0060: 421 of 426 names in project repository spell the token \u0060Id\u0060 (421 of 426; unit: names in project repository containing \u0060Id\u0060). Peers: service-worker.getCaptures(tabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:12); service-worker.broadcastTab(tabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:23); service-worker.cleanupOldTabs(activeTabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:35); api.agentModeById (plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:8); api.extractConversationId (plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:106). Rename to \u0060mergeMcpExecutionIdLists\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2712}}}],"partialFingerprints":{"codehealthFindingId/v1":"663ffe2b77dd8cbc56690442bbbde4e1fd6816243036a455d6a2b9b901d18fd2"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060batchHITLPolicyLabel\u0060 spells \u0060HITL\u0060 where 144 names in the project spell it \u0060Hitl\u0060: 144 of 146 names in project repository spell the token \u0060Hitl\u0060 (144 of 146; unit: names in project repository containing \u0060Hitl\u0060). Peers: chat.normalizeHitlMode (web/static/js/chat.js:417); chat.normalizeHitlTimeoutForChat (web/static/js/chat.js:426); chat.defaultHitlConfig (web/static/js/chat.js:432); chat.normalizeHitlReviewer (web/static/js/chat.js:448); chat.getHitlStorageKeyByConversation (web/static/js/chat.js:500). Rename to \u0060batchHitlPolicyLabel\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2978}}}],"partialFingerprints":{"codehealthFindingId/v1":"27e5f71249f2d4da0a151136ea31c32ce658e50457e3bd2476714d13f7176cc2"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060startInlineEditHITLPolicy\u0060 spells \u0060HITL\u0060 where 144 names in the project spell it \u0060Hitl\u0060: 144 of 146 names in project repository spell the token \u0060Hitl\u0060 (144 of 146; unit: names in project repository containing \u0060Hitl\u0060). Peers: chat.normalizeHitlMode (web/static/js/chat.js:417); chat.normalizeHitlTimeoutForChat (web/static/js/chat.js:426); chat.defaultHitlConfig (web/static/js/chat.js:432); chat.normalizeHitlReviewer (web/static/js/chat.js:448); chat.getHitlStorageKeyByConversation (web/static/js/chat.js:500). Rename to \u0060startInlineEditHitlPolicy\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2982}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb52e6bb37c4ad82822ddc4b608a7ee57a799d3b4e855e823c3acff9bb868654"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060bootID\u0060 spells \u0060ID\u0060 where 421 names in the project spell it \u0060Id\u0060: 421 of 426 names in project repository spell the token \u0060Id\u0060 (421 of 426; unit: names in project repository containing \u0060Id\u0060). Peers: service-worker.getCaptures(tabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:12); service-worker.broadcastTab(tabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:23); service-worker.cleanupOldTabs(activeTabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:35); api.agentModeById (plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:8); api.extractConversationId (plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:106). Rename to \u0060bootId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/update.js"},"region":{"startLine":267}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a14f7dee98f702f6575a65e09e86c6a7d356e0a66beda3166c2c0d56c175d29"}},{"ruleId":"D21","level":"note","message":{"text":"\u0060caseID\u0060 spells \u0060ID\u0060 where 421 names in the project spell it \u0060Id\u0060: 421 of 426 names in project repository spell the token \u0060Id\u0060 (421 of 426; unit: names in project repository containing \u0060Id\u0060). Peers: service-worker.getCaptures(tabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:12); service-worker.broadcastTab(tabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:23); service-worker.cleanupOldTabs(activeTabId) (plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js:35); api.agentModeById (plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:8); api.extractConversationId (plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:106). Rename to \u0060caseId\u0060. [rule N6]"},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability-workspace.js"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56732bb4d8cc4c55fb63f614877a6e2627dda0e004f4365abf7eabb9128d12f"}},{"ruleId":"D26","level":"note","message":{"text":"Projects may be oversized for their cohesion: \u0060(repository root)\u0060 (178110 LoC, 640 module-visible types across 57 directories) overshoots its size bounds. 1 of 3 build unit(s) (Go, Maven, npm) overshoot their size bounds, lowering Project Cohesion to 3.3/10. 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":[{"physicalLocation":{"artifactLocation":{"uri":"go.mod"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d39784e8a78933b908507d20b4610b78a7f819ed418525c8adae26ae57410589"}},{"ruleId":"D27","level":"note","message":{"text":"Scattered collaborators: 42 % of calls cross a namespace and only 56 % of collaborators are co-located \u2014 group each feature\u0027s code into a vertical slice so a call\u0027s collaborators sit together."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"5aad4a4530bac3928d3a065a664be89d023ecfc865f9bf79ac05754b3bffe322"}},{"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":"ced6e858c70c27401b2d04483a0545a895ff6a272ebb371561281909779f8af9"},"properties":{"commitSha":"4442e7de30a46b443bcd1ca35d5393488fa9963d"}},{"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":"34dc3c6d50b125d9e84c21ac1c9ff164be40047b9aaa64bb14a96674a20763ae"},"properties":{"commitSha":"989766a73bbddf55eb7728a07f615e6ad1bf6a1c"}},{"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":"4bedd2e4f8404b431c4d46e33321d86b0ebf71e6f4d0bb30afe365ac55bdf76d"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"191f23dbe1657378f86e499a162b1b2511e319dc382f658c0f40fcee51bfcca4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"76524af4b11da2f719638f841f67ebf74ed30b75c9c8d77bf025ed73ea8038e0"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a996e0f37f6fc840c66c103a267e8b781f811024f8023a5d24568bd51b4751f2"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"6b293f08654bd9a3740d0f6df03b25403faae53faebcd86e57588c3897c886f9"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2d238609fb696b94777f696504f2d57d2ba801664eb9cbbc05ef5e4f1a8451e4"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9011f977ed02ed4a395e311d3a6557523dab13944298cf53c3bcba5eb12d5674"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"4e69340e19ea11fbe89aa455e48e833e6570b8cbed3b88b5e2a7e045c7774e1e"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ffe93603638c72138320e60bdbbff420b29736421768b2899d8f935ceded51ce"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ffcf640dac54c73343e908b218efe37268f6706d389672c68791be9a2a1d6c5c"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e1068eecc903e9c6ad0936b8993349be3f82c0bcd0fdddeb0939f0fbfedccdb3"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e41e3149a4519f03a661bf3273e23aaabb975fb4f389d317a9b5b47ff2ca9abb"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b0dfc531207e597e2e565df8463f2a7f91c001c23be0c660471974f4b623d734"},"taxa":[{"id":"CWE-1357","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-353","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"065cbbd3a62702ed1b8212458c18f7b796d4bc6ff5d09feec7a9c860ed221d10"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d346fbcd6df3847766255070934b74023af027baf4748da5e7aa7e04f2b2923d"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b6f39ee33c52fc6e1af3f4eb126227c50111f933a5d404add5e4f8c3a88b3fb"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ea936c26aac70275d49a55eb5cd6229c702f5d7768fc2083d224b1dfbdf12ee8"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1feac02c1aca6ddf5397eeebbc586f9862bd613c8b22fb0b395f3a458b62c297"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"09d8d97f98b58027fd2459b0c2ad683cdaeab4a6ae133bb07fdb50107ee7736d"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"45af489539347139a74fc116dbe17d13942b8d9aabb7565ae3350081fd31ee1e"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9964d398c2861e2090b035e84a0bfca766e14bb37cc3488d9e795b59da134273"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e2577040bdc545638ce4d9a44b5db67adf09f96c93815b5b2abc9ea92ead6fef"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c47aabcd4b876f91c2955685d5da56bfb52dcf4110702a6cef6d471a7a0c4ad3"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2ad5fefc369c04eed10eddcec4b4d122cf913ee1cb47a7f6cab765e6bc5c6a15"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"162afb8e5407b029b2c8f065683c625d33aec612963c36aaf45f5c4afa6342f2"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ca337847cf8bba8f7f621e29f5afab2775a01a34005721e06e311ce5d0678297"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2c330daf7d2b7c9e29f0d5ab6b58a0f20a2139a58ad73c6166197cb0e102e2b0"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"03f16e17e4f479e924e5d8205cb3ec913c151c333f772c850cb3e37a2953e0d2"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"469f934207d6cfde19d3bd1fd0e77afe33983e1cd36b9d38d08d3dec29b284b2"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"890713b485c6c972a271f59155422e90d1e16c52028e615aaa4a67d9a2d07ab7"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b75587fd0ee49e65d1b6cadbaed6e56004498de0781278496556c7377f408855"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"0f0120815abdbc2dacd1f36d7915f3129337f8c95e2f40a62011152458bceedb"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cc80ddc23c8ec34d32c5822d0691c8ad71fcd0dfd9687a3230efee9094d15846"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1f1ff4dd80ff85ae0369bef15ed43350d4f3aa7c1deff7b2de2ede01602c8a4b"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"79fc1691c06f6d7fd7f86e5b2d0c97371ff81a4ac071cd1cb9633a34e0ef4158"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"90979f25ad5ab34bdbbabecf196b4d8a4489f8d65438133fb3ac7a96b008ae4f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"207f3257c0007be34eaef06e8cb3c19030f6a6fbd5d80051a93a96f87569d10c"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cf8acc640093a38bfb94215822ca095f55818b991662268f11d0815014edb6d3"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a4ad677228fad36bdf4141c097fe1f354fde22f995ab7b1b42676e5d98a8b3f5"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b3a23df40178e32b4936d3f1410cb911fc0ca4d02a22c419bb854388a4b5e8a1"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9fc2a65300cfb315eddfa3407bb4c004df46edc984b7be461c3908e53bd32445"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1508fc47fb91ed3367667ce65105eda9f6922eca1a7803b56cff3b725e9c8f4c"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ad76aac20126a0f3199622a04544cd9d5691fb79c021c047f7fb8e0c24452a8c"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8050c3eebd177e228b81fb45965642bf8dec648c1975dc7bcacc0b1233d77ab9"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"c7f8aa3e94f864a258bf5d4f260ffd1da2e9e7e3fe4f080ace2a7e63f2478e23"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"209889c64255cacae8b9cc4f2e5b2837c883a7c5e02bd705fb45c6d43b2aeb55"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"dd92eebaa005db64af61d41c6a813fc24c0e93a2dc4f835396f41a1f2ada362f"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e882e368482faa20509c4b7b31ce840674ce2ef18248959d61dce3b5f4082cd0"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a1b1db681320478c4843d49447e4d56c32eb52846603b364dc8f45f7f9aa8010"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a04f060ce3e07bce8ace9dd86f79bead53f37f47f55eb7f137d4610202716263"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"35a107c3a5c3381902289e956c61e9a877754920dce6e06984afdc47ec32c8f8"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e181fecb43a091d0c9cf8a8db21eef0bd019d28ef4e5db745d9ed7399e02b3df"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"228453fc6c61a15faa10078b3b913a654233b68dcb2d7ce973df48bf1dfb359e"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"31a7a11d4b3ea5e3f2bdbfc09275a2937f653472f455dc8a783d081ccb04709a"},"taxa":[{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"720b41ae8e9d9434ca9829c052b80628a48af06b521124e65feb88985b0b19ce"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1584448b433b1f548486298a2eb292ed2cee3055f7e02d3d4a0a823ea01baf05"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"612a39c340c0615957b8519f283f2378344f80c5606b35534848b3af487a1cec"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cbccd63d0b8ae19b88fee453e13d0245eccfd2e7c6e73dd5029417d52db47ab3"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7eb08e0629fd0d2cece125a5249cf97b25ba68b2cfa10cb0ccb4f36e1a6d02f8"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d464c01627f4574d5c0f9c72b257e5da294427be010c899d29e3d3b369b37924"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"24fe572c43042c3cd5ad0e715a7f4d2855516f5e6d4421490f773c71dd9e7085"},"taxa":[{"id":"CWE-918","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9c9f06dd4bf16b687543f242ddcf6df0a10125fbc58c9c48fc3f67196e26e97a"},"taxa":[{"id":"CWE-502","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"121286c0a23045989fc689d27a2bd78a3c32eacc6031e2ff8c03b7c74ea0ea50"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8510f7b9bb0abcc3263209f0d93d67c194c1e6820bb2c617ef00c1d3eae5126e"},"taxa":[{"id":"CWE-494","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b0cf74d81ea38f3a8abfb4b94797843b5f4dff6264b4f891b1326d7609887bc"},"taxa":[{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"51879d2d21950f4e8f3046c7b7cde12e29fea33486dce42c7dddf7430f393cf5"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"b3639d8cbca2f1820b8fa4f40dad9fc4551437328dca49114fcaee654674ad1c"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ca76cf2bc71a291eb23dcf1f3e8510e846c458ddd48576198bf0342c1bbd3eba"},"taxa":[{"id":"CWE-400","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"a0d1a5b280cb198c9897fa018600ebb7cc659223b40b79e6c14838053d76c4c8"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"998d388f656ea2ec4bd8623d379962c96b7cbc7332bdca3c3f268d7301afd7e7"},"taxa":[{"id":"CWE-252","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3835e50b0ac1ccd96a8bef02c2f0d29fd3eb416f44b2c8ea342ad40b7c2e13cf"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3963209bbe033df928c6cf175019e422b80527a75dcc016d0210af1c02ac2c6c"},"taxa":[{"id":"CWE-248","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-704","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"18c56af57a883e0f43b06c08a7f6d3db83e58d25f61b97ce7c240f8323d0e8c9"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d695ea4d3e330ca93a3f794ee15c95c5fe1c4bf546cb9d636eabfdb6880521b3"},"taxa":[{"id":"CWE-362","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-567","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A06:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"7bec6d4c7791c32933cb92ffc54f214a5b2f57961cd47ebd821c541d6608a382"},"taxa":[{"id":"CWE-330","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"119cf9e336c81b4c4ba487e51a6af4bcdd97128cd148c4d699ecf518624874d8"},"taxa":[{"id":"CWE-338","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"d016c565f13fcc3fa1ba0e6f882dea53b3fe80c22dc319f2b29025109b505e0f"},"taxa":[{"id":"CWE-391","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"CWE-703","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A10:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8654d129d8820915b5c6e16cc90949bc21303d885f9ee3062e0f2c09d1ce21ad"},"taxa":[{"id":"CWE-328","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"cbdff3555154c277d9480f991e95c053abb1652d5b603de46b4fe09b55bc19bd"},"taxa":[{"id":"CWE-200","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2b1787c0373ea7b08a6cb38af835689d2665cb059961efd00b62d7b5e4c468e5"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"365a8aa2bc5c3861e45e6fcca5a1c9ef851b3baad710aa1b9d34e4c966d1258b"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"9f93bc6cfbb8105132c22375dab2748da4e25ddf2c67e4b558d8934318008e0e"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"115aca6ce2d99271ecf1982e39366c2cfb81ccda5efb5f429bc27bbac89183ae"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1176fe7db585cc69832311fff09ddaebe64584aaa2407d74d1f3b7527acb7e29"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"warning","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"065d83406e523f560e2d0835b79d9c8886276d1b5553786620a18b4881d193ee"},"taxa":[{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"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":"f62c463376303965f64b2ea879fe539d8e1d621ca9fbf38c02864e47129c9165"},"taxa":[{"id":"CWE-319","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"b25a02ad86e7b636b85f7187b52911728d83ec4764f77471702c31d9b90764f3"},"taxa":[{"id":"CWE-352","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A01:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"3204169da808b84b0ba9629bbfa8d5610fa3d6d722fa095fa0a91e865a4f817b"},"taxa":[{"id":"CWE-327","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A04:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"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":"b15451820fb6731d41bba38b7f6bb3f5f9c41d490dac3ba233d1e5b0f32e151b"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"259fc8951a9e79335eaa1ce71fa388634c7d9a731a8a62329fa41afa756ad939"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1d82e2b04bd1681f72c3a8791bf25e09ff3d56bc2fb98fd1e1d26bfbb386f9f2"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e50654488934fd67a9829f0563e1d5ec782bd7c0b9a433c6d25d644fe1db386a"},"taxa":[{"id":"CWE-242","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"8b02198777f54c4ffe08ab099288e29c54c21c55930a6a7221b66ea0f3a88d62"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D29","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"2744c3c66c2640e3bfa0d15b23b2323bcca99fff4fc84edd51180ce85d2b292a"},"taxa":[{"id":"CWE-295","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}}]},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"58520b7977a5873bc333ffd7e5f56dc442b6df40404b9a2bc0254d7376d652c7"},"properties":{"dependency":{"package":"golang.org/x/crypto","version":"0.50.0","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-5005","GO-2026-5006","GO-2026-5013","GO-2026-5014","GO-2026-5015","GO-2026-5016","GO-2026-5017","GO-2026-5018","GO-2026-5019","GO-2026-5020","GO-2026-5021","GO-2026-5023","GO-2026-5033","GO-2026-5932","GO-2026-6303","GO-2026-6354","GO-2026-6355"],"severity":"critical","fixedVersion":"0.52.0","relation":"direct","declaredRange":"0.50.0","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":"45940f2eadf20f84c719c71a8b710481f5777006c4410a5ec8fd50d5e5f56f73"},"properties":{"dependency":{"package":"github.com/modelcontextprotocol/go-sdk","version":"1.3.1","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","GO-2026-4770","GO-2026-4773","GO-2026-5771"],"severity":"high","fixedVersion":"1.4.1","relation":"direct","declaredRange":"1.3.1","reachability":{"kind":"production","file":"internal/mcp/client_sdk.go","line":17}}}},{"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":"6149a36cd7be23268db9921487675803e09ab1bcde83b8d64193509e58282e24"},"properties":{"dependency":{"package":"golang.org/x/image","version":"0.0.0-20191009234506-e7c1f5e7dbb8","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]","GO-2023-1572","GO-2023-1989","GO-2023-1990","GO-2024-2937","GO-2026-4815","GO-2026-4961","GO-2026-4962","GO-2026-5031","GO-2026-5032","GO-2026-5061","GO-2026-5062","GO-2026-5066","GO-2026-6222"],"severity":"high","fixedVersion":"0.18.0","relation":"transitive","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":"d94222fa9934edd47ba3a0ef99e3a7d85a9c2a0dac93507e5359a1abb9d5d840"},"properties":{"dependency":{"package":"stdlib","version":"1.25.0","advisory":"GO-2025-3955","aliases":["BIT-golang-2025-47910","BIT-golang-2025-47912","BIT-golang-2025-58183","BIT-golang-2025-58185","BIT-golang-2025-58186","BIT-golang-2025-58187","BIT-golang-2025-58188","BIT-golang-2025-58189","BIT-golang-2025-61723","BIT-golang-2025-61724","BIT-golang-2025-61725","BIT-golang-2025-61726","BIT-golang-2025-61727","BIT-golang-2025-61728","BIT-golang-2025-61729","BIT-golang-2025-61730","BIT-golang-2025-68121","BIT-golang-2026-111943","BIT-golang-2026-25679","BIT-golang-2026-27139","BIT-golang-2026-27142","BIT-golang-2026-27145","BIT-golang-2026-32280","BIT-golang-2026-32281","BIT-golang-2026-32282","BIT-golang-2026-32283","BIT-golang-2026-32288","BIT-golang-2026-32289","BIT-golang-2026-33811","BIT-golang-2026-33814","BIT-golang-2026-33818","BIT-golang-2026-39820","BIT-golang-2026-39822","BIT-golang-2026-39823","BIT-golang-2026-39825","BIT-golang-2026-39826","BIT-golang-2026-39836","BIT-golang-2026-42499","BIT-golang-2026-42504","BIT-golang-2026-42505","BIT-golang-2026-42507","BIT-golang-2026-56853","BIT-golang-2026-56857","BIT-golang-2026-56858","BIT-golang-2026-56859","BIT-golang-2026-56860","BIT-golang-2026-56862","BIT-golang-2026-56866","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78667","BIT-golang-2026-78669","BIT-golang-2026-94439","BIT-golang-2026-94440","BIT-golang-2026-94448","BIT-golang-2026-97030","BIT-golang-2026-97031","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2025-4006","GO-2025-4007","GO-2025-4008","GO-2025-4009","GO-2025-4010","GO-2025-4011","GO-2025-4012","GO-2025-4013","GO-2025-4014","GO-2025-4015","GO-2025-4155","GO-2025-4175","GO-2026-4337","GO-2026-4340","GO-2026-4341","GO-2026-4342","GO-2026-4601","GO-2026-4602","GO-2026-4603","GO-2026-4864","GO-2026-4865","GO-2026-4869","GO-2026-4870","GO-2026-4918","GO-2026-4946","GO-2026-4947","GO-2026-4970","GO-2026-4971","GO-2026-4976","GO-2026-4977","GO-2026-4980","GO-2026-4981","GO-2026-4982","GO-2026-4986","GO-2026-5026","GO-2026-5037","GO-2026-5038","GO-2026-5039","GO-2026-5856","GO-2026-5972","GO-2026-6088","GO-2026-6089","GO-2026-6090","GO-2026-6091","GO-2026-6218","GO-2026-6599","GO-2026-6600","GO-2026-6603","GO-2026-6604","GO-2026-6605","GO-2026-6607","GO-2026-6608","GO-2026-6609","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6613","GO-2026-6617","GO-2026-6809","GO-2026-6859","RUSTSEC-2026-0381","RUSTSEC-2026-0382","RUSTSEC-2026-0383"],"severity":"medium","fixedVersion":"1.25.1","relation":"direct","declaredRange":"1.25.0","reachability":{"kind":"production","file":"cmd/test-sse-mcp-server/main.go","line":110,"symbol":"http.Error"}}}},{"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":"0bdf6e35fb4ce52ab3acda8c9d66343766f932e0b638e368be42c0e8b4377b74"},"properties":{"dependency":{"package":"golang.org/x/net","version":"0.53.0","advisory":"[GHSA redacted]","aliases":["BIT-golang-2026-46600","BIT-golang-2026-78659","BIT-golang-2026-78660","BIT-golang-2026-78663","BIT-golang-2026-78669","BIT-golang-2026-97032","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","GO-2026-5025","GO-2026-5026","GO-2026-5027","GO-2026-5028","GO-2026-5029","GO-2026-5030","GO-2026-5942","GO-2026-6603","GO-2026-6610","GO-2026-6611","GO-2026-6612","GO-2026-6617","GO-2026-6860","GO-2026-6866"],"severity":"medium","fixedVersion":"0.55.0","relation":"direct","declaredRange":"0.53.0","reachability":{"kind":"production","file":"internal/app/app.go","line":745,"symbol":"http2.ConfigureServer"}}}},{"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":"362d19fbc20680c130f6d3f829465778e97203407075f4ceb76a4cf0cc41a027"},"properties":{"dependency":{"package":"golang.org/x/sys","version":"0.43.0","advisory":"GO-2026-5024","aliases":["[CVE redacted]"],"severity":"medium","fixedVersion":"0.44.0","relation":"direct","declaredRange":"0.43.0","reachability":{"kind":"production","file":"internal/processguard/platform_windows.go","line":18}}}},{"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":"76d999f7f0da1c7805a61d7a77ca6e9d78cdf7e7d953cafe7b73d81759ae1a99"},"properties":{"dependency":{"package":"golang.org/x/text","version":"0.37.0","advisory":"GO-2026-5970","aliases":["[CVE redacted]","[CVE redacted]","GO-2026-6629"],"severity":"medium","fixedVersion":"0.39.0","relation":"direct","declaredRange":"0.37.0","reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"e7dc1d20130d72028445be9a746100b56cecdcb05cb87b61e4bd273aea4888fa"},"properties":{"dependency":{"package":"github.com/disintegration/imaging","version":"1.6.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"severity":"low","relation":"direct","declaredRange":"1.6.2","reachability":{"kind":"production","file":"internal/vision/preprocess.go","line":10}}}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: chat.js \u2194 i18n.js: \u0060web/static/js/chat.js\u0060 and \u0060web/static/js/i18n.js\u0060 change together 80% of the time (8 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \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). Neither file is a module \u2014 they declare no import/export and are loaded together into one shared scope by a script tag or a bundle \u2014 so there is no dependency edge that COULD be declared between them, and this pass cannot tell a real relationship from a coincidence of release. Read the pair before acting: if one defines what the other uses through the shared global, that is the coupling, and making it explicit (a module boundary, or one named object they both go through) is what removes it; if they duplicate structure, extract the common part; if neither holds, the co-change is incidental and there is nothing to do. You can check this without leaving the row: of the 8 shared commits counted here, the most recent 3 are \u006078973e84\u0060 feat: add Russian UI locale (#341); \u006038b96ec6\u0060 feat: add TypeSafe Jev as HITL audit backend; \u00608e42e72e\u0060 Add files via upload \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"069fdc9a4614038171a2f19e0f917b33e4c88a35a7a2b8d6c515538cb37254fc"}},{"ruleId":"D35","level":"warning","message":{"text":"Change coupling: i18n.js \u2194 monitor.js: \u0060web/static/js/i18n.js\u0060 and \u0060web/static/js/monitor.js\u0060 change together 50% of the time (5 of the 10 commits that touched whichever of the two files changed less often, counting a file under its earlier names as well \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). Neither file is a module \u2014 they declare no import/export and are loaded together into one shared scope by a script tag or a bundle \u2014 so there is no dependency edge that COULD be declared between them, and this pass cannot tell a real relationship from a coincidence of release. Read the pair before acting: if one defines what the other uses through the shared global, that is the coupling, and making it explicit (a module boundary, or one named object they both go through) is what removes it; if they duplicate structure, extract the common part; if neither holds, the co-change is incidental and there is nothing to do. You can check this without leaving the row: of the 5 shared commits counted here, the most recent 3 are \u006078973e84\u0060 feat: add Russian UI locale (#341); \u0060ee9559e0\u0060 Add files via upload; \u006071f6a97a\u0060 Add files via upload \u2014 run \u0060git show\u0060 on any of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a4595365261d1ae86566787cb533669a230e56f951708e1c440358de1d27a3c"}},{"ruleId":"D36","level":"note","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"ace515990e7ee0f17b5c17e44dd168a5bdecf90804a3a3dd845cf05540978013"},"taxa":[{"id":"CICD-SEC-3","toolComponent":{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35"}}]},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.html"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5d4f0ff1234ead2a7b1ac603c1f846348a060ba39ee91ed3d5458aeb7e837c1"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/api-docs.js"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"1afbfd0d4510acb4ff1995695fedcf3a1bf4a8239246763f6b33e955cad20efd"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/api-docs.js"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"466ca2eb0527c1b1257b8b34330514e60642f20906a1590318c740e29f6d8b11"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/attack-chain-context.js"},"region":{"startLine":96}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94f63b639644c5e56fd7ecc26956436cd2a83be661a2ffb8c118ecc5e8082fa"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":391}}}],"partialFingerprints":{"codehealthFindingId/v1":"2885fca5e5740238814e3ce401f7fef3d8d845415ea68072d0a376f0aadbecc3"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":392}}}],"partialFingerprints":{"codehealthFindingId/v1":"05dd2f41a74b80b89fa3a2d356d2840c9b546454c5dfdea5516782038804923e"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":858}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6cc253332e7a6dbb7106dcacc84879bb82966b37890fcd71aa01e4ac2b357b0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5cd363cc3d55a840c7106fb5126600ad093614e99431df75dff88283ed1ce3"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a7948bbac38ee823c74aff4c4b8a5dac0d216461d4b2e9340f5cc3356ffaf9"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1042}}}],"partialFingerprints":{"codehealthFindingId/v1":"0633d2b2da7d0d6d66a7b77246da0d90c7f4189b91ec13c35190ae2e1f6aa0ad"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ac02abf883a0c4768483b0e6596362c9194afa7f72ccea55da437e79c53f57a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1052}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a7019973c58c2923b99dacca4f1038adffc037b421569efd2e76baa26de9655"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1053}}}],"partialFingerprints":{"codehealthFindingId/v1":"657181316109ba1f9f217b21a2471b2602d0562e5bc757684d5a64f22585b2e2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1057}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9465f9268f5c8a89a9fde7988ebb7f6a78fd56c28850e6887fe0b7aa4518953"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1058}}}],"partialFingerprints":{"codehealthFindingId/v1":"f23510097af4ef1baf46b9d24b6300d8ed8d13b80760d48364c0906931cbeab2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1062}}}],"partialFingerprints":{"codehealthFindingId/v1":"65ff1f22670b597846d32805ba8c7ea7c93ed3f96e7db2b3e90ede2bf6b7b7f7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1063}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a12cfb8b59d634a0a8baec5102d0962764ec759f8ca6a69ea4d865b60333dfe"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1067}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ea3688e70a47d55a3b9d742390dec6e90e315826185a683601970ecf8dfa686"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"613a924d8dd5a3beae48781d5a2d588e5f9aaedc769f35d316fa481265554046"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1073}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7f21d4210b96e829bc53e0b3a1227f29577edeffbbea9559449b0ea646ac5c0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1074}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cee90f62b5fd7b5055387b2105b5e3ad56a635f3c09a9fa836d8ca763fcfec2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec91469f63c21551f03c7bb3d0b2b39d0c7972fdaf0d0350ef6c1d9380215772"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ce63a95f80ba023c20773e00d387ce85895d574bd81ba6e747b7a1c46fc2bb"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1286}}}],"partialFingerprints":{"codehealthFindingId/v1":"78e8d93acbfb061548d414105649b7b8bb47d681635ebef9fcc754b6601f5c29"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1287}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f9940f55836f20c2a0b16deeb93cddc8aa6788161bc616e0369c6df2b8ae76"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1290}}}],"partialFingerprints":{"codehealthFindingId/v1":"423e26c12341d948906e7ca6a0f2abceef1583ab04c43407a0352154cea6bd06"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1291}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fcb7e05725c1510f26b529bc5b114b4e4b9e8565d115fd8dcd2a3928b2262f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"f903443e94137177b9cfeaed67c2af878940d7c92356e9b1073332e5005969c1"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1296}}}],"partialFingerprints":{"codehealthFindingId/v1":"f498412faa350e8fea9bb54f8138e17fd1d43c22e2019072104f1f0d1fbc5a8e"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1299}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0c1fe04c043a32319e6b39043b12b865b98707c255d679b19b062b15e6680b2"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1300}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef2acaa7ddaa74d4ea6a115b7778be18f3f158ec8e64be76c69c6ab1d46c5151"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1304}}}],"partialFingerprints":{"codehealthFindingId/v1":"a37274945d71eeca8c4bcb9da564fc83087e3695c8144d688ba1a4a6f237ce86"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1306}}}],"partialFingerprints":{"codehealthFindingId/v1":"f086008bbefb561b463f1a5609e1a5758c6bc3f7e9ad0a0410bea6b2c78aefca"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1310}}}],"partialFingerprints":{"codehealthFindingId/v1":"70ca25f96e9b3a001b52bf5a1d83906dd4d980181e74be671c6375fbd9dc05ef"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1311}}}],"partialFingerprints":{"codehealthFindingId/v1":"39bcd7d89e0db977f7c7bab2374e591c6107edbd96786be1a7ce28d2e17129f7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1315}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4b6356799a60d640d7f4d143862f4f5793f01136cb43da9f51ada3e68239a1c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bbc3bad4a35a646af50c42ff1c862bc77ac281e9b6f219042a2725c71907e96"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1411}}}],"partialFingerprints":{"codehealthFindingId/v1":"638669069263a4c6dc2ee421dc35378faf5ecf2f69bc91bb98c77335326382a3"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1413}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2b539cadf89756af19f6c6f2112e8e35141ff943065447eeca1981e53ffb065"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1808}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c31ef37b4cf6cfc320f67f2e38f5387b17b23b61d2220a0789e50d2acd1629"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1822}}}],"partialFingerprints":{"codehealthFindingId/v1":"944a70accdeaf6386cbfe155999a7ea353afc017af9b5c3a4114eb185447dc70"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4495}}}],"partialFingerprints":{"codehealthFindingId/v1":"f02102df12f589885a82daf086cb0d00acde931e9311b8aea2774b198ed5230a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4496}}}],"partialFingerprints":{"codehealthFindingId/v1":"56b8ba2842adb948da950766a714a106ad7836d6bb2d45af97c242c2bbcb9490"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4499}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3d0d9578107ea4c907fb99877eb5c8db17ba9dc7930043ef62030e78d933461"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4500}}}],"partialFingerprints":{"codehealthFindingId/v1":"c87f835a1db94e7252fba376b108626ebacb079a43600ceb204fa237f3f212d6"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4504}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fa85b0ed2566309200d6d36334b358520ca62cbf6bdc4f6af25202e533a708"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4505}}}],"partialFingerprints":{"codehealthFindingId/v1":"96ffc8b75677ac48e23f0428059fca4b204da4f80498c7ab252403ed57a6511f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4510}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c8b61b273137d7ec806249767bea001cc9c6c41b40271bff0a8c620ed9c6a8f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4511}}}],"partialFingerprints":{"codehealthFindingId/v1":"46a869c42ed650e90b88aac116bbc37dcfa39e488690548ef1d96dfb6de3b455"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4514}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bf2ec1083f98c9885e688c0290f0636336e741b78705fdec11912cc5ad08f4d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4515}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d49b43f14394fa7d22a83f812772d37ce0cf861576f013482a6a74f0871b197"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4519}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f3664f528652b265add5a939deb76e7cd662ac2e1b8970466bd4c79869e910"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4520}}}],"partialFingerprints":{"codehealthFindingId/v1":"b73ad2673ce4e669e9d44a749463463a4899a13ad491e5db2c1a4f817df9c34b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"218d91755ccad2772a9e1c268d5423c245ccfe4467fe144330e9a47d581d876c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f0fb53e72dc827f183411c1753e65d26f1e9b218037b4293ef6f3c7ecda8a30"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab7d46434f4de242a883b9e230798eb0f6a941f0950b781c4ce34926d8b9278"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9170}}}],"partialFingerprints":{"codehealthFindingId/v1":"398621279020436f182935693fdff762ce659e7400a11265371f17a1b8f8ecec"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9369}}}],"partialFingerprints":{"codehealthFindingId/v1":"580533496979d3dd72a51fd2088263419d19121baf9b534fdca2aae7a4f9f191"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9379}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e09c312c44418bd7fccd765a8507a2a297cefeb4f0dcabf784f507062b47c8a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9441}}}],"partialFingerprints":{"codehealthFindingId/v1":"6af093210653ff945ef751b6efe70e4c5b9c1319267744740962a6b86b21bd77"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9451}}}],"partialFingerprints":{"codehealthFindingId/v1":"dde2c5fb538b248c61d96c570ae40bbad6c1706aa953e9f4ba4dcbbb1edd10bd"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10998}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8dc57c53d73af59ccbe0629d6ef0a05c1bd4ca37ed7c846b2907732e38218b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ffe1685da597dcf759a3c2f5919c6eb5b3401b84d90fa85da27a6149e8b44b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"814665891ceb30bbf875a84c04b679d4f5f6b0f7ce8920c858e04e921f1cb046"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ab64ec45032265e7eef67f38d7125a057b6be81b5e258e40403da33a2c1dcc3"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":844}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a37a3cf70c385969b2a8c6fdd0f43bcf5ab500191e96a2ea2980d4c09ad9ed"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1423}}}],"partialFingerprints":{"codehealthFindingId/v1":"31571f160844b25fc666454373e69df9b18a2257034f5568deaa16ffa3efd708"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"d29e5f0e1e145ecf18962fa22a3df579246d1281272b9f2cf68dd68b102490e7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"4989002687f5ee3907138d194a42139ea444090a9293c709360f1cc9e907b6d9"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":931}}}],"partialFingerprints":{"codehealthFindingId/v1":"a96b3ccfdb6c7c882b8f3e9ff2c2a13fad5176fccb5917352beb9c9ac05f4ead"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9151}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1a701da87be8f7171472582a46891b1bbe1321eded7bce70501d2ce8194f9b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7502}}}],"partialFingerprints":{"codehealthFindingId/v1":"b04580d6bbd030b20dd10db023d5f9b87a8ecdc32591826d0f0a1706a7103645"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7512}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97e07133f915757f50d1ee470a8d4ac55994df84c80670a496baf307a5a49a4"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2928}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc21649fd97c4b5febc96ad0d035a6e8836ad4fb6cf747bc2ffee822e6cd2957"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"f592b5e22af183bf5c80d6b78acaf119b755beab12093c65e9cd4404cc675e72"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":177}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ac937c400b94e74577b48d05c1bfc92bf9a50dc400b11b74844fdd24d7955a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f6f0aeaf8e03cbf243dcd83a20d407ccc04508d246d01282b9bbefe7d950bad"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"11eaf3c0cb7744d2b10c04258e8bc78a4a9330bd6a768098b58e7d97d30749f0"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff20ecf3a3db0c0aa61b8acf0c0c8b3fd64ec52ca7340c3f1276e914bb0d409a"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2495}}}],"partialFingerprints":{"codehealthFindingId/v1":"e520d7186b850f40075b51f8101e45e025325da7dd62508b4167105cfb9cf269"}},{"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":"web/static/js/tasks.js"},"region":{"startLine":2239}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8eddb9d211a4ad2bdbd4e78c84d181e77af41a105873f43b78352174b8c3b69"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2531}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fbc91d0d320f8af0070ec945bdf7ce6953c8e094cad5d81083281a3d9049096"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2594}}}],"partialFingerprints":{"codehealthFindingId/v1":"6f58a40c826ab0c917a3e250fec62819f7072f8bc85cd732858cdf94678816b8"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"3527168f76a972f0da275cb456d027320c54459e60943818b2c5881d305daab7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2730}}}],"partialFingerprints":{"codehealthFindingId/v1":"95b5d5871d80102ffe8d6d5b8aa780f14663951f73b71462b957101d54f079fb"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2821}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae7e575b8afbfaa7675d30e65fa629d92960699171313a828959e09511a90fe6"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2825}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0f67829f696cddc2b55692a9d9312c2bc61643864f075cce26a473f69f044c7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1465}}}],"partialFingerprints":{"codehealthFindingId/v1":"65e17b588e302e5fa61c3e85d82fd8893ec9a3f14c54dc1786e1e7cd9c03fd8d"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1475}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9f0efaf7d3ebcfc901fdfab803c5cd3fb98cea50ee8e45a1eda3f544af9a43e"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":881}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e2f38b9d219ddc9dde940a6dfc02a8e63f555c1b28e26c25fbcb85f546c23c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2508}}}],"partialFingerprints":{"codehealthFindingId/v1":"9305324c52e8e32c7066b801cf2f68dd1deadc5c5648c5c020da43c5eec71b1a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2595}}}],"partialFingerprints":{"codehealthFindingId/v1":"6003c8910fc380174363f5fcb52f608c4ba78a4e651285a96f4da9297e526942"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2605}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7039536fbaa6493db3c84d67cc88319607e3b3caee8e9a2bd4ea968a88d4194"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2619}}}],"partialFingerprints":{"codehealthFindingId/v1":"2599ccb16cfd0f5fb08bc13724764db57192f7cbf7873bd0a24184c504ac23d1"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4453}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0dda26a470ae580ccffcd02668c0ec741cdaa17eefccdeb03747b349fddb37f"}},{"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":"web/static/js/webshell.js"},"region":{"startLine":4883}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b4c55504c3d6fb654186737756eae535c6965defd1470a04e3c37fe6f76e45"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"31dcbd459b0142df79aa044cfb95736666c21e0c4b9909f802b09d994b02a814"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"79a1d92523f7a242cdab4e7b630bea0350de3de18fb58e826ad49525fdeccf73"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1078}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf194dcadef9f34fc4b3e39aa02d885f9cbb22db63465ff02dd8d394bd857d43"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1079}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd4963efc856f32b41dc8b3e11cbe2437ae472c211fcc16a3289d58e0c15368"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"758d3c3877ff28f9b7bab55fcee015c732cbefa18b3c8937ea70ba314a16efda"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1159}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9e685954b6775283111dbeca80cc84a99b452b59c61b5bac1bb27ab54f3ff6c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":484}}}],"partialFingerprints":{"codehealthFindingId/v1":"582ed329d31541ec247464da5fa623811b2527715c42af806a678a2007a242ea"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cbutton\u003E with no accessible text: A button with no text and no aria-label has no accessible name. Add visible text or an aria-label (an icon-only button still needs one)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"a491fae08665a05897503b1da32a20f1f171b46cc9beaf38aac17e04c73efe98"}},{"ruleId":"AC2","level":"error","message":{"text":"Custom control with no accessible name on \u003Cdiv\u003E: This \u003Cdiv\u003E carries a click handler, which makes it a control, but it has no text, aria-label or labelled child (the icon-only case), so assistive tech has no name to announce for it. Note that switching it to \u003Cbutton type=\u0022button\u0022\u003E \u2014 the right fix for its keyboard operability \u2014 does not give it a name either: an icon-only button still needs one. Add visible text or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"1996df73435257831fd3f3c6db0f88d26b0bdf670173a62177cf7375c03a769c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Ctextarea\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"a10e2c936229a9af8d8efa4e1430a88ca49077c6127630c25c731d727f8809fc"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":1748}}}],"partialFingerprints":{"codehealthFindingId/v1":"186e95b025fbe5d46c7a9a8c971ecaac273bc9e979f6904bddf63cc3a9c1059d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":1803}}}],"partialFingerprints":{"codehealthFindingId/v1":"19bff1b6abffe1c07f0cc36a577fe84165c9a6870b8ff5fce308ec46875cd6aa"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":1972}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a08cfb7d1c160e7a2350c87c50bc2723479fbe4ee81a882ce88a3919ef4e39e"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":1973}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a56c01796e92831f59282ec3e342f4a298222cfb1b0c37a29d9b659f2376ff7"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ad41575a8f4636ea2c5e605aa3ab783cb17c1ff8fcd8668f70dc625a1c608ae"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2003}}}],"partialFingerprints":{"codehealthFindingId/v1":"30962824245cdc385c1b12de53a198301ffd6e0db73e8bb209c9e886744a66f5"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2346}}}],"partialFingerprints":{"codehealthFindingId/v1":"7508a1548b7e6ef0db4d56fce9074262fc660e483e35eaeb5955e22b24ce3a2f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2897}}}],"partialFingerprints":{"codehealthFindingId/v1":"c811101df6e48d93e2c22d04c18729adb29a2a18b3a14706f7824901f5cdff9c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3156}}}],"partialFingerprints":{"codehealthFindingId/v1":"937377afc23800df08820019f11f520ddd22e75406daed2397246618303c145a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3157}}}],"partialFingerprints":{"codehealthFindingId/v1":"182ae506f2861e97745d24d332e866fe19b490e56977ef40de3b0a5f82860b8a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b63eeaed43a1038278cb04aa1ce8049c7da9219440333fa8c19840f5e4fda21"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3161}}}],"partialFingerprints":{"codehealthFindingId/v1":"70d0e84a061dfa1d9226b09e72b604418e84375715ecd56d342969d0bfa7af94"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3164}}}],"partialFingerprints":{"codehealthFindingId/v1":"f5a1d0e829760a98ad1b7030c77678da92326a8504960570eb9a3981ed80502d"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3165}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fe9b914d077c75d52c05c0ac21b6e9709960f5f39247a065305f894a12d83f9"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3179}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dd90b5c5bbe8d3d8297f4ef21627f9f473b9187b8573f5e95d074ed9e989d3a"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3180}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3f5c543d6eae5d59d742a897a835ddac6ef035c9df5373c0d32a3f74474739f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3184}}}],"partialFingerprints":{"codehealthFindingId/v1":"37fa8e44a61b3b3f86c3faf389977d2e4b303a367ce7f1221f4cdb6662639ffd"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3185}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d0cf6a63ee5208cba3c6e8268af197657747c50e4d76cbed4d43373990ad53"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3189}}}],"partialFingerprints":{"codehealthFindingId/v1":"0885c19a01d4178a452f2bdc24a5204a78b323ab092022bfa3351bf764b09bf1"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3190}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65308c554f4e15f90c3479f0b110c6d6c99af4905616a792697e0bd34f43759"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3197}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee4a94484739c1076d5976f4de4b479ad93c23a0838cb2aa3a34f91eb0b20296"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3198}}}],"partialFingerprints":{"codehealthFindingId/v1":"28897d838af2dfa1257f669cc52c5c5be2059d5ee563069194307a21ec670138"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3456}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1addd0e144ddaee25331471057ca5bcfc60da179e1298ac5b29d1603c28872"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3534}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a90f12c91da2c9434d1895e6f0f378c23a54c3003742647b016ae513672b637"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5322}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8c7a782c6e832bd9287493bab39a3044373a37328b70aa6905280475281a09c"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5722}}}],"partialFingerprints":{"codehealthFindingId/v1":"f870cfbdb9ba31512267510b1d697d821925e3888d48280919a10c3565c91af6"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5724}}}],"partialFingerprints":{"codehealthFindingId/v1":"a462270990872804bbe023dfb492884c0a1a9b751b17069a33320dca1cd49034"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cselect\u003E without a programmatic label: This control has no associated label. Add a \u003Clabel for\u003E / wrapping \u003Clabel\u003E / aria-label / aria-labelledby so assistive tech can name it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5731}}}],"partialFingerprints":{"codehealthFindingId/v1":"086e63f10f920b2147a71432c1d99e7dbc29915bdc0a5da15c41a8b675f09395"}},{"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":"web/templates/index.html"},"region":{"startLine":5817}}}],"partialFingerprints":{"codehealthFindingId/v1":"099ad1cde3f3791967b398a1a996f5dc20af485e93dc9c726313d422e4524cf8"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6196}}}],"partialFingerprints":{"codehealthFindingId/v1":"14b6f2d1ec9f4680f1fe5b010d58b7809de46a4d02908781927879b91e9074ec"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6714}}}],"partialFingerprints":{"codehealthFindingId/v1":"7535bf3479e2f277cf080d22299f239b3f9f6734dff16553459df9ca6356868f"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6734}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e2456d31e4307b36399a904238f904cd16340edafb4621343b32008099ac1b"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6796}}}],"partialFingerprints":{"codehealthFindingId/v1":"b464493e09cd7e50921524420b9234d43d9b072e7c3889a2a30decc898dd4041"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Clabel\u003E that labels no control: This \u003Clabel\u003E has no for and wraps no form control, so it names nothing: assistive tech never announces it, and clicking the caption focuses no field. Note that an id on the label is not an association \u2014 it is the TARGET of one, so a control still has to point at it. Give the label for=\u0022\u003Cthe control\u0027s id\u003E\u0022, move the control inside the label, or point the control\u0027s aria-labelledby at this label\u0027s id."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6839}}}],"partialFingerprints":{"codehealthFindingId/v1":"acecc526c49b09cfd3ee3f03da94a0303813a4c55f7370ca2eb786270db0b1a0"}},{"ruleId":"AC2","level":"error","message":{"text":"\u003Cinput\u003E without a programmatic label: This control has only a placeholder \u2014 a placeholder is not a label (it vanishes on input and many AT ignore it). Add a \u003Clabel for\u003E, a wrapping \u003Clabel\u003E, or aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6841}}}],"partialFingerprints":{"codehealthFindingId/v1":"52c6ad365fc5da9f2bed15d71e872aa04363fdd3174ef18a329692e2e003ac92"}},{"ruleId":"AC3","level":"error","message":{"text":"Document without a \u003Ctitle\u003E: A page with no \u003Ctitle\u003E gives no name in the tab, history or screen-reader page list. Add a descriptive \u003Ctitle\u003E in \u003Chead\u003E."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/popup/popup.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a0757f0d252c4e13070fc24f97a79b0ca9d1bd06a543012c23a07379d235ff"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/popup/popup.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e18c8b573ef91ac4f110d91dc40f8ee0c8e3127703407c18a42ef8ed9d8ff88"}},{"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":"web/templates/api-docs.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dfeac65122166b8ea208f34ce9ca030bb027990cdc9a8baed672c9986d1855a"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h1 to h3: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":1059}}}],"partialFingerprints":{"codehealthFindingId/v1":"4eb55bc5d8a6e85e502d01d31cf7c793d46b60cb4dc085a66beb30b9b988021f"}},{"ruleId":"AC3","level":"warning","message":{"text":"More than one main landmark: A document must expose only one main landmark. Multiple visible \u003Cmain\u003E (or role=\u0022main\u0022) elements confuse the landmark map and the \u0022skip to content\u0022 target. Keep one; remove or hide the rest."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cc0c31e3714b141d09a486967b5a5ae08f7b2deb78d2051c3bdd61f1e20956f"}},{"ruleId":"AC3","level":"warning","message":{"text":"Multiple navigation landmarks without distinguishing labels: With more than one navigation landmark, each needs an aria-label/aria-labelledby (e.g. \u0022Primary\u0022, \u0022Footer\u0022) so assistive tech can tell them apart. At least one nav here is unlabelled."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"f785835f57b63bb3dba9342b8c01f4fde26f65050318a39c5fca55d4612e21d7"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h4 to h6: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3738}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf59955b117e3a7a6b138ddcb9c6ed4028b10774ed9009069f16395c40368061"}},{"ruleId":"AC3","level":"warning","message":{"text":"Heading level jumps from h2 to h4: Skipping heading levels breaks the document outline assistive tech relies on. Don\u0027t jump levels \u2014 increase by at most one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":4996}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b9858e4ea7d61700feaac8b8832ecabff2adc387dfff72ead163beab4a3c4c"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch2\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6445}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6bc8221cefc520f26a07f08fb22e9856fbd4adc21a88c5fad2714596226b18f"}},{"ruleId":"AC3","level":"warning","message":{"text":"Empty \u003Ch2\u003E heading: An empty heading appears in the document outline announced with no text. Give the heading text, or remove it if it\u0027s decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6453}}}],"partialFingerprints":{"codehealthFindingId/v1":"05929411b98b7400e52eb110a2d8eab956dd1f6dd7663cb816f327bdcc8cb681"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cli\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":322}}}],"partialFingerprints":{"codehealthFindingId/v1":"08987388feeb5b7c67d0b2bffb485ddd99c0d8e1959d38dd9815e931d7de7a68"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cli\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7bc1a120cda483dd4ef53d691a0ea0e10fdcf481ac29512dc6f8b57b86e5481"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022option\u0022 that no keyboard user can reach: This \u003Cli\u003E announces itself as a role=\u0022option\u0022 and binds a click, but nothing can put focus on it: no tabindex=\u00220\u0022 in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabindex=\u00220\u0022=\u00220\u0022 and an Enter/Space key handler, or make it a native \u003Cbutton\u003E. If a parent widget owns the keyboard model, that parent must move focus onto the active role=\u0022option\u0022 or point aria-activedescendant at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":812}}}],"partialFingerprints":{"codehealthFindingId/v1":"a74cfaf391fd0049435e766014b4e250ec601dba3643db5f2cf1311df55299ad"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit-datetime-picker.js"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b467c4b99974d2ee67026efe93d78cbc63dca5c8b1f14fbec4937a6fd9900b1"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1b6b9dd1a8cc9e15792d03d750ebbb62d4b81820afdd031f586a7b3d1f7789c"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5974}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c23efdb5100039c1cad92d428d0e6badd96fba2d2693bfe3099827ce8f77281"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9223}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d2bce9dcb9cb9e6f0dc76bc7035ebe5847726f755694620b1a4e10c49aed6e3"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10470}}}],"partialFingerprints":{"codehealthFindingId/v1":"a66a7f8213afdcd5ebb08e2e6d4bb5a2ea43318e149c6dd4fb4119382514db0f"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"3303233b7c1d54c94357ea73e8a08ed9678ff0bfe037695062e20cbd5f934b7d"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Ccode\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":1448}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abebf6412b00e594ad2c754332b55a3255bbe77cfcb9d189e3f583c1fab6bec"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Ccode\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":1454}}}],"partialFingerprints":{"codehealthFindingId/v1":"6257fc7f90d42c6012cc643d70116defa679b556a702a104b173cbe4cd8b1479"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":1833}}}],"partialFingerprints":{"codehealthFindingId/v1":"04d637875d376f6f231c822a98e351cdecbbf60e5a424a5e507dfae358d38953"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"226f9832c5605482e0ddf7f27943b40dbb161b3961c2e2f76e5786a675027fa7"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022button\u0022 that no keyboard user can reach: This \u003Cdiv\u003E announces itself as a role=\u0022button\u0022 and binds a click, but nothing can put focus on it: no tabindex=\u00220\u0022 in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabindex=\u00220\u0022=\u00220\u0022 and an Enter/Space key handler, or make it a native \u003Cbutton\u003E. If a parent widget owns the keyboard model, that parent must move focus onto the active role=\u0022button\u0022 or point aria-activedescendant at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7147}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79f91a84fc40faaae88cf15708feaead405534d871ee17b3488365baa4c0032"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2901}}}],"partialFingerprints":{"codehealthFindingId/v1":"480d240be19dd320a86fb4fba96b9e7351e5360adaa4914df0c58ea327680d25"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but focus is moved into it, but nothing keeps it there: Tab walks out to the page behind, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/rbac.js"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"281b8452bf018867469039ab037067145f9e79688ede1618c0f817dea42c11ea"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":1445}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a6f2a9305daa195c9b3b843f1dddee29575e0fbed04c1242c5a108c971679c2"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"783f4197b8c96de361c9d629d98f1437e33d889160d33b873ccb85dba6deb65e"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c6fef95d949a8ec45f1c5f38504abc6182dcc502697210394639cd7c232319a"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1898}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb72c43cd1112153d2d28745d5eaed018e45b0ab13972a482e7371bb6171e846"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1899}}}],"partialFingerprints":{"codehealthFindingId/v1":"154686905932c3adc38add43f192a6b9be5c7717ad8de0a58c5503ae81fbb1b7"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1900}}}],"partialFingerprints":{"codehealthFindingId/v1":"5861e98b6797406707b4e3a3c9af625716695441cd1d2955d31f74230498b8bf"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"24844411b7f56256d6973d98ca40055b1d83d69bee4a8de159cf595fd9d5ee0d"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1903}}}],"partialFingerprints":{"codehealthFindingId/v1":"dab662234c7db1b23622e6a208598113644369e8ea23bf0484887a96c4e25ff2"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element isn\u0027t keyboard-operable. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022 \u002B a key handler."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2350}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7f9153890feb9c8d1c5928b0f209dd94ce2ef3dc3e3479958b19e743b64a9e"}},{"ruleId":"AC4","level":"error","message":{"text":"Clickable role=\u0022button\u0022 that no keyboard user can reach: This \u003Cdiv\u003E announces itself as a role=\u0022button\u0022 and binds a click, but nothing can put focus on it: no tabindex=\u00220\u0022 in any spelling, no key handler, and nothing in this file moves focus or sets aria-activedescendant. The role tells assistive tech what the control IS; it does not make the control reachable, so a keyboard user cannot operate it at all (WCAG 2.1.1). Give it tabindex=\u00220\u0022=\u00220\u0022 and an Enter/Space key handler, or make it a native \u003Cbutton\u003E. If a parent widget owns the keyboard model, that parent must move focus onto the active role=\u0022button\u0022 or point aria-activedescendant at it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"4577f6d7804932ae1c73774f3aebad15732817ae6e1cb3a1f5a2272597cf9ee8"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":597}}}],"partialFingerprints":{"codehealthFindingId/v1":"41723b01b07ccce347eb63928773fdab225aff61a39e4e12d1da912a58727fc3"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"12b4f924485d1dc095a4601f3291ac1160220ab82b106767177e9c90ed24c288"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":820}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7e75dd795a120a330f4de992b87138f34ff457b3652f975ac5ad05a73a9b792"}},{"ruleId":"AC4","level":"warning","message":{"text":"Anchor without href: An \u003Ca\u003E with no href, role or tabindex isn\u0027t focusable or keyboard-activatable. Give it a real href, or use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":850}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b6ad8aa1a721f080b7ec78e878cba6a1dcab0f255ecac829ad79e6aea19804"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":1814}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ea1cb7df904d663d373c5e0ae51a856928e22d4fa69482a66ae2851bdb9046"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7168201e85e6505bb8010a385a43db33f1f18a890a8d4cf2b49c148c916e0a60"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2194}}}],"partialFingerprints":{"codehealthFindingId/v1":"492848af4e26648c15b833d2ab829ad9b6b246677c97676d315f53b18abe7743"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cpre\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3168}}}],"partialFingerprints":{"codehealthFindingId/v1":"179a21b37b16bff508e8e282f042dc4554f4f076354b0bbeb199e900f24dcd28"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3634}}}],"partialFingerprints":{"codehealthFindingId/v1":"1264cc00a667b0902b6648ea5715deab363be17f79f72e6e930148b879421773"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3640}}}],"partialFingerprints":{"codehealthFindingId/v1":"71fc0c93856e8cc64024738ebe4d10bdd2887ecf966c98b8422754f53a733dba"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3643}}}],"partialFingerprints":{"codehealthFindingId/v1":"195ef1037d8a3c7ebdf9fe23af0b1617ee58702e0b988be66d7a0857cdb2e451"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3646}}}],"partialFingerprints":{"codehealthFindingId/v1":"c594fb6214037c3b9e6e91bcaa543a2fd636e02695a8f2925d8663e3f2aa8020"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3649}}}],"partialFingerprints":{"codehealthFindingId/v1":"74185b67c5b759c3becb41a38031035cfe69f1c0c2872c71e5447b7eb653f953"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3652}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ee715c9eb92a1d9e2b16c1ad7b1133aaf666749f9f11c5e8cdf669a2b399844"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3655}}}],"partialFingerprints":{"codehealthFindingId/v1":"16a279e6da17d51032380c5723ab1516c2b14691dae033c885f06f10d1ae86fd"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3658}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c1904ce5f1c29bbe48f2eeff7c64768ec9f86726685b1c25da37effa7945ca3"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3661}}}],"partialFingerprints":{"codehealthFindingId/v1":"945e8707ab5cbf40521bdc935793bc868a52886b781835eef283c5197165e9e6"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3664}}}],"partialFingerprints":{"codehealthFindingId/v1":"010c4f25e3cfd90a050c186d99ff55ce57a77270b18170aea1024a1ee8c84b7e"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cdiv\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3667}}}],"partialFingerprints":{"codehealthFindingId/v1":"c714ff449313f1092d8527dbbc2964c12c9c16379b6368056cb7e876c4d849cf"}},{"ruleId":"AC4","level":"warning","message":{"text":"Link used as a button (placeholder href): An \u003Ca href=\u0022#\u0022\u003E (or javascript:) with a click handler is a button dressed as a link \u2014 it announces the wrong role and stops working without JS. Use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3773}}}],"partialFingerprints":{"codehealthFindingId/v1":"62bfd412a1e84fe478e2d40d434d619db914128eb39590bb166c73f4325763ff"}},{"ruleId":"AC4","level":"warning","message":{"text":"Link used as a button (placeholder href): An \u003Ca href=\u0022#\u0022\u003E (or javascript:) with a click handler is a button dressed as a link \u2014 it announces the wrong role and stops working without JS. Use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3803}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27224ec9a23eed6d24ca6d1bf3c8aaeefc6b2f7c173a0a31adb1ac6414c9df4"}},{"ruleId":"AC4","level":"warning","message":{"text":"Link used as a button (placeholder href): An \u003Ca href=\u0022#\u0022\u003E (or javascript:) with a click handler is a button dressed as a link \u2014 it announces the wrong role and stops working without JS. Use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3910}}}],"partialFingerprints":{"codehealthFindingId/v1":"00dcc37fee0589707320588647d3117981b4f689b36aa703a09ad49f7673a97e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Link used as a button (placeholder href): An \u003Ca href=\u0022#\u0022\u003E (or javascript:) with a click handler is a button dressed as a link \u2014 it announces the wrong role and stops working without JS. Use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":3954}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace1a3781c4782d47b1c6498a4a895605c5115390e0faa51c3b089df4c50bba3"}},{"ruleId":"AC4","level":"warning","message":{"text":"Link used as a button (placeholder href): An \u003Ca href=\u0022#\u0022\u003E (or javascript:) with a click handler is a button dressed as a link \u2014 it announces the wrong role and stops working without JS. Use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":4100}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8a19a35ef7f96750be1096e21b7558dd1af11cbce11640fdf86c925ca723e5"}},{"ruleId":"AC4","level":"warning","message":{"text":"Link used as a button (placeholder href): An \u003Ca href=\u0022#\u0022\u003E (or javascript:) with a click handler is a button dressed as a link \u2014 it announces the wrong role and stops working without JS. Use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":4108}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b905086f67ac3503872e27e620a4801ad3ebf5516445343a5cd7a9d2884862b"}},{"ruleId":"AC4","level":"warning","message":{"text":"Link used as a button (placeholder href): An \u003Ca href=\u0022#\u0022\u003E (or javascript:) with a click handler is a button dressed as a link \u2014 it announces the wrong role and stops working without JS. Use a \u003Cbutton\u003E for an action."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":4274}}}],"partialFingerprints":{"codehealthFindingId/v1":"97c2d205d01112cdf1879d7b9a9b1affd43728c8b187fefd0fee8125fee801d3"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5015}}}],"partialFingerprints":{"codehealthFindingId/v1":"bfdfc1f7b2ca86dbc3220515d31610484b991115a74720cbdd11cd3fa720ad5a"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5519}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c20065167cef3ebab7a4ec436933e78741eb17784744dfd6e325d0623ea22d7"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5603}}}],"partialFingerprints":{"codehealthFindingId/v1":"69c498c89db8fa22d0eb027eacd9602a9b1b63b976c8e706c0e159dba1e59cf2"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5625}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e15c54ac5b846ee53d4468303c0c7838f45bfa55f5c9038c7f98651af3c129"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5646}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fd3f011d9c84883efa1d9be68eca92298cb26f78a781e9e7d9652c20f18251e"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5711}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa01ec49e65775daa3d35e44ebaa074b5487d800588e11d9f4cbde1f77365b1"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5813}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9aac091483ab637b4f1bb8b65545ec05d15d019c39312fa4e60fbd9c8c4d8bb"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5830}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2289b4252a72353c1141abb8434b9a14fea081e7430b1aa690ade36733cf8de"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5858}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e70599e0ffce4c3ebe7bf452089e4cf50585947c8d378567c8d4ede664d30f6"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6113}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2873f94360c37fa2417961bbf6c087c022877b4fdd466cab4b35bd3d2f67b59"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6162}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fcd4a387bc99bc8e82e24a8ad96da849d47ea26fa2c36fb1fd593a26000820b"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6202}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd43cc725fd7bf5eb2f09455a0d0c11f819b9dbd750f612112096632744d105d"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6317}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f8b05136070d7a9ab7df74a2459ca77681a4db4325c40576640270ae4c0851e"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6426}}}],"partialFingerprints":{"codehealthFindingId/v1":"53140b87ca0c4b9cd42bad38ecf7bd10cfa4c72f9c1a205e81efb787199455cc"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6493}}}],"partialFingerprints":{"codehealthFindingId/v1":"7513d2b82acc1fc5aa09022a0b76575ebc70facb313d18b2456faa557e5a2ec8"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6589}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6ca851c6c466d3ca0e6823c1aec4ebc5814fdc20196a8be7dba4987d8fc09e2"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6665}}}],"partialFingerprints":{"codehealthFindingId/v1":"4795e5e8cfe44cf68b0ddb8624876ec905164725ab60fa8c337ec8b5bc0c9034"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6678}}}],"partialFingerprints":{"codehealthFindingId/v1":"467fd7da1a11c7a7224b207f6c072cef7a7588c08f8fe1c05fa7663098e0fc2f"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6772}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d4fc8a70677ffc87572ee3321f43c862bcf114d5cf8964365ec894d5ced23dc"}},{"ruleId":"AC4","level":"error","message":{"text":"Click handler on a non-interactive \u003Cspan\u003E: A click handler on a plain element with no role and no tabindex: even where another element\u0027s key handler can reach it, assistive tech can neither focus it nor announce what it is. Use a \u003Cbutton\u003E, or add role \u002B tabindex=\u00220\u0022."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6817}}}],"partialFingerprints":{"codehealthFindingId/v1":"4510188bcac1611ec194d9d43fc324dd8d78f526495a7ced14a7038b2b268481"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":1328}}}],"partialFingerprints":{"codehealthFindingId/v1":"62c0de7f687b5ca097da1c3130232a2dd94db4e6e21c1f85d343395206202550"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":1605}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9a70d13cc88bff389ef51711ecd6bf847efbd1df5a0d118a9ced15763622997"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2047}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf4fb060e56e831adeac09f042848593035265208fc1eed21f190634bf716b90"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2089}}}],"partialFingerprints":{"codehealthFindingId/v1":"c373f45b7ef930f35a08ac03e1418a39b0afa25debd3cd7a0a11de6ac6e90038"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2100}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b0793af7b9f2c348ab63cc3dbb2ba456fc279f25ed329adb931741661a6608e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2117}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec2672ddba7352d8f7f0672af37d72214e65f5e9bb889b23218c3d44fa9f513f"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2131}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d057fd32384746f8bb97bf461434f4a6d1e642e9a32a791e2812fe047176bd"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2192}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0b464be768b69bf890243620c744c20d2114ce926291476d2988c1184278e38"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":2799}}}],"partialFingerprints":{"codehealthFindingId/v1":"87ac99cc3045493ee582a039b83a8bd9e0c03f6dea8bbeeac4a5ee85ad47f235"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":4880}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8d9b11d5e1b84200c6cd79e26e34ab5786757a723c0a0c0d0be76367533963"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":4926}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccf5f4c962d2782b5825839de34cb595e78c5f16c919ad4f240cf25e12bbb850"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5958}}}],"partialFingerprints":{"codehealthFindingId/v1":"3eeb07c4131ad46d87067806d926d096d42c8cd6916c4d1122d4d1104bb04a2c"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":5982}}}],"partialFingerprints":{"codehealthFindingId/v1":"0886a33da8e6ac7802ca3d982586d2adec2eebb2e071e16e56f1543f9411ab7d"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6016}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfbdeee72efa29c1ea05b9542f979e5fdb4f7269749240da9c865d2be7b4ebe9"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6091}}}],"partialFingerprints":{"codehealthFindingId/v1":"537c9b9fe2501290a4e60ea989ca232b9822a71ebec80e704adc8743ed5099da"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6442}}}],"partialFingerprints":{"codehealthFindingId/v1":"fecbc99944c694e6a5ab75de0961b2ea55620fb2349c5eb583fa9680f51e610e"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6451}}}],"partialFingerprints":{"codehealthFindingId/v1":"b709b52cf43a8f017b5df986fdbe93de468c9233ce89ecfdf3299143fa62f7e9"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6856}}}],"partialFingerprints":{"codehealthFindingId/v1":"0118f6914124e9b6278b3207eecd9160e9ebc57a0c8a7d061b1ee172d965c296"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6885}}}],"partialFingerprints":{"codehealthFindingId/v1":"a72e80b5b63edae1d32809ab1e86943df7919121ea527dd5b7e2023d1b5079df"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6963}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d80e318dd87f5ec29226e8ac09b74480222257d1b726b258b8c1513efa87bb6"}},{"ruleId":"AC4","level":"warning","message":{"text":"Modal dialog does not manage focus: This \u003Cdiv role=\u0022dialog\u0022\u003E is a modal dialog, but nothing moves focus into it when it opens and nothing keeps focus inside it while it is open, so a keyboard or screen-reader user keeps acting on the content behind it (WCAG 2.4.3). Use a native \u003Cdialog\u003E opened with showModal(), a dialog component that traps focus, or move focus to the dialog on open, trap Tab inside it (or make the page behind inert) and return focus to the control that opened it on close."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/index.html"},"region":{"startLine":6991}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4c6b73ece58286ac8ac1d51bcca8e4fa02ce84f4690b47560250b2c5fc7418"}},{"ruleId":"AC5","level":"error","message":{"text":"aria-expanded on a \u003Cspan\u003E with no role to carry it: A plain \u003Cspan\u003E has the implicit role \u0022generic\u0022, which supports no ARIA states, so this aria-expanded is dropped and assistive tech is never told the state at all. Put aria-expanded on the element that owns the behaviour (the button or control the user operates), or give this \u003Cspan\u003E a role that supports aria-expanded."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9660f0994b0b5f2dfb936ff89f74f3a36f44582fff87e9ab2959dd389a43d68"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair (4.0:1): The inline foreground/background colours fall below the 4.5:1 WCAG AA minimum for normal text. Darken/lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b249f76f5a60e81caec19c81c26a9308c493da81d77667ef760ab07b880afa9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.auth-info-body\u0060 moves (\u0060animation: slideDown 0.2s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"de74ba7dffe7fac028f098af6aa1cf7adf48b51894be7076e69fa8a3607a854a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.description-toggle-icon\u0060 moves (\u0060transition: transform 0.2s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"9338977a28c33a84cd7b66fe3ee1d1c2f71cd0c6a8b4a2f3d2b33bc318308826"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.api-description-detail\u0060 moves (\u0060animation: slideDown 0.2s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"53da3684cf7d7040f01473759bdfc1b6729ea702cbc0ec556431a0cf35a855f2"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.loading-spinner\u0060 moves (\u0060animation: spin 0.6s linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d705381be569923aba8fcdea5a48f6dfcb0ba4a953b599d9d5e20628557392"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.0:1): \u0060.api-method.post\u0060 sets color: white on background-color: #49cc90 \u2014 2.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":214}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae8230cf5b2d02841cf0093145de90d6f333a4aaa2ebdf086baa11095082eaf"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.3:1): \u0060.api-method.get\u0060 sets color: white on background-color: #61affe \u2014 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"e82a1f7ea1de89ac1ff37abf317088c3a045bfecf4a79e91892e4beb7ae90a6a"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.0:1): \u0060.api-method.put\u0060 sets color: white on background-color: #fca130 \u2014 2.0:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfe7d6590ffa8944fe4365b65e7c4f2e35adb4a77fc1704d424726367dff7c7e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.6:1): \u0060.api-method.delete\u0060 sets color: white on background-color: #f93e3e \u2014 3.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"763d3794e2c257cbaae5a406fbbbc8839f852cf27ec8de62ee9a634fe40a6fad"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (1.6:1): \u0060.api-test-btn.copy-curl\u0060 sets color: white on background-color: #ffc107 \u2014 1.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":713}}}],"partialFingerprints":{"codehealthFindingId/v1":"2dbeb5fad90a363ed924b6fb374b5bf5826f08f39b23dab3db350e3723d01497"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.8:1): \u0060.api-test-btn.clear-result\u0060 sets color: white on background-color: #ff6b6b \u2014 2.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/templates/api-docs.html"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3083d3fb49531645e06b4586ad24f618e7e4d3c42777eee5b66ba913480d1cc"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.5:1): \u0060.c2-listener-card-actions .btn-primary, .c2-payload-card .btn-primary, .c2-modal-footer .btn-primary\u0060 sets color: #fff on background-color: #60a5fa \u2014 2.5:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"6eed2ec1afa06a5912189458c4e3427a3250aea422741e4c02a7df8926f29fd9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.1:1): \u0060.c2-file-table th\u0060 sets color: #6b778a on background-color: #0c1220 \u2014 4.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":1773}}}],"partialFingerprints":{"codehealthFindingId/v1":"db7fd66ded6a6c6da2480f9d4dd9689e9dabf28317c57c363791bb197b2f326f"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.8:1): \u0060.c2-tasks-stat\u0060 sets color: #6b778a on background-color: #131a27 \u2014 3.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":2092}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfea48c29c13bbb68552157655a9cfea6ee2f5e66721185d3bfb04ffc37a3427"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.1:1): \u0060.c2-tasks-time-preset-btn\u0060 sets color: #6b778a on background-color: #0c1220 \u2014 4.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":2141}}}],"partialFingerprints":{"codehealthFindingId/v1":"25416a7b2c8285ba12642c88c7691b54116b9d9ad93ab2ba9a4fdcdd4669ac3b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.3:1): \u0060.c2-status-badge.queued\u0060 sets color: #64748b on background-color: #f1f5f9 \u2014 4.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":2442}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca25f7610fb1f6915d02af809c5103520e70bccc60655c03d551b2d0735772c3"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.3:1): \u0060.c2-status-badge.cancelled\u0060 sets color: #94a3b8 on background-color: #f1f5f9 \u2014 2.3:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":2447}}}],"partialFingerprints":{"codehealthFindingId/v1":"6225677f3d2b34b9c5e25c1b3a65807657516251da6ea6495ee52aa81be6b1bb"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.8:1): \u0060.c2-events-stat\u0060 sets color: #6b778a on background-color: #131a27 \u2014 3.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":2955}}}],"partialFingerprints":{"codehealthFindingId/v1":"d53e267155a9c6ee61ba14b698a2c4bdf79c614a35ee7df39ccba27502d798ff"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (4.1:1): \u0060.c2-events-time-preset-btn\u0060 sets color: #6b778a on background-color: #0c1220 \u2014 4.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":3004}}}],"partialFingerprints":{"codehealthFindingId/v1":"7522f1372c39ef5f011e24eece759c11f45b76edaca613f596c4f9789affb3c1"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.6:1): \u0060.btn--primary\u0060 sets color: #fff on background-color: #ea580c \u2014 3.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.css"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"0afc55bb09c2055c171d77a33996ed26390a99aa286fd4facf9f75f41a07b90b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.6:1): \u0060.tab.active\u0060 sets color: #ea580c on background-color: #ffffff \u2014 3.6:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.css"},"region":{"startLine":738}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8eb59a282c2729cd95c8058d226a41d738945272dda3c8a1ec8445279caa2a8"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (2.8:1): \u0060.pane-title\u0060 sets color: #6b7280 on background-color: #2a2f38 \u2014 2.8:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.css"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b73906e62be7232077be20d8e1c40c9df455c12cdcda94d43871fec4d3232b"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.tool-guard-page .tool-guard-rule-summary:focus-visible\u0060 sets the outline to none/0 and no visible :focus / :focus-visible style for that element replaces it in this stylesheet, so a keyboard user cannot see where focus is. Draw a focus ring (outline, box-shadow or border) under :focus-visible."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/tool-guard.css"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"afc0614ff72d722d2485ee8a46323fcbcbff99dcdb91a4805af1d8b87869f547"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.c2-form-select-caret\u0060 moves (\u0060transition: transform 0.15s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fed4002dbde1a32cc67e359325fa2cbb80e7d2deec20e549cef3a11ed12d9ef"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.c2-session-item\u0060 moves (\u0060transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, transform 0.15s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":1203}}}],"partialFingerprints":{"codehealthFindingId/v1":"e162e0230c9f7339085bd5c7819605299979adf46b6925baa29fe9fe72397613"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.c2-session-live-dot.active\u0060 moves (\u0060animation: c2-pulse-dot 2.2s ease-in-out infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":1275}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2171188a09e52c42fd973a3d73317554d7112527333e6b0752f774db0f0d824"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.c2-file-upload-progress-fill\u0060 moves (\u0060transition: width 0.2s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":1752}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b6c9ee97b427973faf8af2995b80f49c78de56063f02ccf79434d89dd52cca9"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.c2-modal\u0060 moves (\u0060animation: c2-slide-up 0.18s ease-out\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/c2.css"},"region":{"startLine":4098}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac3496839f9dd620abeb4e0adc4a79ba58c5e68837356024d2191d8c33ddb4a5"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.agent-plan-task-status--in_progress\u0060 moves (\u0060animation: agent-plan-spin 820ms linear infinite\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/chat-plan-progress.css"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"e67bb4d1a4704b2c27ea5a64d460bb84d91f5fe85afc361066d1ee199457d255"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060html body [data-ui-surface=\u0022drawer\u0022] \u003E :is(.modal-content, .projects-modal-dialog, .c2-modal)\u0060 moves (\u0060animation: app-panel-in .18s ease-out\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/design-system.css"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"95e25bbcad09501738e961b0934dfa9e2a43f54613e4bfa1be5594dce3616b1e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.m-tab\u0060 moves (\u0060transition: color 0.16s ease, transform 0.16s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/mobile.css"},"region":{"startLine":545}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7272488ddd5da0eb2363c9df5ef1e3f32f68949a8ce628fcc1b6ab7616dfb81"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.modal-content\u0060 moves (\u0060animation: m-sheet-up 0.26s var(--m-ease)\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/mobile.css"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"49db89878e873c1e2c12ac9c74ade75b85b7446df9fd4b4b7d6613b4bf9081ac"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.m-chat-bar-btn\u0060 moves (\u0060transition: transform 0.12s var(--m-ease), background 0.15s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/mobile.css"},"region":{"startLine":1285}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d70c7805ca1466077877524c2c78aa3307d40af7a003a3db86383f4aa77ce94"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.m-tab\u0060 moves (\u0060transition: transform 0.12s ease, background-color 0.12s ease, color 0.16s ease, opacity 0.12s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/css/mobile.css"},"region":{"startLine":3277}}}],"partialFingerprints":{"codehealthFindingId/v1":"4de209da5dc0820ad95dfb8ce8317500417e67e3dd10179688649026b3ed4c3e"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.btn\u0060 moves (\u0060transition: background 0.15s, border-color 0.15s, transform 0.1s, opacity 0.15s\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.css"},"region":{"startLine":351}}}],"partialFingerprints":{"codehealthFindingId/v1":"64dbd29808f4b3829d371f33d1a769624213824c99943f8b27b179c4312da1da"}},{"ruleId":"AC6","level":"warning","message":{"text":"Animation without a prefers-reduced-motion guard: \u0060.cs-select-caret\u0060 moves (\u0060transition: transform 0.15s ease\u0060) and nothing reads prefers-reduced-motion for it \u2014 no @media (prefers-reduced-motion) rule for this element, no reset this project loads \u2014 so a motion-sensitive user cannot turn it off (WCAG 2.3.3). Declare it under @media (prefers-reduced-motion: no-preference), or neutralise it under reduce."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.css"},"region":{"startLine":920}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe8d9a9edd7dad397341033d01ecb46a1d45b534ec3b158ea8cc48b4bad4110f"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): AgentHandler.executeOneBatchSubTask: \u0060AgentHandler.executeOneBatchSubTask\u0060 writes to the database AND publishes to the message bus in the same flow, with no outbox referenced in this path. These two writes aren\u0027t atomic \u2014 a crash between them either loses the message (DB committed, publish failed) or emits a phantom event (publish succeeded, DB rolled back). Use the transactional outbox pattern \u2014 write the message to an outbox table in the SAME transaction as the state change, and dispatch it from there afterwards \u2014 or your platform\u0027s equivalent (a broker transaction, or an outbox library from your own ecosystem)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_queue_executor.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc13eda65dd3dcb7933d5dac4204ccacdb1368eff17cd3688d384668e14e6d1f"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): AgentHandler.MultiAgentLoopStream: \u0060AgentHandler.MultiAgentLoopStream\u0060 writes to the database AND publishes to the message bus in the same flow, with no outbox referenced in this path. These two writes aren\u0027t atomic \u2014 a crash between them either loses the message (DB committed, publish failed) or emits a phantom event (publish succeeded, DB rolled back). Use the transactional outbox pattern \u2014 write the message to an outbox table in the SAME transaction as the state change, and dispatch it from there afterwards \u2014 or your platform\u0027s equivalent (a broker transaction, or an outbox library from your own ecosystem)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ae7d1d7924da454141c4076af69eb51bfa9d60d61f1e102866c9e7e33faafc"}},{"ruleId":"ED4","level":"error","message":{"text":"Dual write (no outbox): AgentHandler.SingleAgentLoopStream: \u0060AgentHandler.SingleAgentLoopStream\u0060 writes to the database AND publishes to the message bus in the same flow, with no outbox referenced in this path. These two writes aren\u0027t atomic \u2014 a crash between them either loses the message (DB committed, publish failed) or emits a phantom event (publish succeeded, DB rolled back). Use the transactional outbox pattern \u2014 write the message to an outbox table in the SAME transaction as the state change, and dispatch it from there afterwards \u2014 or your platform\u0027s equivalent (a broker transaction, or an outbox library from your own ecosystem)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/single_agent.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12a29a7d010f94fa4b4cef6f25660f99afd490fc2a01d3fbb24711625cea587"}},{"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":"P2","level":"note","message":{"text":"Logging is not universal: Only 1/2 runnable modules use logging (modules with no entry point or server are excluded \u2014 they are libraries a runnable module hosts). Silent: \u0060.\u0060."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"91a94e21d6d4d0e6a2003f94505b0b02b157176f0b24c4820f3f82b4447a97fe"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add gosec / govulncheck (or golangci-lint) (or \u0060semgrep --config=auto\u0060, which runs on any language) as a CI step. What was searched, so you can tell an absence from a miss: the 5 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":[{"physicalLocation":{"artifactLocation":{"uri":".github/workflows/context-memory.yml"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060runtime/pi/package.json\u0060 declares packages, and nothing in the repository keeps them current: no Dependabot or Renovate configuration that schedules updates, and no dependency-review gate on pull requests. A pinned dependency stays at the version it was added at until someone notices \u2014 including after an advisory is published against it. Add a \u0060.github/dependabot.yml\u0060 with one \u0060package-ecosystem\u0060 entry per ecosystem the tree uses (or an enabled \u0060renovate.json\u0060), and gate pull requests with \u0060actions/dependency-review-action\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/pi/package.json"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fd656bd86ed830a4595aa8bd9d75f347b00435f533d7c79ddcd9ca314d88da0"}},{"ruleId":"P6","level":"note","message":{"text":"Changelog looks stale/thin: The changelog this check read carries 1 versioned entry, against a bar of 3. Counted as either the distinct \u0060x.y.z\u0060 versions it names (a link\u0027s target is not counted) or its version-shaped section headings (\u0060## [1.2.0]\u0060, \u0060## V14.x.x\u0060, \u0060## Updates in 8.0.x\u0060), whichever is the larger \u2014 so a log sectioned by minor series counts its sections, not its individual patch numbers. Entries recorded somewhere this check does not read \u2014 release notes generated at tag time from a generator config it did not recognise, or a log kept outside the repository \u2014 are not counted here, and this row is about what is re-findable in the tree rather than about how often you release."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"c9a74c249fe67853238d9c15085f7f97d31f51bb82455046aa10c2cef82f67b8"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060fs.writeFileSync\u0060 in \u0060anonymous function\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/check-ui-design-system.cjs"},"region":{"startLine":360}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e814abd62daae8f89076febb35eb15a3c4d214135daca323e7d6ca4c8717851"}},{"ruleId":"PF3","level":"warning","message":{"text":"Sync-over-async blocking: \u0060writeFileSync\u0060 in \u0060exports\u0060 blocks the event loop until it finishes \u2014 a blocking call inside async code stalls the event loop \u2014 every other request waits for as long as it runs."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/ui-realistic-scenarios.cjs"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"209eb08e99e544606fdebc5ccaa890425fc1c01ac4e5320a860eccbdd4c20aa3"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 4 typed \u00B7 117 plain JS \u2014 the untyped files are plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js, plugins/browser-extension/cyberstrikeai-browser-extension/devtools.js, plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js, plugins/browser-extension/cyberstrikeai-browser-extension/lib/auth-session.js, plugins/browser-extension/cyberstrikeai-browser-extension/lib/capture.js, plugins/browser-extension/cyberstrikeai-browser-extension/lib/catalog-cache.js (\u002B111 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (131 matched lines \u00D7 2 locations): web/static/js/projects.js:83 \u00B7 web/static/js/workflows.js:628 \u2014 the two spans are one implementation copied and then locally edited \u2014 962 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":"web/static/js/projects.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"23fba089a6f8cc31902fb2d0754d8f48f2e5bf238820df60d1c38f6ea2ac3d92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (90 lines \u00D7 2 locations): web/static/js/c2.js:3348 \u00B7 web/static/js/c2.js:3975 \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":"web/static/js/c2.js"},"region":{"startLine":3348}}}],"partialFingerprints":{"codehealthFindingId/v1":"140b7431cfaa1c9b7a41304b5deee6db07f85695523df29128768359b4246afe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (72 matched lines \u00D7 2 locations): web/static/js/audit.js:795 \u00B7 web/static/js/webshell.js:677 \u2014 the two spans are one implementation copied and then locally edited \u2014 528 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":"web/static/js/audit.js"},"region":{"startLine":795}}}],"partialFingerprints":{"codehealthFindingId/v1":"710abae0525f20cdb5848904f0711c484ee43ffbcaea5863c86eb36dc9f77904"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (71 matched lines \u00D7 2 locations): web/static/js/chat-files.js:1765 \u00B7 web/static/js/chat.js:2625 \u2014 the two spans are one implementation copied and then locally edited \u2014 462 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":"web/static/js/chat-files.js"},"region":{"startLine":1765}}}],"partialFingerprints":{"codehealthFindingId/v1":"e72fa8e7d0cf9244a72b33078f6597393dd5e232142a14653e982a91f19219b0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (58 lines \u00D7 2 locations): web/static/js/settings.js:2192 \u00B7 web/static/js/settings.js:4185 \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":"web/static/js/settings.js"},"region":{"startLine":2192}}}],"partialFingerprints":{"codehealthFindingId/v1":"48b588080cd63755a11cb65866f2dbf4aee325a1585d61be2df8d99fb6c777f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (56 matched lines \u00D7 2 locations): web/static/js/rbac.js:1227 \u00B7 web/static/js/rbac.js:1349 \u2014 the two spans are one implementation copied and then locally edited \u2014 398 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":"web/static/js/rbac.js"},"region":{"startLine":1227}}}],"partialFingerprints":{"codehealthFindingId/v1":"01cc49565c3bec9296e7bf1b372336af0090ac9c844a95a1e8426a97daf418d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (48 lines \u00D7 2 locations): web/static/js/c2.js:3217 \u00B7 web/static/js/c2.js:4155 \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":"web/static/js/c2.js"},"region":{"startLine":3217}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5a5b5f72e32f77ba76829c36f44d81cf679613de79b155f4ec7b8d13b3815d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (39 matched lines \u00D7 2 locations): scripts/mobile-shot.mjs:17 \u00B7 scripts/mobile-tap-audit.mjs:25 \u2014 the two spans are one implementation copied and then locally edited \u2014 530 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":"scripts/mobile-shot.mjs"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"8760dc89ec4cc7354e60e61c72497355938119c342d71e2011966dcfe2a5da7c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (39 lines \u00D7 2 locations): web/static/js/webshell.js:2404 \u00B7 web/static/js/webshell.js:3340 \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":"web/static/js/webshell.js"},"region":{"startLine":2404}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b3eb446c0ce2ccce67c4031be120727af0a9befa8eb07e392cc32b08933146"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (37 lines \u00D7 2 locations): web/static/js/monitor.js:7377 \u00B7 web/static/js/monitor.js:7611 \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":"web/static/js/monitor.js"},"region":{"startLine":7377}}}],"partialFingerprints":{"codehealthFindingId/v1":"e87f79d93c649e6877ad7562501ee7a90b0bd1edd1c3168cced0ea635fff2d6e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (36 matched lines \u00D7 2 locations): web/static/js/info-collect.js:495 \u00B7 web/static/js/settings.js:244 \u2014 the two spans are one implementation copied and then locally edited \u2014 353 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":"web/static/js/info-collect.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"2589362de59ea3f26c0c36febf3a9407bd49be7ac5786c9ca7fc39c2ef6d9744"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): web/static/js/c2.js:3308 \u00B7 web/static/js/c2.js:4251 \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":"web/static/js/c2.js"},"region":{"startLine":3308}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f4fff4252499e80a339263750dc6351736fcde8d6f9446e95fa5e4897212778"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (35 matched lines \u00D7 2 locations): web/static/js/mobile-ui.js:297 \u00B7 web/static/js/mobile-ui.js:1024 \u2014 the two spans are one implementation copied and then locally edited \u2014 295 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":"web/static/js/mobile-ui.js"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e61db6ff4064db3a4071f0f06a4bf8792052917e17a392a838fff65b28e636"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (35 lines \u00D7 2 locations): web/static/js/tasks.js:2548 \u00B7 web/static/js/tasks.js:2616 \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":"web/static/js/tasks.js"},"region":{"startLine":2548}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc33b542bd44bf466e2efacb07ac255d47bc80d9d894f3eee0fd0d787f5e1556"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): web/static/js/chat.js:9827 \u00B7 web/static/js/projects.js:464 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9827}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ab8fb76c3383961c31a35080037b0cf99119a83dc733a83727cfce0db33eed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (33 lines \u00D7 2 locations): web/static/js/knowledge.js:1543 \u00B7 web/static/js/knowledge.js:2029 \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":"web/static/js/knowledge.js"},"region":{"startLine":1543}}}],"partialFingerprints":{"codehealthFindingId/v1":"31ff9c67b74c4eda3c0e5aa03c660aff0e742fda293fa597e5350f284b3ce50c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 2 locations): web/static/js/chat.js:9193 \u00B7 web/static/js/workflows.js:419 \u2014 the 2 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9193}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f1f5fbf5292446fd54dd84763fb40df8ffb297c806002660fc141d505b935b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): web/static/js/roles.js:139 \u00B7 web/static/js/webshell.js:769 \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":"web/static/js/roles.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbaa73069377c5b6da2988f5a74fe7367be7a1123cb3893f0c3bb980d8476640"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): web/static/js/chat.js:1276 \u00B7 web/static/js/chat.js:1309 \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":"web/static/js/chat.js"},"region":{"startLine":1276}}}],"partialFingerprints":{"codehealthFindingId/v1":"8554ea50aca95d6e75e4061090704d61e48dc213c1981a2d7d4b669b81f197a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): web/static/js/chat.js:4265 \u00B7 web/static/js/monitor.js:2730 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4265}}}],"partialFingerprints":{"codehealthFindingId/v1":"c66c388e1a5d914d4820cc567d48096c50226cf51712485408a2e25f07b3ee44"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): web/static/js/chat.js:9860 \u00B7 web/static/js/projects.js:497 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9860}}}],"partialFingerprints":{"codehealthFindingId/v1":"449979f1a02959dc13d1c1795f624c78939506480d2704ef0bffd1323f9f61c5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): web/static/js/roles.js:1323 \u00B7 web/static/js/roles.js:1435 \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":"web/static/js/roles.js"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"c31b82fa63d5be92563541b245b1f7d7f96ca06ec97e0ef6e21c96e4d949ce1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 3 locations): web/static/js/tasks.js:2004 \u00B7 web/static/js/tasks.js:2035 \u00B7 web/static/js/tasks.js:2066 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2004}}}],"partialFingerprints":{"codehealthFindingId/v1":"9866ff0f756d01a878f036afc9f1ba8bc7e0f2b19cd079c953af2be54bdd20bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (25 lines \u00D7 2 locations): web/static/js/tasks.js:2596 \u00B7 web/static/js/tasks.js:2661 \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":"web/static/js/tasks.js"},"region":{"startLine":2596}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c1d664d0b1bcc92b3b816bae8bb3ff0ecdadd0d2d997daea60bb89e197806f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): web/static/js/monitor.js:2802 \u00B7 web/static/js/monitor.js:2828 \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":"web/static/js/monitor.js"},"region":{"startLine":2802}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f57750f50b4fc601dbd538c518dc37e45bc10b1a62ec88420f9bec75a70858"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): web/static/js/settings.js:3058 \u00B7 web/static/js/settings.js:3119 \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":"web/static/js/settings.js"},"region":{"startLine":3058}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee0b32172f18ae8bd1cd0adf130a4f6aaeb17ed19d38f3c6519e96a0406ce745"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 4 locations): web/static/js/settings.js:3480 \u00B7 web/static/js/settings.js:3506 \u00B7 web/static/js/settings.js:3532 \u00B7 web/static/js/settings.js:3558 \u2014 all 4 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3480}}}],"partialFingerprints":{"codehealthFindingId/v1":"06acd31b52368d93be5179ad8dbed11406354a3fa02710d5fe9881c28e38477d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (23 lines \u00D7 2 locations): web/static/js/chat.js:283 \u00B7 web/static/js/settings.js:257 \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":"web/static/js/chat.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"10f75d19bc97ed297d4abfa1378ad5a987224ceb6e32912d561fd5605b1efbfc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 3 locations): web/static/js/chat.js:7802 \u00B7 web/static/js/chat.js:7847 \u00B7 web/static/js/chat.js:7902 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":7802}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c86731c86bbce7085622010c506389f6872e17413660954c874668383849f3a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (22 lines \u00D7 2 locations): web/static/js/chat.js:9161 \u00B7 web/static/js/workflows.js:475 \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":"web/static/js/chat.js"},"region":{"startLine":9161}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea13e65f28ed75b17be7e75be925ed43db274fce56e622d582e404cb4f7dd33f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): web/static/js/api-docs.js:638 \u00B7 web/static/js/api-docs.js:738 \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":"web/static/js/api-docs.js"},"region":{"startLine":638}}}],"partialFingerprints":{"codehealthFindingId/v1":"57cdddb35008c6252eab13cc8ac835b2724dddc4e7b8c2b90ce9a7ca496d3670"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): web/static/js/c2.js:3281 \u00B7 web/static/js/c2.js:4223 \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":"web/static/js/c2.js"},"region":{"startLine":3281}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed3fdcc5b5bab2823dfadcc0a34ebd2144440369a9a6da1348cd725aa0111a28"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 3 locations): web/static/js/chat-files.js:99 \u00B7 web/static/js/monitor.js:7475 \u00B7 web/static/js/roles.js:71 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd0387982ecb15aa5494eafa278946ca630982086c6cfd8a59f4e9d3bfe894ed"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): web/static/js/dashboard.js:549 \u00B7 web/static/js/dashboard.js:1296 \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":"web/static/js/dashboard.js"},"region":{"startLine":549}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff20906e940005acaa1037c18c3796ff8d18d83cc6b4942c89ac035e1030b4b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): web/static/js/monitor.js:2881 \u00B7 web/static/js/webshell.js:2199 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2881}}}],"partialFingerprints":{"codehealthFindingId/v1":"96867e27ac002f8f1226d8958d92495eb1d1657ebf50c7b36871cd981e02504d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 11 locations): web/static/js/c2.js:204 \u00B7 web/static/js/chat-files.js:65 \u00B7 web/static/js/hitl.js:1361 \u00B7 web/static/js/monitor.js:7441 \u00B7 \u002B7 more site(s) not listed \u2014 the 11 copies are spread across 9 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":"web/static/js/c2.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8f90e71452addbf0f3875f958a797f6f5d40bb0cd8774fdb707b055154ca3b0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): web/static/js/chat.js:4226 \u00B7 web/static/js/monitor.js:2768 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4226}}}],"partialFingerprints":{"codehealthFindingId/v1":"937d49f5df10ef83d20197f1459c80976db403351134068fec441270ba9ec30a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): web/static/js/roles.js:1116 \u00B7 web/static/js/roles.js:1148 \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":"web/static/js/roles.js"},"region":{"startLine":1116}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ec63cd7a7769646469483ce431679aa18f91cba9d3c5b31242c7cc3deb563d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): web/static/js/chat-files.js:1047 \u00B7 web/static/js/chat-files.js:1216 \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":"web/static/js/chat-files.js"},"region":{"startLine":1047}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6b02f34604be0d46f30f1cb477c3268602349e06a09dc9dd526c7f9a0fd82e9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): web/static/js/chat.js:9407 \u00B7 web/static/js/chat.js:9487 \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":"web/static/js/chat.js"},"region":{"startLine":9407}}}],"partialFingerprints":{"codehealthFindingId/v1":"92f519c88d876cb469beebff5a7856c666473a55aeaf6a1c07997450504711d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): web/static/js/hitl.js:1476 \u00B7 web/static/js/tasks.js:1317 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1476}}}],"partialFingerprints":{"codehealthFindingId/v1":"22909cfeb11eaad1bfc2554d45421bad9d6589581bc2faca5bacb2aedb02e8f9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): web/static/js/monitor.js:3843 \u00B7 web/static/js/monitor.js:4124 \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":"web/static/js/monitor.js"},"region":{"startLine":3843}}}],"partialFingerprints":{"codehealthFindingId/v1":"087d481f742aa63b1d67024b90238865d41a336e969dc8450869dfaad8ca9517"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): web/static/js/monitor.js:8497 \u00B7 web/static/js/monitor.js:8921 \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":"web/static/js/monitor.js"},"region":{"startLine":8497}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5d3d0dac821c760eca58198ab67045d1c57a246542f1cf284113cf2fc6a59dc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): web/static/js/roles.js:721 \u00B7 web/static/js/roles.js:1600 \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":"web/static/js/roles.js"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"a219f641f74e50fcc01304c60c73a21f2c1e3b2d9b4c22bbd39708f35961f6bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): web/static/js/audit.js:376 \u00B7 web/static/js/hitl.js:148 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"8173b627bb134f4bd92624ebf2f8287df8da76d44eaee3dfaea0d1eaca36978a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): web/static/js/auth.js:693 \u00B7 web/static/js/roles.js:544 \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":"web/static/js/auth.js"},"region":{"startLine":693}}}],"partialFingerprints":{"codehealthFindingId/v1":"f16ad8268224ff54004ab3dbeb5c2817ee17462c3507e5338ba14d5dff15bb32"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 12 locations): web/static/js/c2.js:261 \u00B7 web/static/js/chat-files.js:127 \u00B7 web/static/js/chat.js:9370 \u00B7 web/static/js/chat.js:9442 \u00B7 \u002B8 more site(s) not listed \u2014 the 10 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":261}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef844c43a1b2f477e27d423ace82361bbb8cfc9d90fccb756290f77987e32b14"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): web/static/js/c2.js:3192 \u00B7 web/static/js/c2.js:4137 \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":"web/static/js/c2.js"},"region":{"startLine":3192}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2be0dc0cb980ee19f468e0739629c0676a6b2997ef26499344fb7b980fb5782"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): web/static/js/monitor.js:3452 \u00B7 web/static/js/monitor.js:3469 \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":"web/static/js/monitor.js"},"region":{"startLine":3452}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3d0df54cf320ac86c8a8f14d7a477094a1d2895e1cccfc0ca0b5bf4cdebf700"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): web/static/js/projects.js:2952 \u00B7 web/static/js/projects.js:3115 \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":"web/static/js/projects.js"},"region":{"startLine":2952}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d0873209896e905229763ad298184458ee59d6d6964c7cc4c42a0c3898cef1c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): web/static/js/c2.js:1003 \u00B7 web/static/js/c2.js:1247 \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":"web/static/js/c2.js"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc15f7dbbb6888100707a7ff7eef2cab51c5dee9daf79bca7754e48444dbe86"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): web/static/js/c2.js:1477 \u00B7 web/static/js/c2.js:3300 \u00B7 web/static/js/c2.js:4243 \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":"web/static/js/c2.js"},"region":{"startLine":1477}}}],"partialFingerprints":{"codehealthFindingId/v1":"4469d531ae3f51d4ff77eccfc784ff275456e498c0792bb4881de7f9bd2e1a10"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): web/static/js/chat.js:233 \u00B7 web/static/js/settings.js:207 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f7db77794324e0f80c4e5f15877f367642e277c1e6baa014dd182467561e10a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): web/static/js/chat.js:7087 \u00B7 web/static/js/chat.js:8270 \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":"web/static/js/chat.js"},"region":{"startLine":7087}}}],"partialFingerprints":{"codehealthFindingId/v1":"a90bb1c701ec87fc6e472d02d05dc123fe6bf2d5260b247113154a923f64606a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): web/static/js/hitl.js:1621 \u00B7 web/static/js/hitl.js:1653 \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":"web/static/js/hitl.js"},"region":{"startLine":1621}}}],"partialFingerprints":{"codehealthFindingId/v1":"eaa5fbd801d06639e40102bc6776cd6f3a527a069c935ae6a28682f9bc38f589"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): web/static/js/knowledge.js:123 \u00B7 web/static/js/knowledge.js:759 \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":"web/static/js/knowledge.js"},"region":{"startLine":123}}}],"partialFingerprints":{"codehealthFindingId/v1":"c11958dc15451eccb8338165ee400cb370f94c0c380f31f16c8451440cfd14cd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): web/static/js/monitor.js:237 \u00B7 web/static/js/webshell.js:1344 \u2014 the 2 copies are spread across 2 files, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c59ba5b11b09472868e1f1455efafb661b8d9b0f088f6e6588681b37467488e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): web/static/js/projects.js:1813 \u00B7 web/static/js/projects.js:1830 \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":"web/static/js/projects.js"},"region":{"startLine":1813}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc2a72583b969104189e0e42b3b7920af0d88300c61dbc1e7b981302d7fd6ba6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): web/static/js/router.js:666 \u00B7 web/static/js/router.js:690 \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":"web/static/js/router.js"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"b41b866a60d47763bc4d58816598a556a995a848e9c57f8642ac8a6f255d9e4a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): web/static/js/vulnerability.js:758 \u00B7 web/static/js/vulnerability.js:891 \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":"web/static/js/vulnerability.js"},"region":{"startLine":758}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1b810907b24ffcac615a7efc7563bffea929cefe4e48d6ec1d6da191f93d64d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 4 locations): web/static/js/api-docs.js:1003 \u00B7 web/static/js/auth.js:697 \u00B7 web/static/js/knowledge.js:2013 \u00B7 web/static/js/vulnerability.js:2151 \u2014 the 4 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 4 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/api-docs.js"},"region":{"startLine":1003}}}],"partialFingerprints":{"codehealthFindingId/v1":"1525dcd4752bd3ff56ffdbd22230971c892a9755b6cc78b47ad6d9267c0dbc5d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): web/static/js/chat.js:9381 \u00B7 web/static/js/chat.js:9453 \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":"web/static/js/chat.js"},"region":{"startLine":9381}}}],"partialFingerprints":{"codehealthFindingId/v1":"e62f3ffcf056b2e5c72402206c641fcc1c6c07836a605b34dd3c92d00977d7b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): web/static/js/router.js:547 \u00B7 web/static/js/router.js:582 \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":"web/static/js/router.js"},"region":{"startLine":547}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4d0d78fc5b364000fdd2266de5a8bba16188d7c4fe4e8cc967c23e6087ac25a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (15 matched lines \u00D7 2 locations): web/static/js/tool-guard.js:651 \u00B7 web/static/js/tool-guard.js:690 \u2014 the two spans are one implementation copied and then locally edited \u2014 134 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":"web/static/js/tool-guard.js"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a01e1977e1587c5989222d26f58cae291e2cb04f911bb858a3a945ad3b0d515"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): web/static/js/vulnerability.js:2191 \u00B7 web/static/js/vulnerability.js:2206 \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":"web/static/js/vulnerability.js"},"region":{"startLine":2191}}}],"partialFingerprints":{"codehealthFindingId/v1":"2454d03aca8782071dd319aeebd6f086ed67a3effef87bb6a021c79bfc4875e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): web/static/js/webshell.js:266 \u00B7 web/static/js/webshell.js:341 \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":"web/static/js/webshell.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"badc767ef3aea3180b8588769165241bbb505f49b36bd554e955fe13104e3db2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): plugins/browser-extension/cyberstrikeai-browser-extension/lib/storage.js:74 \u00B7 plugins/browser-extension/cyberstrikeai-browser-extension/lib/storage.js:91 \u00B7 plugins/browser-extension/cyberstrikeai-browser-extension/lib/storage.js:109 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/storage.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"f56a9e7d5c1d923743f1a4523efc97ff7cbfa58bea9b25095c7c54f25a4e191b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): web/static/js/c2.js:324 \u00B7 web/static/js/roles.js:154 \u00B7 web/static/js/webshell.js:784 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":324}}}],"partialFingerprints":{"codehealthFindingId/v1":"8eff89a6e85fcf644cd90133b3e71ef6b5a241d20d9f068dd6b1dbbb9c95111a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): web/static/js/hitl.js:399 \u00B7 web/static/js/hitl.js:1132 \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":"web/static/js/hitl.js"},"region":{"startLine":399}}}],"partialFingerprints":{"codehealthFindingId/v1":"e608a8dce277fb9d10e7906eaf22deb82a7ecf9a4ba6282a4072f50f8ed985dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 3 locations): web/static/js/hitl.js:1395 \u00B7 web/static/js/tasks.js:1241 \u00B7 web/static/js/vulnerability.js:715 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46c125710cb2b10f467cc13ae50f5c7772b412ac20c6b8f0591aa57589a2133"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): web/static/js/router.js:241 \u00B7 web/static/js/router.js:264 \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":"web/static/js/router.js"},"region":{"startLine":241}}}],"partialFingerprints":{"codehealthFindingId/v1":"1280e9cb4e44bbb8ce14ab13ceb39022ee6b9b637b86432f579b1e6383d0b050"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): web/static/js/settings.js:50 \u00B7 web/static/js/settings.js:67 \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":"web/static/js/settings.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"976ee445fd38bb0e4031a91a3302d4bd3c2e0e5c3726cd4917f860b4c5f1748b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (14 matched lines \u00D7 2 locations): web/static/js/skills.js:258 \u00B7 web/static/js/tasks.js:1707 \u2014 the two spans are one implementation copied and then locally edited \u2014 105 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":"web/static/js/skills.js"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"f47d309d54d50cf1dcb1ae367a7cfabad1d617db74210ab6d91be581d9c2d872"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/static/js/api-docs.js:814 \u00B7 web/static/js/api-docs.js:837 \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":"web/static/js/api-docs.js"},"region":{"startLine":814}}}],"partialFingerprints":{"codehealthFindingId/v1":"29efe04fed6266077bfa76832395c984552188da3063a81c59e1c2e76c0c316e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/static/js/c2.js:1194 \u00B7 web/static/js/c2.js:4568 \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":"web/static/js/c2.js"},"region":{"startLine":1194}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac1cc169232062a84f125a9519101f726d2226e4901ea67ac9b2bebad2aa9b90"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 3 locations): web/static/js/knowledge.js:63 \u00B7 web/static/js/knowledge.js:128 \u00B7 web/static/js/knowledge.js:764 \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":"web/static/js/knowledge.js"},"region":{"startLine":63}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe3f590238edc6767e8da6ac08eb899d4f7fee0e11f6de18d034f9f67da596dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/static/js/knowledge.js:204 \u00B7 web/static/js/knowledge.js:255 \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":"web/static/js/knowledge.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f127d4d1916741f10549ef25cffc8429829823abce987edab2aa52033c6e402"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/static/js/monitor.js:6225 \u00B7 web/static/js/monitor.js:6267 \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":"web/static/js/monitor.js"},"region":{"startLine":6225}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98bad7c4a6ee57f3832c6c6d878954eb7d98d3a6f6f591584ec6284531aa86b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/static/js/projects.js:3963 \u00B7 web/static/js/webshell.js:479 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3963}}}],"partialFingerprints":{"codehealthFindingId/v1":"8234e51a3f6cb7debeefb9d2868b07c4145b4dcdf8ab27c795aec8c0e78b664c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/static/js/roles.js:362 \u00B7 web/static/js/roles.js:608 \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":"web/static/js/roles.js"},"region":{"startLine":362}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ef42c513b6fd3222aa392d94e521b9ee6774401bac1abeffb060f4b90dc4d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/static/js/roles.js:941 \u00B7 web/static/js/settings.js:1420 \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":"web/static/js/roles.js"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5f419bdec3032448a67a52211228e8884c21c3721f2c42a1e06f53751d3ada8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): web/static/js/vulnerability.js:110 \u00B7 web/static/js/vulnerability.js:923 \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":"web/static/js/vulnerability.js"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8ebc2290db724c0bce7a040c1c373abb8350ae8e1036d391f0410eac3bd43b4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/static/js/audit.js:640 \u00B7 web/static/js/audit.js:658 \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":"web/static/js/audit.js"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"44121a9947eaa7867a27e87a50127be8a8d7e31ea63ec869abd0a43f676318f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/static/js/chat.js:4249 \u00B7 web/static/js/monitor.js:2788 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4249}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e347e1b86be5cdb40a493a32849a1171a14311756d97060b51b34c563e1ab12"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/static/js/chat.js:4808 \u00B7 web/static/js/chat.js:4871 \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":"web/static/js/chat.js"},"region":{"startLine":4808}}}],"partialFingerprints":{"codehealthFindingId/v1":"665af1b9b3a0e6123823bf25d1c3c911f9c0431c8e3a55fe42b7908755ffb23e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/static/js/hitl.js:1809 \u00B7 web/static/js/hitl.js:1822 \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":"web/static/js/hitl.js"},"region":{"startLine":1809}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a6be1aacaa32734848733e58316dad2b059f15e66edfd5d68b27f31b0ae2642"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/static/js/knowledge.js:1216 \u00B7 web/static/js/knowledge.js:1676 \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":"web/static/js/knowledge.js"},"region":{"startLine":1216}}}],"partialFingerprints":{"codehealthFindingId/v1":"b54537282b00e3db2a258c5427920b3ce4f7f0a1d347f98c36edab9428e2d1d4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/static/js/monitor.js:8763 \u00B7 web/static/js/monitor.js:8848 \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":"web/static/js/monitor.js"},"region":{"startLine":8763}}}],"partialFingerprints":{"codehealthFindingId/v1":"dcd57aaca649aed588f54d1c0b5e19ded76bac03375290304ad6971af86191a0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/static/js/roles.js:694 \u00B7 web/static/js/skills.js:431 \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":"web/static/js/roles.js"},"region":{"startLine":694}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e8bb2428d3f1d983c2fa9c711943263a67ec9db4842fddf2d2da192cbf3bfc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/static/js/roles.js:1418 \u00B7 web/static/js/roles.js:1432 \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":"web/static/js/roles.js"},"region":{"startLine":1418}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdc044a96aef804e1a944c45b42a1c2a5cf12243d742eae5b04793a158d596f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (12 lines \u00D7 2 locations): web/static/js/settings.js:3706 \u00B7 web/static/js/settings.js:4062 \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":"web/static/js/settings.js"},"region":{"startLine":3706}}}],"partialFingerprints":{"codehealthFindingId/v1":"179cdee5911541c8e6b57fb8f46cedcb44b8186679d01d05372e2f1363285d21"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (12 matched lines \u00D7 2 locations): web/static/js/wechat-robot.js:132 \u00B7 web/static/js/wechat-robot.js:188 \u2014 the two spans are one implementation copied and then locally edited \u2014 102 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":"web/static/js/wechat-robot.js"},"region":{"startLine":132}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4bf31679596ec154c11cee738576f93d376cc439d6b2f2f1adca8d0a72955a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): web/static/js/chat-files.js:167 \u00B7 web/static/js/monitor.js:7543 \u00B7 web/static/js/projects.js:208 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfd6de582a4cf563c63daf5ee7faf0063eade4a00841979da2be60fb51e4040a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/chat-files.js:186 \u00B7 web/static/js/vulnerability.js:791 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ca33044b62230c5bc710abf43c6ad99013cd1b12758a003446daaecf70ff4a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/chat.js:182 \u00B7 web/static/js/settings.js:130 \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":"web/static/js/chat.js"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"f73707ebb55ef8fb5ae574d02416eacf1eb66e64e5a943cb64676df674328cf5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 3 locations): web/static/js/chat.js:1257 \u00B7 web/static/js/chat.js:1291 \u00B7 web/static/js/chat.js:1322 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1257}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d82f26e05dd49fda51a0dfd1e07e1d3453279c8ef78f9f8e18136e9d79b5309"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 4 locations): web/static/js/chat.js:1994 \u00B7 web/static/js/chat.js:11317 \u00B7 web/static/js/roles.js:1904 \u00B7 web/static/js/settings.js:3352 \u2014 the 4 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1994}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0e33916e2bf4ae1deff29a3f54fb62cc73dd13f522152c1631a39540015cadd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/chat.js:4791 \u00B7 web/static/js/chat.js:4843 \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":"web/static/js/chat.js"},"region":{"startLine":4791}}}],"partialFingerprints":{"codehealthFindingId/v1":"43123b0f8108a17139542f5d50aa7aeb93d1308f9171d6401a2b3657114639fe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/chat.js:5781 \u00B7 web/static/js/chat.js:5826 \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":"web/static/js/chat.js"},"region":{"startLine":5781}}}],"partialFingerprints":{"codehealthFindingId/v1":"14fb5e59bcbc47dde3b8c7144d05429c5b8389d50ec58ee0d1df053ff8367c3f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/chat.js:5973 \u00B7 web/static/js/chat.js:10223 \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":"web/static/js/chat.js"},"region":{"startLine":5973}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d232ff4a0c5aefbf8f31830a3892c96c6a454c3912279e27ecd1622555f982e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/chat.js:9312 \u00B7 web/static/js/chat.js:9343 \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":"web/static/js/chat.js"},"region":{"startLine":9312}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4ee4faa93d10c5322d681a51c9445106f39b86c640834fe169ede6733fdb746"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/chat.js:11095 \u00B7 web/static/js/info-collect.js:1424 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":11095}}}],"partialFingerprints":{"codehealthFindingId/v1":"c21c22e1a9f5b84e0f20d7a48701cf0b7dcdb1d955c3fe43e64067f7eb0a89ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/dashboard.js:1217 \u00B7 web/static/js/dashboard.js:1229 \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":"web/static/js/dashboard.js"},"region":{"startLine":1217}}}],"partialFingerprints":{"codehealthFindingId/v1":"88b31682544275bf23b8e203315aedcbf5568b76ffcea71f5c7c85b3ce0d1139"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/dashboard.js:1323 \u00B7 web/static/js/dashboard.js:1340 \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":"web/static/js/dashboard.js"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f23fa4e7740980ef6c8d6e935ea0f587c9726afc3908c398f64813ad01e2cc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/dashboard.js:1381 \u00B7 web/static/js/vulnerability.js:2132 \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":"web/static/js/dashboard.js"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"3930c8872ce28838e3b3a6c290f7c3d2031fad7ddeac9d0e141850f0af62a864"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/hitl.js:350 \u00B7 web/static/js/hitl.js:490 \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":"web/static/js/hitl.js"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"70679ab1d469b5fea01317ca7df069aecc4cc1e41ab8272523a67fe3e92887f3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/knowledge.js:1169 \u00B7 web/static/js/knowledge.js:1651 \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":"web/static/js/knowledge.js"},"region":{"startLine":1169}}}],"partialFingerprints":{"codehealthFindingId/v1":"6cb5621e7e55b8297341349a8e65649adcbf7624f537ff6273b460af99aba35b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/monitor.js:1472 \u00B7 web/static/js/monitor.js:2641 \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":"web/static/js/monitor.js"},"region":{"startLine":1472}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea233042e1163527edde419ee0af289bf36f6c43da7f2bce701b503ca3edc451"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/monitor.js:3265 \u00B7 web/static/js/monitor.js:3711 \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":"web/static/js/monitor.js"},"region":{"startLine":3265}}}],"partialFingerprints":{"codehealthFindingId/v1":"5de7596fe41d8166c43878225f60a8689f166bb536aab6b8c22c3a2f36166709"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/projects.js:1726 \u00B7 web/static/js/projects.js:1780 \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":"web/static/js/projects.js"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e478208adbdf86a99e94815d3aa9cdd450b633a173474ff64b64ae004d66ce5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/webshell.js:3008 \u00B7 web/static/js/webshell.js:3040 \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":"web/static/js/webshell.js"},"region":{"startLine":3008}}}],"partialFingerprints":{"codehealthFindingId/v1":"657ff00e6eddf5131b5b8386b20fbaf7399489755a11bd781b7a59da7f7dc7e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/webshell.js:3070 \u00B7 web/static/js/webshell.js:3112 \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":"web/static/js/webshell.js"},"region":{"startLine":3070}}}],"partialFingerprints":{"codehealthFindingId/v1":"15c15a598bcbe7a8deb0a400088f3df861adebff103d739b4671285eb35a39ea"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/webshell.js:3155 \u00B7 web/static/js/webshell.js:3194 \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":"web/static/js/webshell.js"},"region":{"startLine":3155}}}],"partialFingerprints":{"codehealthFindingId/v1":"afe8d94a47d15bde17b294aca9156b86fa47b6d4de3e13163e833fd63c7f8132"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): web/static/js/webshell.js:3702 \u00B7 web/static/js/webshell.js:3816 \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":"web/static/js/webshell.js"},"region":{"startLine":3702}}}],"partialFingerprints":{"codehealthFindingId/v1":"56352dca7ac7cd22fe41bc17b0083c4e91a5fdd56ad8ec9077ddad022e2852d2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): web/static/js/agents.js:197 \u00B7 web/static/js/wechat-robot.js:386 \u2014 the two spans are one implementation copied and then locally edited \u2014 51 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/agents.js"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"45353e39c142f10042fa96a08388f952b2b634d510b38fda9adabf1fd8760a4b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): web/static/js/assets.js:1516 \u00B7 web/static/js/vulnerability-workspace.js:207 \u2014 the two spans are one implementation copied and then locally edited \u2014 95 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":"web/static/js/assets.js"},"region":{"startLine":1516}}}],"partialFingerprints":{"codehealthFindingId/v1":"237dfa7b603993a8bb71d847534b2f3eb44f3d7d3dd66b59797cc611d22f1db2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): web/static/js/auth.js:114 \u00B7 web/static/js/auth.js:142 \u2014 the two spans are one implementation copied and then locally edited \u2014 63 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":"web/static/js/auth.js"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"b26bef3b2a0d787758a8c43cb72bdc1d28910b40701c503834572ad1ff647b04"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/c2.js:309 \u00B7 web/static/js/projects.js:216 \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":"web/static/js/c2.js"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe635c82974158a4deab06be1585d40008a4b6acc3979a5b38e638d50ff5a359"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/c2.js:631 \u00B7 web/static/js/webshell.js:1330 \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":"web/static/js/c2.js"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"f71018a8c52cd0e3853b914a54a58555df34661b06853185114e23b9693aab8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/chat.js:465 \u00B7 web/static/js/hitl.js:385 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":465}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f179d7122f16cf9e55540077c580470849df2e227c2b60f3afecb789c8285e5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/chat.js:2012 \u00B7 web/static/js/projects.js:3938 \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":"web/static/js/chat.js"},"region":{"startLine":2012}}}],"partialFingerprints":{"codehealthFindingId/v1":"196d87dbf11e6d965e384bf2cb33798aea8a669478d2fc912e39d77f016057d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/chat.js:5408 \u00B7 web/static/js/chat.js:5425 \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":"web/static/js/chat.js"},"region":{"startLine":5408}}}],"partialFingerprints":{"codehealthFindingId/v1":"75907dcdc8dfa443f6b3c33f2321012261c60c441cac6ca4a20872732defef11"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/chat.js:6022 \u00B7 web/static/js/chat.js:10267 \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":"web/static/js/chat.js"},"region":{"startLine":6022}}}],"partialFingerprints":{"codehealthFindingId/v1":"6207e4373cbd2645c586d4d9b6a534e6fc34ab316f6be9b43853cf0a91910e62"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/chat.js:7621 \u00B7 web/static/js/chat.js:7632 \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":"web/static/js/chat.js"},"region":{"startLine":7621}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fd284eacc2b448755174b6a649fe36a4b8eb24dee3175873f8c0d42adc5c1d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6 locations): web/static/js/chat.js:9352 \u00B7 web/static/js/chat.js:9424 \u00B7 web/static/js/hitl.js:1401 \u00B7 web/static/js/settings.js:2443 \u00B7 \u002B2 more site(s) not listed \u2014 the 6 copies are spread across 5 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9352}}}],"partialFingerprints":{"codehealthFindingId/v1":"fde4d428774d7ac41b966419931aad4c4161f0b9f54f78760d9634b045058a42"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/chat.js:9474 \u00B7 web/static/js/workflows.js:589 \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":"web/static/js/chat.js"},"region":{"startLine":9474}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb8b394fb8dd52c8a46e607e165d6cf01cb6d976eb8368d488f049394bc59ebe"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/chat.js:11183 \u00B7 web/static/js/monitor.js:9697 \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":"web/static/js/chat.js"},"region":{"startLine":11183}}}],"partialFingerprints":{"codehealthFindingId/v1":"aea19181b60217e635dfa0c503447660f7f4b2bb35968b3a7dda5df04b1dacc2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/dashboard.js:1733 \u00B7 web/static/js/dashboard.js:2311 \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":"web/static/js/dashboard.js"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"1561045bbac54916dd4d5fc72100c075b4aebc01994046b88d76e8aace8e0722"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/dashboard.js:2397 \u00B7 web/static/js/dashboard.js:2432 \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":"web/static/js/dashboard.js"},"region":{"startLine":2397}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4414eef7c0699e95b44eed5cf39ef7a2890e96461255d30de8cd4c3cb231b3e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/hitl.js:7 \u00B7 web/static/js/monitor.js:5174 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"6007f8371af285cec2853034cb68fb4d3796b8b16f214908c620722ac5db69a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/hitl.js:190 \u00B7 web/static/js/info-collect.js:232 \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":"web/static/js/hitl.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f52443f4f106fc864d5b6407d230747ceec91a619d9594d8ccfdb61db783a9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/hitl.js:1537 \u00B7 web/static/js/monitor.js:9388 \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":"web/static/js/hitl.js"},"region":{"startLine":1537}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f8995ee12e30fac11e157369ae250a3d42c79b91f14f03342742bf6f11f4a85"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/info-collect.js:1565 \u00B7 web/static/js/vulnerability.js:2392 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1565}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c8c0086912dc5ecc756cb79d4383467aeb2e8fa816ba8188dbad9f4bd4f927b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/mobile-ui.js:426 \u00B7 web/static/js/mobile-ui.js:437 \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":"web/static/js/mobile-ui.js"},"region":{"startLine":426}}}],"partialFingerprints":{"codehealthFindingId/v1":"862a818f2bd1cab69e29543c501a95e914bf9f4e1d9e792810d8777b0381f99e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/mobile-ui.js:985 \u00B7 web/static/js/mobile-ui.js:1079 \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":"web/static/js/mobile-ui.js"},"region":{"startLine":985}}}],"partialFingerprints":{"codehealthFindingId/v1":"74d7fb6b218c4580a49ad41aba8c19d285e66eddcc104acfd0acb0c0c9f240b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 4 locations): web/static/js/monitor.js:3086 \u00B7 web/static/js/monitor.js:3097 \u00B7 web/static/js/monitor.js:3158 \u00B7 web/static/js/monitor.js:3169 \u2014 all 4 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":3086}}}],"partialFingerprints":{"codehealthFindingId/v1":"c06f3f266e17d0d2bd1e7a10041018ef6c295639392a1caa01d20cf5596c4d84"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/monitor.js:3107 \u00B7 web/static/js/monitor.js:3122 \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":"web/static/js/monitor.js"},"region":{"startLine":3107}}}],"partialFingerprints":{"codehealthFindingId/v1":"30201b7d54bf0bb91aa3821d8aca765d2a6bd262ff3107934ca623a58b340981"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (10 matched lines \u00D7 2 locations): web/static/js/monitor.js:9299 \u00B7 web/static/js/skills.js:258 \u2014 the two spans are one implementation copied and then locally edited \u2014 93 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":"web/static/js/monitor.js"},"region":{"startLine":9299}}}],"partialFingerprints":{"codehealthFindingId/v1":"6320563b8886d5255136646b227fd980649a64e0fddb689b45bbfb7292dd186a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 3 locations): web/static/js/roles.js:1587 \u00B7 web/static/js/settings.js:2200 \u00B7 web/static/js/settings.js:4192 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8c6d4302f49d540908546348a34a37c0d478fd0c6477b456104e18c10cfe517"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/roles.js:1785 \u00B7 web/static/js/vulnerability.js:1894 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":1785}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fdb2a72efa1b139db5d6fa12f812fdeae4db0cd5d5f346608a871f77e587a6e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/roles.js:1828 \u00B7 web/static/js/skills.js:898 \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":"web/static/js/roles.js"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"2502220c82ae1532d35267b0908ad65bc31a82bd09d7a2ca741b7890941b8576"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 6 locations): web/static/js/router.js:213 \u00B7 web/static/js/router.js:226 \u00B7 web/static/js/router.js:239 \u00B7 web/static/js/router.js:251 \u00B7 \u002B2 more site(s) not listed \u2014 all 6 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":"web/static/js/router.js"},"region":{"startLine":213}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ff89d744aa9b6e74b4e4f9fdbcad5e8f4203e306142890352ad7ca60e2625f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/settings.js:870 \u00B7 web/static/js/settings.js:1010 \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":"web/static/js/settings.js"},"region":{"startLine":870}}}],"partialFingerprints":{"codehealthFindingId/v1":"209bb4576ccdccbb7bb685596e7014f71989e406362635fca11a4256c8c7fdf5"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/settings.js:923 \u00B7 web/static/js/settings.js:933 \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":"web/static/js/settings.js"},"region":{"startLine":923}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9fc35346a5ec9ec4970770fac940a3d43bd31b9bcfa0fcbabb7fa13d99f122f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/settings.js:4950 \u00B7 web/static/js/settings.js:5015 \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":"web/static/js/settings.js"},"region":{"startLine":4950}}}],"partialFingerprints":{"codehealthFindingId/v1":"3970b09b08bba28d8319c7775d87d78d9e9b7e02691d4734a339caf2c7bd5bb8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/tasks.js:1509 \u00B7 web/static/js/webshell.js:771 \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":"web/static/js/tasks.js"},"region":{"startLine":1509}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4a214d91bcabf8a1bcc8ed2cfbe26fc725693bb9f012068f683c481e68699bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/webshell.js:1976 \u00B7 web/static/js/webshell.js:2039 \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":"web/static/js/webshell.js"},"region":{"startLine":1976}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca61a870a64cb4e5c2fc49e00edb76e3631c3e879f5795fd83e8af894136c47b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/webshell.js:3144 \u00B7 web/static/js/webshell.js:3184 \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":"web/static/js/webshell.js"},"region":{"startLine":3144}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca5b12479ccf377f45df386441bba8c07420952743a9cd5ffb29bb710c1bbc68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/webshell.js:3826 \u00B7 web/static/js/webshell.js:3847 \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":"web/static/js/webshell.js"},"region":{"startLine":3826}}}],"partialFingerprints":{"codehealthFindingId/v1":"205eabd1d679029387e0ab46e8bd64956bf977dc7dcb3bf0d790724d98ad5835"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): web/static/js/webshell.js:4839 \u00B7 web/static/js/webshell.js:4868 \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":"web/static/js/webshell.js"},"region":{"startLine":4839}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8284921022c0cc0dcf0f1e271b89f83c6df82da6f563a91e8e5cfc6ac9a9e7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:67 \u00B7 plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:83 \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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"c086b6f0e72cef21411003f581cd54e946fd80bca24e0497b75e329b4c0f70d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): plugins/browser-extension/cyberstrikeai-browser-extension/lib/http-normalize.js:31 \u00B7 plugins/browser-extension/cyberstrikeai-browser-extension/lib/http-normalize.js:65 \u2014 the two spans are one implementation copied and then locally edited \u2014 56 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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/http-normalize.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"19ea7b81e57d0be723d638b3da9df91ef3b91f609240f08ebc72ea9c81650ecf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/ui-extra-drawers.cjs:6 \u00B7 scripts/ui-realistic-scenarios.cjs:96 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/ui-extra-drawers.cjs"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b26f76140a2a2bc7ec85ee8ad99a2c5dedd3efdd6c5dfba891110910fd0fd1e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): scripts/ui-extra-drawers.cjs:144 \u00B7 scripts/ui-realistic-scenarios.cjs:382 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/ui-extra-drawers.cjs"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2975d5cd6d2f97265207f5522097ed0d676219b528e66efdd5b551584e7699"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/assets.js:1069 \u00B7 web/static/js/assets.js:1087 \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":"web/static/js/assets.js"},"region":{"startLine":1069}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef29de1ee7705a3b704845708da827e8b41404a90d076e7a7c694db8ae8d5e1d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/audit.js:93 \u00B7 web/static/js/hitl.js:118 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":93}}}],"partialFingerprints":{"codehealthFindingId/v1":"038fc50c510e5df2fc7125a3fe61b3273ede41a41a5840fc41b64e7fe7c12f8f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/audit.js:598 \u00B7 web/static/js/chat.js:9660 \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":"web/static/js/audit.js"},"region":{"startLine":598}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c268073bf61332dceaa22666253c3c0140bb792c9a894934e214543c23bff08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): web/static/js/auth.js:588 \u00B7 web/static/js/mobile-ui.js:98 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 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":"web/static/js/auth.js"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"98f5a705bc2a0b1896044a7ea48ae81008e22c5568965a8294d2ff780d2b76e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/c2.js:163 \u00B7 web/static/js/c2.js:3096 \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":"web/static/js/c2.js"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"930e6aa34cd656dda825a486ab6bdac9b3f6f04f8e9b2896499b3865c7035e9d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/c2.js:3599 \u00B7 web/static/js/c2.js:4356 \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":"web/static/js/c2.js"},"region":{"startLine":3599}}}],"partialFingerprints":{"codehealthFindingId/v1":"f312f7c3a0c9c26ad186631eefcc322141610405bd54b349ec59efd6a3eddc5b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/chat-files.js:620 \u00B7 web/static/js/chat-files.js:1448 \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":"web/static/js/chat-files.js"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"1527bfa1c9fd1fcc0b6400a6bb10bd8e1fbb88e40ff557c83a79117aec26fff0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/chat-files.js:1368 \u00B7 web/static/js/chat-files.js:1418 \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":"web/static/js/chat-files.js"},"region":{"startLine":1368}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa8baec05dcf732bea9802c4c1bf32af53e009c0b1499af93b535330457291b9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/chat-files.js:1381 \u00B7 web/static/js/chat-files.js:1574 \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":"web/static/js/chat-files.js"},"region":{"startLine":1381}}}],"partialFingerprints":{"codehealthFindingId/v1":"91aa341a1bf626815361e65f93b56046e38abb85eceec3c79cbd0ddd1a87ae30"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/chat-files.js:1601 \u00B7 web/static/js/chat-files.js:1740 \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":"web/static/js/chat-files.js"},"region":{"startLine":1601}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bfdfdc0a7969ba5ba155e7c1453707cc2566a0b678c3a585934a7206f0e0f7d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/chat.js:504 \u00B7 web/static/js/chat.js:9138 \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":"web/static/js/chat.js"},"region":{"startLine":504}}}],"partialFingerprints":{"codehealthFindingId/v1":"d75f7d32d1f9442c13b5bf34da63ab998e2330dade94c73c743943ee8276b9d8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/chat.js:9136 \u00B7 web/static/js/settings.js:14 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9136}}}],"partialFingerprints":{"codehealthFindingId/v1":"a40a9a9b9546d5023983edf62ec4b4b655a6c29a4d60fcfcaeae49e98d5b8231"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/chat.js:9896 \u00B7 web/static/js/projects.js:533 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9896}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cdf48b03e113ab86b125b4ceb946c11228b9080625232b150fe55a8443d0ba"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/hitl.js:1419 \u00B7 web/static/js/projects.js:163 \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":"web/static/js/hitl.js"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d12faa786c7714a70b54ad647999821ff9e5baaaf1e6a4e2fd1adfe22ccca4c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): web/static/js/hitl.js:1984 \u00B7 web/static/js/info-collect.js:1720 \u00B7 web/static/js/tasks.js:2933 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1984}}}],"partialFingerprints":{"codehealthFindingId/v1":"93284783967c25887971bcb5b613f6896701b1740d889f569b89978004837101"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): web/static/js/i18n.js:145 \u00B7 web/static/js/i18n.js:242 \u2014 the two spans are one implementation copied and then locally edited \u2014 65 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":"web/static/js/i18n.js"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"344f3127d488a06d0a6bc6be56acbb50e23b90228befc33bd4e8333bd834b5b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/info-collect.js:561 \u00B7 web/static/js/settings.js:133 \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":"web/static/js/info-collect.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"6338b838e53028b85a6c409e9d1f7249574bdca6bad6336366ceaeb16f092985"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/knowledge.js:678 \u00B7 web/static/js/knowledge.js:1104 \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":"web/static/js/knowledge.js"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"3643ae668e9116fa341952bcc3537f21e2acfb1e961118b12a45eeae8ba43ab8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/monitor.js:457 \u00B7 web/static/js/monitor.js:4182 \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":"web/static/js/monitor.js"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ac3412bd284acef5a448b7110326c423ec0a75e53eda2684af67c9be6b5f1b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): web/static/js/monitor.js:5854 \u00B7 web/static/js/webshell.js:2274 \u00B7 web/static/js/webshell.js:3427 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5854}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b132e6de1ec2fc3077a913d5242bb4cea3ff8b86b0581f8e5047d295540fa5b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/notifications.js:224 \u00B7 web/static/js/notifications.js:240 \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":"web/static/js/notifications.js"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"952ddf3533405179b669820f1e895c40c6777b3d0b9f4d5d11a2eaec67022731"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/projects.js:800 \u00B7 web/static/js/projects.js:832 \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":"web/static/js/projects.js"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b313cccd354a9ed35fdb05b278f4dcbc111946fed886864978ab2dcbc796cfc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/projects.js:3237 \u00B7 web/static/js/projects.js:3340 \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":"web/static/js/projects.js"},"region":{"startLine":3237}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1007ee538d9c6fa391d0849bb2f54292ac2d35a5241960d2c625a906328bc79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/roles.js:2 \u00B7 web/static/js/workflows.js:4 \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":"web/static/js/roles.js"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"63b7acb4fd70cf33d3b7820ef6a595cf25176c3c06deed52fb346c058559b1c9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/roles.js:784 \u00B7 web/static/js/roles.js:865 \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":"web/static/js/roles.js"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"4dfcdcffe70db93b95cb9e4c3db47278c6fbc89f17108a91969b838921153f06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/settings.js:543 \u00B7 web/static/js/settings.js:566 \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":"web/static/js/settings.js"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecaaf1a23b03eb327787479d0b66fff65c6de1d9f91551c827994cd7820f5dfa"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/settings.js:3378 \u00B7 web/static/js/settings.js:3388 \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":"web/static/js/settings.js"},"region":{"startLine":3378}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdf05e4e449db98a648aa09201ff4b0f520e1c04dbe1376f39084db65c3b56d7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/skills.js:495 \u00B7 web/static/js/skills.js:611 \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":"web/static/js/skills.js"},"region":{"startLine":495}}}],"partialFingerprints":{"codehealthFindingId/v1":"c17aecd09f282dbce52983cff1e46514769068e010a948406497b235b456a534"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/tasks.js:1114 \u00B7 web/static/js/tasks.js:1852 \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":"web/static/js/tasks.js"},"region":{"startLine":1114}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ba707d1f569aa80debb0182f641fce9b94596313f789ce97577e2aa8aa755d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/tasks.js:2535 \u00B7 web/static/js/tasks.js:2734 \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":"web/static/js/tasks.js"},"region":{"startLine":2535}}}],"partialFingerprints":{"codehealthFindingId/v1":"01a3f2a451dbbb70ee19b4f739f8d84dbba1889cfb0f82d69930bfc7c9d1b9c3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): web/static/js/terminal.js:424 \u00B7 web/static/js/terminal.js:467 \u2014 the two spans are one implementation copied and then locally edited \u2014 93 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":"web/static/js/terminal.js"},"region":{"startLine":424}}}],"partialFingerprints":{"codehealthFindingId/v1":"24c09de52cd97aa07c523edb8fba70c798d329b6bed7c2e58776fc31325777e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 3 locations): web/static/js/vulnerability.js:2321 \u00B7 web/static/js/vulnerability.js:2336 \u00B7 web/static/js/vulnerability.js:2348 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":2321}}}],"partialFingerprints":{"codehealthFindingId/v1":"9326f694b29c197f5ae9541255442a897684873fe1b90d41971923210d11c7d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/webshell.js:102 \u00B7 web/static/js/webshell.js:4215 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"30947de4c6c740db4fc5962dc8fae5d6770afba5ab6d25433c4640d13bbf5da4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/webshell.js:2330 \u00B7 web/static/js/webshell.js:3905 \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":"web/static/js/webshell.js"},"region":{"startLine":2330}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb3058f5fe613d0630f075c7b7759d896cbaa3e58dec0278420432757267004"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/webshell.js:4788 \u00B7 web/static/js/webshell.js:4805 \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":"web/static/js/webshell.js"},"region":{"startLine":4788}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d9eeeadb669e74081c44558f6b54a3f4a3644f462e4f7275361c588753a7672"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/workflows.js:577 \u00B7 web/static/js/workflows.js:725 \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":"web/static/js/workflows.js"},"region":{"startLine":577}}}],"partialFingerprints":{"codehealthFindingId/v1":"c439b953a656c04005a45afb61afe4dd9bbbe1c526421722308342cb3db433da"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): web/static/js/workflows.js:2284 \u00B7 web/static/js/workflows.js:2304 \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":"web/static/js/workflows.js"},"region":{"startLine":2284}}}],"partialFingerprints":{"codehealthFindingId/v1":"5dc0ce88d6b3a23f32b1296d4fb623ad8c2c61db615f24d197698f3da65b6c07"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 4 locations): web/static/js/auth.js:905 \u00B7 web/static/js/chat.js:5874 \u00B7 web/static/js/vulnerability.js:2192 \u00B7 web/static/js/vulnerability.js:2207 \u2014 the 4 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/auth.js"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"0682adc8561b8beeda2a21d449db63817d2fa42088424753c79dfa70f6ce1cfb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/c2.js:344 \u00B7 web/static/js/c2.js:353 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":344}}}],"partialFingerprints":{"codehealthFindingId/v1":"740a737ab497212b3134c702c4e4cad8b874a2663d8a212555634dba52414837"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/c2.js:764 \u00B7 web/static/js/c2.js:773 \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":"web/static/js/c2.js"},"region":{"startLine":764}}}],"partialFingerprints":{"codehealthFindingId/v1":"42443f307b80f6e999c39b3a94daf867b529ebd38ea1a074a5ba6d7e58a9710f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/c2.js:803 \u00B7 web/static/js/rbac.js:117 \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":"web/static/js/c2.js"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"8aa05658fc50c6b9e969e8d2892fa928ce24093379c03c0822cae163bcdfd6b1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): web/static/js/c2.js:1452 \u00B7 web/static/js/c2.js:3289 \u00B7 web/static/js/c2.js:4231 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1452}}}],"partialFingerprints":{"codehealthFindingId/v1":"f04d15aa79514e2fd1a796c3547e90c9f4a561a989e6c216b1b715c0236523e1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/c2.js:2256 \u00B7 web/static/js/c2.js:2266 \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":"web/static/js/c2.js"},"region":{"startLine":2256}}}],"partialFingerprints":{"codehealthFindingId/v1":"366f89c1e09c6b667cd53e564a4c903c3afe92f8b1cdff52116bf97a0565e785"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/chat.js:251 \u00B7 web/static/js/vulnerability.js:886 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"833e5466dc9ff0a89a100d22db30c757cc9363a42d1adf694ed81a9fc4d998c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/chat.js:274 \u00B7 web/static/js/settings.js:249 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"9700c9ca8fee47b703c2ed913f87b8a67a8d0e27b46fa8c8f751b3165d19681f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): web/static/js/chat.js:9018 \u00B7 web/static/js/info-collect.js:1566 \u00B7 web/static/js/vulnerability.js:2393 \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it. There is one copy in each of 3 separate files rather than several in one place, so check first whether these are sibling modules that each declare their own version of one shape \u2014 one per entity, per provider, per language. Where they are, no single extracted module collapses them: each module still has to be written, and what recurs is the TEMPLATE. The moves that do collapse a template are to generate these modules from the set they enumerate, or to replace the repeated construction with one factory each site calls with its own values \u2014 and where the set is the point, each module pinning one distinct thing, the repetition IS the enumeration and there is nothing to delete."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9018}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9ec0d544f08970023bf843ef7d82e5a95b1958afd8dd60aca56dcff7e66639a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/chat.js:9718 \u00B7 web/static/js/projects.js:452 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9718}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5e003166fcc52e4bf46a2a0d2300199b6c06809d3eb30f7ff698ddfdb6a241f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/dashboard.js:1706 \u00B7 web/static/js/monitor.js:7953 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"49eabf875ef401deb524e0b544aa51b4dbd880c1ef84af6680a417bba74a2008"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/dashboard.js:2411 \u00B7 web/static/js/dashboard.js:2428 \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":"web/static/js/dashboard.js"},"region":{"startLine":2411}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c4cafbc9efb9cac4017e4375140c2e303e4226129e2b607b726d39c6d4a7619"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/hitl.js:804 \u00B7 web/static/js/hitl.js:846 \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":"web/static/js/hitl.js"},"region":{"startLine":804}}}],"partialFingerprints":{"codehealthFindingId/v1":"801aef7e8121addf83e282ed610fa10a880983a3e58878622de74dce6600a2f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): web/static/js/info-collect.js:468 \u00B7 web/static/js/info-collect.js:570 \u00B7 web/static/js/settings.js:144 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":468}}}],"partialFingerprints":{"codehealthFindingId/v1":"73f41954d414934f0686a1dfaa02ded8728dd4825a83d89b1477b161e56b8103"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): web/static/js/info-collect.js:161 \u00B7 web/static/js/skills.js:1096 \u2014 the two spans are one implementation copied and then locally edited \u2014 54 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"f97e5174b004df0f44979f8a67aff410386a886ed59262d07ecbcda307047c16"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/monitor.js:1356 \u00B7 web/static/js/monitor.js:1381 \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":"web/static/js/monitor.js"},"region":{"startLine":1356}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b24a68407ea4cbba76d611b1987a4096ad5c6ccbd5592570872496a916d1c91"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/monitor.js:1455 \u00B7 web/static/js/monitor.js:1490 \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":"web/static/js/monitor.js"},"region":{"startLine":1455}}}],"partialFingerprints":{"codehealthFindingId/v1":"438646d95359cee047b26156dfaf87f35d0d9f5a9936e710b6d6e38a4594a150"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/monitor.js:2058 \u00B7 web/static/js/monitor.js:2066 \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":"web/static/js/monitor.js"},"region":{"startLine":2058}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9867ef957652d6bcc2101fdae7e78cace6be6999c47a1eeef69a23bbcf24d19"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): web/static/js/monitor.js:2784 \u00B7 web/static/js/monitor.js:2797 \u00B7 web/static/js/monitor.js:2823 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2784}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f37f891dccbd3326e20a7d651c3267f56e4a2ba87df4c155b2a29c1e664a471"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/projects.js:3986 \u00B7 web/static/js/tasks.js:2280 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3986}}}],"partialFingerprints":{"codehealthFindingId/v1":"bffe82234bbe63c2b2f7980792ebaf1fea5f242d0b15cf2f0876d132505bee6d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 3 locations): web/static/js/roles.js:402 \u00B7 web/static/js/tasks.js:1116 \u00B7 web/static/js/tasks.js:1854 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"8524bd1b3e4e8093caf1ce629eb102fb96a446815e36ba7fbc5cd9ea859ec3b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/roles.js:683 \u00B7 web/static/js/skills.js:395 \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":"web/static/js/roles.js"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d5dc4708914187dfcebbd30145656d62ed4a1e86db2c3dd6963e19f61358095"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/roles.js:742 \u00B7 web/static/js/roles.js:1622 \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":"web/static/js/roles.js"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"177e71fe98cd74dd18a3557e890373b9f565ea126b6dbb42df42696665968b79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/roles.js:1072 \u00B7 web/static/js/settings.js:1728 \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":"web/static/js/roles.js"},"region":{"startLine":1072}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccee407b283cb66956df80bf1e74665850c60f77af304b4ce75941d492af15c1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/roles.js:1137 \u00B7 web/static/js/settings.js:1786 \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":"web/static/js/roles.js"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"93de1f5d9b7d0f67e7a6db893932557bef1515cb914ba4b4276c9306fec26881"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/router.js:47 \u00B7 web/static/js/vulnerability.js:272 \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":"web/static/js/router.js"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8651b50817c29a2bd3d0fb3f1ba3f0d0f6edf232fda34d21037cef3d1cbad6b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/router.js:116 \u00B7 web/static/js/router.js:653 \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":"web/static/js/router.js"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"90b9fe1d9ffc709ff86fd6b5aa8a54a289bc7d051bbb1cc2fdafc4bf98149286"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 8 locations): web/static/js/router.js:195 \u00B7 web/static/js/router.js:203 \u00B7 web/static/js/router.js:211 \u00B7 web/static/js/router.js:224 \u00B7 \u002B4 more site(s) not listed \u2014 all 8 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":"web/static/js/router.js"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd3fdb3c67e4cec535854583883a9b379667f0ad121fc693e882862e9a379f7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/settings.js:219 \u00B7 web/static/js/workflows.js:554 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"b19fa7e4ed5f95dd3033aacab1105e2215d3f45802794a4ac15b767730eb8394"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/settings.js:1766 \u00B7 web/static/js/settings.js:1790 \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":"web/static/js/settings.js"},"region":{"startLine":1766}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fb18116cc770861d8ab3ab956a5852740ad8014075fd33f724d739715434e08"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/settings.js:3449 \u00B7 web/static/js/settings.js:3458 \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":"web/static/js/settings.js"},"region":{"startLine":3449}}}],"partialFingerprints":{"codehealthFindingId/v1":"3155ba923c0629b365e647f7230400652a2350ab28a07047bd4a40c0bc39930e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/skills.js:121 \u00B7 web/static/js/skills.js:408 \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":"web/static/js/skills.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"74a8b6493ea056f5d7a6338e44d3f719b32ce71921a0211e8725da9ee2c1fc66"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/skills.js:232 \u00B7 web/static/js/tasks.js:1688 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/skills.js"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bbfa10183d4fd360b9223ae71210c9e81d7c6267c635727724974e5246c7f79"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/tasks.js:2120 \u00B7 web/static/js/tasks.js:2469 \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":"web/static/js/tasks.js"},"region":{"startLine":2120}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1cc314833740c9acc1f0aa25733ee53fa558b70c6f3ccd4535ffa2d89d6f303"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (8 matched lines \u00D7 2 locations): web/static/js/tool-guard.js:431 \u00B7 web/static/js/vulnerability-workspace.js:212 \u2014 the two spans are one implementation copied and then locally edited \u2014 97 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":"web/static/js/tool-guard.js"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"46e8398212e96f5f0274ff9ada7017ddd28f3bc80b50c66b8804d93f25ceffa2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/webshell.js:4710 \u00B7 web/static/js/webshell.js:4722 \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":"web/static/js/webshell.js"},"region":{"startLine":4710}}}],"partialFingerprints":{"codehealthFindingId/v1":"297802d2048dfa196420bc3fa42449127ffcf21bc984282a3f840310a93514a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (8 lines \u00D7 2 locations): web/static/js/workflows.js:2125 \u00B7 web/static/js/workflows.js:2144 \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":"web/static/js/workflows.js"},"region":{"startLine":2125}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ebcbedb32175b1f0f251b257cd8e054a1d74202eb98ddd576bbd6753b9dc316"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js:146 \u00B7 web/static/js/chat.js:2495 \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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc6ab6c9a9a29019cc3ae37a34b4c3a8e694425bce12aadfff902b2087ed26e2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): scripts/mobile-tap-audit.mjs:335 \u00B7 scripts/mobile-tap-audit.mjs:356 \u2014 the two spans are one implementation copied and then locally edited \u2014 143 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":"scripts/mobile-tap-audit.mjs"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"945806f58243961a610669c498e919980f3ba1d4cdac2a1803c3b6eb1a89fb04"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/api-docs.js:441 \u00B7 web/static/js/api-docs.js:528 \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":"web/static/js/api-docs.js"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"59b6763f7b033634cffe5262a301949a42fd1754276f3bd0c7a6f1f7f74cb1dd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/api-docs.js:546 \u00B7 web/static/js/api-docs.js:561 \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":"web/static/js/api-docs.js"},"region":{"startLine":546}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d04584fb1f013e4eda4ba1a5cf349a2603181834f94c1dffb9037bb725c79ac"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/assets.js:949 \u00B7 web/static/js/chat-files.js:1734 \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":"web/static/js/assets.js"},"region":{"startLine":949}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa986ce0c9277f56f9f45c2bfa8542e2857623de85cfe9140a12ab2f5e92a974"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/assets.js:1225 \u00B7 web/static/js/projects.js:1117 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0ec26f0d06d0dcdd3b30fde2d7c7da45e8615dcf7d8abcf2d655020d34614bb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/attack-chain-context.js:17 \u00B7 web/static/js/chat-plan-progress.js:119 \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":"web/static/js/attack-chain-context.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"251973226d15670688f97e6922a172307a3d8c82c8a2eb3e67b1c604e44703b3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): web/static/js/c2.js:1500 \u00B7 web/static/js/c2.js:3337 \u00B7 web/static/js/c2.js:4280 \u2014 all 3 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1500}}}],"partialFingerprints":{"codehealthFindingId/v1":"c477d7638c3bf4e4910747b8326bbb6bff8a253ef1b7760da10715d8466d0f3b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): web/static/js/chat-files.js:43 \u00B7 web/static/js/projects.js:84 \u00B7 web/static/js/workflows.js:629 \u2014 the 3 copies are spread across 3 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f410e5ff3a902fb129eace89f9b20649e560d41351d06a3383c4289f248b3bd"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/chat-files.js:378 \u00B7 web/static/js/chat-files.js:438 \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":"web/static/js/chat-files.js"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"a179901d470e02c07a949157afd8c33285634339d499ae8a205f07120f64b321"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/chat-files.js:1456 \u00B7 web/static/js/chat-files.js:1475 \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":"web/static/js/chat-files.js"},"region":{"startLine":1456}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b9879795a4199c1fa007cae44f3eaea7cb72dc50f2403510b2cb794af53f2d0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/chat.js:1235 \u00B7 web/static/js/info-collect.js:1257 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"1271fefdfb8d0a6f54fd7c76b0d77a918fc56cc74632dc1868efc223259116b8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/chat.js:4306 \u00B7 web/static/js/chat.js:4330 \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":"web/static/js/chat.js"},"region":{"startLine":4306}}}],"partialFingerprints":{"codehealthFindingId/v1":"8637bddf355702e865b3cb10bf27e242220b0b09920bd6e60bc96a47dfaff46b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/chat.js:4688 \u00B7 web/static/js/chat.js:4700 \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":"web/static/js/chat.js"},"region":{"startLine":4688}}}],"partialFingerprints":{"codehealthFindingId/v1":"23e4b436507bb379108d8b4a91a0698253c3ada51f3362ae0f21a5fd50c3f7cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/chat.js:8658 \u00B7 web/static/js/chat.js:8744 \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":"web/static/js/chat.js"},"region":{"startLine":8658}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd2efa5a8a2ae1f01d47e17b22333a9c2ecb9d0418ee6ec0ac73e95a9f56a72f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/dashboard.js:1657 \u00B7 web/static/js/dashboard.js:1674 \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":"web/static/js/dashboard.js"},"region":{"startLine":1657}}}],"partialFingerprints":{"codehealthFindingId/v1":"038f16f318c431d2262b34bf8ff5f2b9810e10747ad11cbff0bc664f512b50e0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/hitl.js:420 \u00B7 web/static/js/hitl.js:500 \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":"web/static/js/hitl.js"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"4951230f7f1f7183630909d603df9caa77e9f7c48716a4ec8c5ac3a30b887061"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): web/static/js/i18n.js:237 \u00B7 web/static/js/vulnerability.js:3 \u2014 the two spans are one implementation copied and then locally edited \u2014 52 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b318f95199fce25aa45cd2d64cf14f0b7b9c2003c1307bde1c2384c657190df"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/info-collect.js:678 \u00B7 web/static/js/info-collect.js:733 \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":"web/static/js/info-collect.js"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"993052eb3bf8274ffcef06f9ee43e8e31e1e773bb4ee39b63e38b19717bec495"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/info-collect.js:1502 \u00B7 web/static/js/info-collect.js:1576 \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":"web/static/js/info-collect.js"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa39da9f16658ec6f3373b05658de271e8c21d9d972703173b4435be0450a710"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): web/static/js/knowledge.js:1054 \u00B7 web/static/js/settings.js:3061 \u00B7 web/static/js/settings.js:3122 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ab0535d5e0033ab785f977eb61acd1281767fa9245e2a29a821e6becce9383"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/monitor.js:1676 \u00B7 web/static/js/monitor.js:1687 \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":"web/static/js/monitor.js"},"region":{"startLine":1676}}}],"partialFingerprints":{"codehealthFindingId/v1":"e902acc06f95686f627b423dc229af18aca0bd7337b36ce422b9f73d8a8fb6f1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/monitor.js:7566 \u00B7 web/static/js/tasks.js:1539 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7566}}}],"partialFingerprints":{"codehealthFindingId/v1":"16da87d139ad0c3b2a679b25c7f6b46ec72c27d6db006b785e666a5378347670"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (7 matched lines \u00D7 2 locations): web/static/js/notifications.js:126 \u00B7 web/static/js/notifications.js:136 \u2014 the two spans are one implementation copied and then locally edited \u2014 80 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":"web/static/js/notifications.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"51c8d5f37748042e03c4eee428f8b958f26066f7846200b7decddb9b87cc5c31"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/roles.js:810 \u00B7 web/static/js/roles.js:1078 \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":"web/static/js/roles.js"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"26fb082776f99554ea2918d2adc44dcf6ac51f02e3050dd8564b3f5b3de6fd42"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/settings.js:502 \u00B7 web/static/js/settings.js:510 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":502}}}],"partialFingerprints":{"codehealthFindingId/v1":"218229329d8d43526ea050b728491644948500548379a8eeac9c277e70e216f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/settings.js:538 \u00B7 web/static/js/settings.js:547 \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":"web/static/js/settings.js"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ed72c23fb36f890a289d4dae0b5625129dde85eadff26955ab420aaca3ecdca"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/settings.js:561 \u00B7 web/static/js/settings.js:570 \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":"web/static/js/settings.js"},"region":{"startLine":561}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd84a2ee62af07592d3ad9a6460b98213ad0abc444ee74a92feeb5dc8f26f14e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/settings.js:1811 \u00B7 web/static/js/vulnerability.js:1701 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"66e16fb463c44bcf94d122bf2fe6cbd50677c2cf13168d2901546685d4b8e9d6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/settings.js:3719 \u00B7 web/static/js/settings.js:3802 \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":"web/static/js/settings.js"},"region":{"startLine":3719}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1b5c45023e2dc6aacfeae8eb005c1bb4ffc4739bf855ddd660f3555dcab557f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/settings.js:4004 \u00B7 web/static/js/settings.js:4069 \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":"web/static/js/settings.js"},"region":{"startLine":4004}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa46436e71edf63f4a84e321f81740fe1580a7161dca93f977b50b03a147d6e3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/skills.js:367 \u00B7 web/static/js/skills.js:375 \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":"web/static/js/skills.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7d46786fff572dcb0139ef8a3d396241d9f939f19c3da4337cc5a691d9c6054"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/tasks.js:217 \u00B7 web/static/js/tasks.js:283 \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":"web/static/js/tasks.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"33e62b7f3b7c06efec02940c8c7e463cf8f63e92f28a3e31ad874fc8d89af96f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/tasks.js:2494 \u00B7 web/static/js/vulnerability.js:183 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2494}}}],"partialFingerprints":{"codehealthFindingId/v1":"dfcafe181ce44af822ad807d1fd4368747527cd9dcb1f0cdd97a30242af864ad"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/tool-guard.js:316 \u00B7 web/static/js/tool-guard.js:384 \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":"web/static/js/tool-guard.js"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"c96ee4d0b5b0d66550a4dd2504fe7126025e5247ed1dd71360a8afb013964025"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/webshell.js:1989 \u00B7 web/static/js/webshell.js:2051 \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":"web/static/js/webshell.js"},"region":{"startLine":1989}}}],"partialFingerprints":{"codehealthFindingId/v1":"60e4e627c835743f281f034a26c2a14028d60cb42f5fca6b18935548e82d547a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/webshell.js:2272 \u00B7 web/static/js/webshell.js:3425 \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":"web/static/js/webshell.js"},"region":{"startLine":2272}}}],"partialFingerprints":{"codehealthFindingId/v1":"e15fcc996adbcab469c523ed8579ae0d93104bf301c4c1c7ce184e6045a201cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 3 locations): web/static/js/webshell.js:3584 \u00B7 web/static/js/webshell.js:3705 \u00B7 web/static/js/webshell.js:3819 \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":"web/static/js/webshell.js"},"region":{"startLine":3584}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f9484f599a5f37d9da090e2018e1cd09a97b55b639c0900649fb7d86978d5a6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/webshell.js:4102 \u00B7 web/static/js/webshell.js:4145 \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":"web/static/js/webshell.js"},"region":{"startLine":4102}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5884d3506ab64edff73b0a5d17b8551c20469f036d57e04c8df225db2dc4c59"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/webshell.js:4509 \u00B7 web/static/js/webshell.js:4524 \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":"web/static/js/webshell.js"},"region":{"startLine":4509}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dea297ea352c54ee780cf7d082019f3abf02421508034002cf6bddb3748bab7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/webshell.js:4819 \u00B7 web/static/js/webshell.js:4924 \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":"web/static/js/webshell.js"},"region":{"startLine":4819}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae1c5296266b855997633c1027947f754f114c457b9d53797024d3de737d7128"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): web/static/js/workflows.js:1604 \u00B7 web/static/js/workflows.js:1618 \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":"web/static/js/workflows.js"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ebac30be0199fe8a7797ca132cd86eeeecc3ecbf8d64aa2aea6a9666071866"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): web/static/js/api-docs.js:910 \u00B7 web/static/js/knowledge.js:323 \u00B7 web/static/js/knowledge.js:1860 \u2014 the 3 copies are spread across 2 files, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/api-docs.js"},"region":{"startLine":910}}}],"partialFingerprints":{"codehealthFindingId/v1":"501b6390656755dbbf4b1c09b15d6218b9979d3510865b8c5738e2429d2162f6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/audit.js:284 \u00B7 web/static/js/audit.js:586 \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":"web/static/js/audit.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a142741add9d34fd54eff1e42d6939338c42973761b2b1a253e510b2f09c81b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/auth.js:22 \u00B7 web/static/js/auth.js:75 \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":"web/static/js/auth.js"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8200c6f429ea04b4644ed2954e68e3d9866343f96f763dc685470b0e751efd8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/c2.js:646 \u00B7 web/static/js/c2.js:665 \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":"web/static/js/c2.js"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf5b8502e034c38a6436ba8ca5682f9141d5b4b8ea63f7843c9ba79d802367cf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/chat-files.js:1039 \u00B7 web/static/js/chat-files.js:1208 \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":"web/static/js/chat-files.js"},"region":{"startLine":1039}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c1f540f91793dc205d805aa3d77332bf342a7afc7eb3a21c8f34b5cecae82ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 3 locations): web/static/js/chat.js:4106 \u00B7 web/static/js/chat.js:5262 \u00B7 web/static/js/monitor.js:1772 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4106}}}],"partialFingerprints":{"codehealthFindingId/v1":"555403d5608cda84ee23db317019386e0bf6b181263c3dcd7f670cbb63267af3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/chat.js:5260 \u00B7 web/static/js/monitor.js:1770 \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":"web/static/js/chat.js"},"region":{"startLine":5260}}}],"partialFingerprints":{"codehealthFindingId/v1":"554ff6a7f42b5b66c3016b51e7e286d92c95912e8f243c0b6f1f9b906b81ef05"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/chat.js:10586 \u00B7 web/static/js/chat.js:11133 \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":"web/static/js/chat.js"},"region":{"startLine":10586}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5c712a3d3841109812d179a91326c3b96ebb388c8e2fe977b0153db4a526c27"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/dashboard.js:363 \u00B7 web/static/js/dashboard.js:372 \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":"web/static/js/dashboard.js"},"region":{"startLine":363}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b733daa673c903c7c53944364679191a8f7156c28c325bb1e47f99bd81a8037"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/hitl.js:115 \u00B7 web/static/js/monitor.js:75 \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":"web/static/js/hitl.js"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f7ba88f72eec875e7fdf387ad1c0872f760340beda0140f9bd95fcb7cb5982"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/info-collect.js:695 \u00B7 web/static/js/info-collect.js:732 \u2014 all 2 copies are in the same file, and the CITED SPAN is a run of DECLARATIONS inside a construct \u2014 the members of a type, or the entries of an object or array literal \u2014 with no statement anywhere in it. Do not read this as an extract-a-helper row: nothing here executes, so there is no call site, and a call expression cannot stand where a member declaration or a literal\u0027s entry was. What repeats is a SHAPE, and which shape decides the move. Where the copies declare the same members, the repetition is a missing common ancestor: give it a base type, an interface both extend, a generic instantiated twice, or \u2014 where the copies are a literal\u0027s entries rather than a type\u0027s members \u2014 one shared constant each site spreads or refers to, so the set is written once. Where they declare DIFFERENT members and only the form is shared \u2014 a decorator and its options, an annotation, a registration table\u0027s keys \u2014 the form is prescribed by a framework or a schema rather than copied, and the only collapse available is to generate the declarations from that schema; where you do not own the generator, this is the cost of the framework and there is nothing to extract. Check which of the two it is before acting: these copies still drift apart the first time only one of them is edited, which is why the repetition is reported, but the sentence to act on is not the same in both cases."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":695}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf69b1d456fef06ae751ca20cb91c12cdf9cac562842e0ec990090a943556ae0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/monitor.js:2395 \u00B7 web/static/js/monitor.js:2417 \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":"web/static/js/monitor.js"},"region":{"startLine":2395}}}],"partialFingerprints":{"codehealthFindingId/v1":"c630f6a6f7125f6ee9b8ce1e15db68b3eb742637f0f18f3aad963efe6e6ab4fb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/monitor.js:3033 \u00B7 web/static/js/monitor.js:3041 \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":"web/static/js/monitor.js"},"region":{"startLine":3033}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a618d6c0fa307d067fd440760148b6862338268a32b24f3a5c14fabbdabca2c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/monitor.js:4348 \u00B7 web/static/js/projects.js:3458 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4348}}}],"partialFingerprints":{"codehealthFindingId/v1":"f94225435887588237430a5a26fe92facc99068c37f439da9b09fcbb15f0537e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/monitor.js:5428 \u00B7 web/static/js/monitor.js:5503 \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":"web/static/js/monitor.js"},"region":{"startLine":5428}}}],"partialFingerprints":{"codehealthFindingId/v1":"937ae1f2793b127b7f3e3ad5686ed65f6d0f48420622c8217b1922a2c953c424"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/monitor.js:6663 \u00B7 web/static/js/monitor.js:6718 \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":"web/static/js/monitor.js"},"region":{"startLine":6663}}}],"partialFingerprints":{"codehealthFindingId/v1":"d020a6319adc6567bc9249923c3dc384f9c0cd37c6791e40d543923c5168d250"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/monitor.js:6785 \u00B7 web/static/js/monitor.js:6878 \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":"web/static/js/monitor.js"},"region":{"startLine":6785}}}],"partialFingerprints":{"codehealthFindingId/v1":"38b1a91708964eb807102429b72ffcea656707cb08251317866819529e94ba13"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/monitor.js:8449 \u00B7 web/static/js/monitor.js:8468 \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":"web/static/js/monitor.js"},"region":{"startLine":8449}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e6387866a110b60151f07ce1e78d1ca591c52c775b84f1403376dad1a318484"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/projects.js:1944 \u00B7 web/static/js/projects.js:1961 \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":"web/static/js/projects.js"},"region":{"startLine":1944}}}],"partialFingerprints":{"codehealthFindingId/v1":"c76fff1aefb79898385f9cedeaf72dd5d684d002be96e252176b3d087094f3bf"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/settings.js:4044 \u00B7 web/static/js/settings.js:4117 \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":"web/static/js/settings.js"},"region":{"startLine":4044}}}],"partialFingerprints":{"codehealthFindingId/v1":"b32e3db6310ade0297dc4cfcf9646dbaf230daa8ef461f0dfe7bb21e7e930fa9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/settings.js:4627 \u00B7 web/static/js/settings.js:4645 \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":"web/static/js/settings.js"},"region":{"startLine":4627}}}],"partialFingerprints":{"codehealthFindingId/v1":"092576a1bd41ee993290b287bb133964dbc85db79c018bd55ada77051a1300d1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/terminal.js:88 \u00B7 web/static/js/webshell.js:4035 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b292d2aa1a33803d1978348eb12c671a669c062cb4bc5cf8439681406e8efd3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/vulnerability.js:2562 \u00B7 web/static/js/workflows.js:2070 \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":"web/static/js/vulnerability.js"},"region":{"startLine":2562}}}],"partialFingerprints":{"codehealthFindingId/v1":"58f076c7c5d554dca91e25698cf6c611c18fec952ade824a504e3329897d6ff7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/webshell.js:1466 \u00B7 web/static/js/webshell.js:1689 \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":"web/static/js/webshell.js"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"da8bfc61c5b5ea088675dab8eb95c5e65de77dd3f403339e0485bd81339fe070"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/webshell.js:1591 \u00B7 web/static/js/webshell.js:2894 \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":"web/static/js/webshell.js"},"region":{"startLine":1591}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6799fd777cecefe043b896ac637d2cb40a353ba637a34f488162c8913ba5a3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/webshell.js:1602 \u00B7 web/static/js/webshell.js:3003 \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":"web/static/js/webshell.js"},"region":{"startLine":1602}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46e27b19ff94f44a951b98c25739bc9c79dce3f2d08d8406ce57b1b4d24219d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/webshell.js:4579 \u00B7 web/static/js/webshell.js:4666 \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":"web/static/js/webshell.js"},"region":{"startLine":4579}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb9806c7a67023a195b48dd826b3bdbe4ca7b54bd88f51d0d76a5782f4816cf2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): web/static/js/webshell.js:5233 \u00B7 web/static/js/webshell.js:5301 \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":"web/static/js/webshell.js"},"region":{"startLine":5233}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc64850cb46b874896746e1df07573c8f8ca7f2457b47712cfe610c082fba3af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 5 locations): web/static/js/agents.js:133 \u00B7 web/static/js/vulnerability.js:1802 \u00B7 web/static/js/vulnerability.js:1807 \u00B7 web/static/js/vulnerability.js:1812 \u00B7 \u002B1 more site(s) not listed \u2014 the 3 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/agents.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"f086f42e40b38fb7054ff5320beb1abf750bdbf4cc33d1a25821cc1f2dd186f0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/assets.js:1142 \u00B7 web/static/js/workflows.js:2187 \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":"web/static/js/assets.js"},"region":{"startLine":1142}}}],"partialFingerprints":{"codehealthFindingId/v1":"40d759bdf7a6e108a730d34801270ed0bab3f3a9e77faedcd8e96bfa41d6645a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): web/static/js/assets.js:1303 \u00B7 web/static/js/assets.js:1308 \u00B7 web/static/js/assets.js:1313 \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":"web/static/js/assets.js"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"90147bce5cff2ec85dbb004bdd7bc266795b83fc75aaa38cb1df52386c01bc2c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (5 matched lines \u00D7 2 locations): web/static/js/assets.js:1523 \u00B7 web/static/js/tool-guard.js:435 \u2014 the two spans are one implementation copied and then locally edited \u2014 64 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":"web/static/js/assets.js"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b70b280bef52166558c5320977f5a2133c0b1407bd31a1857bbadf657190be9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/chat.js:4922 \u00B7 web/static/js/monitor.js:9522 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4922}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f3644e0a33f56c130a729c31ccfb85d343f2627ac1b72e05ae1c70aa9aba649"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/chat.js:9188 \u00B7 web/static/js/workflows.js:500 \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":"web/static/js/chat.js"},"region":{"startLine":9188}}}],"partialFingerprints":{"codehealthFindingId/v1":"18e8ce098f60a6d5f940624807071ea61f4408a5cc069cec2978e3183a71ef45"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/monitor.js:226 \u00B7 web/static/js/webshell.js:3602 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":226}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f10c9a109a1c3670c9e96b347980b3ceb1cb7a3c729ced247c6b05d4ec1ac05"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/monitor.js:4369 \u00B7 web/static/js/projects.js:2674 \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":"web/static/js/monitor.js"},"region":{"startLine":4369}}}],"partialFingerprints":{"codehealthFindingId/v1":"d40f87cc9d4d573e91448adae87e96f40005678ee465b3e4f569d7c4b91a9567"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/monitor.js:6673 \u00B7 web/static/js/monitor.js:6793 \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":"web/static/js/monitor.js"},"region":{"startLine":6673}}}],"partialFingerprints":{"codehealthFindingId/v1":"5f8e428223900dad97b6a49651c61f74bbeac6ba23c1e2c9b11036d6105066c7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/monitor.js:6683 \u00B7 web/static/js/monitor.js:6866 \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":"web/static/js/monitor.js"},"region":{"startLine":6683}}}],"partialFingerprints":{"codehealthFindingId/v1":"76cc60faba4d8fcc0256838ddc52fb1ac11adc45f2778eaadbadb56933f7fd68"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/monitor.js:9336 \u00B7 web/static/js/monitor.js:9471 \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":"web/static/js/monitor.js"},"region":{"startLine":9336}}}],"partialFingerprints":{"codehealthFindingId/v1":"404fb80bcfad984bd839737a90ca00253129e1baaa11377c314ae5cac584d0e8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/monitor.js:9516 \u00B7 web/static/js/monitor.js:9523 \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":"web/static/js/monitor.js"},"region":{"startLine":9516}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca06cb70557598282bee6c9712bde8367029eaeae34a798271f0026c84320589"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/monitor.js:9551 \u00B7 web/static/js/monitor.js:9685 \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":"web/static/js/monitor.js"},"region":{"startLine":9551}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0e921279ac54676afa3a942f452456154706ff920d407191ab61b3f339166c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/projects.js:530 \u00B7 web/static/js/projects.js:551 \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":"web/static/js/projects.js"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"7069bec7e950f4d517dfd8b28fd472dcd28c3d15c1749910df87d28bcf6f2333"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/projects.js:3141 \u00B7 web/static/js/projects.js:3322 \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":"web/static/js/projects.js"},"region":{"startLine":3141}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf498a1d4b948a3e59c51551c1be5ec692f64dcf0c11a4a9b31e4508a4afdc92"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/settings.js:1913 \u00B7 web/static/js/settings.js:4074 \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":"web/static/js/settings.js"},"region":{"startLine":1913}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d4be081717ae966215ddd44524c366cf022207a158321cf80139203bdb66c0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/settings.js:2995 \u00B7 web/static/js/workflow-package-client.js:26 \u2014 the 2 copies sit in sibling files in one directory, so check first whether one of them (or an existing module there) already owns this behaviour and the others should call it; otherwise extract it into one module in that directory and have each site call it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2995}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aed50b8bde40e7af201c81f952a0b0cc3f4aa8a8a5e00934996af2115f4d007"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/settings.js:4691 \u00B7 web/static/js/settings.js:4750 \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":"web/static/js/settings.js"},"region":{"startLine":4691}}}],"partialFingerprints":{"codehealthFindingId/v1":"c730924a2588c3c0d50602420563a43cc2238336b650e872b293d82ac08782f8"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/storage.js:296 \u00B7 web/static/js/storage.js:301 \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":"web/static/js/storage.js"},"region":{"startLine":296}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6ac6fec471c76dc960be87bed38c11686e5fc8e40eae40b6a8269429380a445"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/terminal.js:368 \u00B7 web/static/js/terminal.js:512 \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":"web/static/js/terminal.js"},"region":{"startLine":368}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd677039419f7abfadee9fbce9a08084a09c987580cde5d4fb72332d1448c287"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/vulnerability.js:1750 \u00B7 web/static/js/vulnerability.js:2595 \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":"web/static/js/vulnerability.js"},"region":{"startLine":1750}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bc15dee6db587fdcf7d562424083b487b7452aa2a7ddf3b3421f01b18959f22"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 3 locations): web/static/js/webshell.js:2244 \u00B7 web/static/js/webshell.js:2292 \u00B7 web/static/js/webshell.js:3460 \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":"web/static/js/webshell.js"},"region":{"startLine":2244}}}],"partialFingerprints":{"codehealthFindingId/v1":"60c1a96e5413edd646af2c7c4906946574b572e3da5505dace9b101ae464dd04"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/webshell.js:2343 \u00B7 web/static/js/webshell.js:3327 \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":"web/static/js/webshell.js"},"region":{"startLine":2343}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f33d8565e5a59248bbfa7c85d656e03c28e6bde01c7065c5e0b8211f3f68db7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): web/static/js/webshell.js:3062 \u00B7 web/static/js/webshell.js:3099 \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":"web/static/js/webshell.js"},"region":{"startLine":3062}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66b9846e186a2ef4fd8821320a2e4daf17d3e8f175c324c459bd0d1c15d417c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleStreamEvent (cyclomatic 502, cognitive 756): handleStreamEvent has cyclomatic complexity 502 and cognitive complexity 756; 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":"web/static/js/monitor.js"},"region":{"startLine":2918}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8bfb248515caeead7eeee6b6cf1f4343f8749747705a1f03da3bd366f2f8d45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadConfig (cyclomatic 206, cognitive 263): loadConfig has cyclomatic complexity 206 and cognitive complexity 263; 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":"web/static/js/settings.js"},"region":{"startLine":790}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f68e249abaad7b738afcef3a7098dab90a61970c3f7ca755d1f2aac7633102f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addTimelineItem (cyclomatic 204, cognitive 257): addTimelineItem has cyclomatic complexity 204 and cognitive complexity 257; 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":"web/static/js/monitor.js"},"region":{"startLine":6638}}}],"partialFingerprints":{"codehealthFindingId/v1":"867d191d5a8cbe9a0dba5148ff64b86d1e5e73766f78253cf1c2e15665c4e38e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function processChunk (cyclomatic 193, cognitive 403): processChunk has cyclomatic complexity 193 and cognitive complexity 403; 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":"web/static/js/webshell.js"},"region":{"startLine":3544}}}],"partialFingerprints":{"codehealthFindingId/v1":"adf449e95ff6f4150e35855f9689c66dfb61a690216e6fd62ca63f4aad486f7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderOneProcessDetail (cyclomatic 183, cognitive 269): renderOneProcessDetail has cyclomatic complexity 183 and cognitive complexity 269; 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":"web/static/js/chat.js"},"region":{"startLine":4299}}}],"partialFingerprints":{"codehealthFindingId/v1":"b833d398dad9ae0073085dc3f84cfcc1f934a444b2c5f1107da659456d27c5e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshWebshellUIOnLanguageChange (cyclomatic 140, cognitive 274): refreshWebshellUIOnLanguageChange has cyclomatic complexity 140 and cognitive complexity 274; 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":"web/static/js/webshell.js"},"region":{"startLine":5031}}}],"partialFingerprints":{"codehealthFindingId/v1":"5566bece29be7315567323aa7b5fba3f1856c3d345711245b38c80de77caa1b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applySettings (cyclomatic 122, cognitive 129): applySettings has cyclomatic complexity 122 and cognitive complexity 129; 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":"web/static/js/settings.js"},"region":{"startLine":1908}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d06a5778fca25e7a7af59c45fd8f2eb4f8e38f0c9f1a74bb75c128242e6308"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshDashboard (cyclomatic 101, cognitive 151): refreshDashboard has cyclomatic complexity 101 and cognitive complexity 151; 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":"web/static/js/dashboard.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"85b7517881ab547dbe7bf5a6d5f50c92b828f6ce7e408bec50ed565866918aed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildWebshellTimelineItemFromDetail (cyclomatic 93, cognitive 135): buildWebshellTimelineItemFromDetail has cyclomatic complexity 93 and cognitive complexity 135; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2220}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f09aa1de192e17f8f4091ab5df9a24d97c74915f74b0826ff31ae7604f8d4ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadConversation (cyclomatic 93, cognitive 124): loadConversation has cyclomatic complexity 93 and cognitive complexity 124; 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":"web/static/js/chat.js"},"region":{"startLine":6381}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d44dd1d692fba08eb2b14014e34ec8356a19799c7c6e32e636bdb138fb5220d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectWebshell (cyclomatic 92, cognitive 33): selectWebshell has cyclomatic complexity 92 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":"web/static/js/webshell.js"},"region":{"startLine":2446}}}],"partialFingerprints":{"codehealthFindingId/v1":"26807f3a8d37fc0eed87ad306affceeb358102c62b164295c134118f0c683fa8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sendMessage (cyclomatic 80, cognitive 97): sendMessage has cyclomatic complexity 80 and cognitive complexity 97; 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":"web/static/js/chat.js"},"region":{"startLine":2248}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8065f2d6182f51680117704b3dad75b75bf8e366450ce6a986d7bdf81b7a885"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initPage (cyclomatic 77, cognitive 81): initPage has cyclomatic complexity 77 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":"web/static/js/router.js"},"region":{"startLine":410}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeed021e32ddfd15a305e9e86dfaf272d56586966310d9b69b93a731400a4849"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 73, cognitive 92): (anonymous) has cyclomatic complexity 73 and cognitive complexity 92; 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":"web/static/js/monitor.js"},"region":{"startLine":5625}}}],"partialFingerprints":{"codehealthFindingId/v1":"816a1e4399aa78b05abad71555ee32534993e63b0999da4829be4d3071031d01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadProcessDetailsPaginated (cyclomatic 70, cognitive 88): loadProcessDetailsPaginated has cyclomatic complexity 70 and cognitive complexity 88; 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":"web/static/js/monitor.js"},"region":{"startLine":2369}}}],"partialFingerprints":{"codehealthFindingId/v1":"4589da6a5d45b93a4b171888a3e82a65f82444177063c5316a4432d1679f5264"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 64, cognitive 83): (anonymous) has cyclomatic complexity 64 and cognitive complexity 83; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/monitor.js"},"region":{"startLine":9573}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ec841999da6d8f9d3cda600fd3a58908985758ca2c704c7980a7aaa549822d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildInlineHitlApprovalHtml (cyclomatic 60, cognitive 68): buildInlineHitlApprovalHtml has cyclomatic complexity 60 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":"web/static/js/monitor.js"},"region":{"startLine":4607}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b93b00d0e57c1e728e7985d6437b25dd57a5c265aa10420d3d18b84dfdec239"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderExternalMCPList (cyclomatic 54, cognitive 85): renderExternalMCPList has cyclomatic complexity 54 and cognitive complexity 85; 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":"web/static/js/settings.js"},"region":{"startLine":4502}}}],"partialFingerprints":{"codehealthFindingId/v1":"487c8f852d5de3f0fb4504d8e08f903e9e222d605209a49599b811f1bf4b9334"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 53, cognitive 68): (anonymous) has cyclomatic complexity 53 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":"web/static/js/c2.js"},"region":{"startLine":2355}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd4aaf7bc49b7199436613cbc01a2f0b0f384edf5ec19467e8de50b251798f41"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function run (cyclomatic 53, cognitive 59): run has cyclomatic complexity 53 and cognitive complexity 59; 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":"runtime/pi/src/worker.ts"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"9de847f1bacfeefe42270a374669d6c748765952297f61af2f77caae14a10e8f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function restoreHitlInlineForConversation (cyclomatic 51, cognitive 91): restoreHitlInlineForConversation has cyclomatic complexity 51 and cognitive complexity 91; 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":"web/static/js/monitor.js"},"region":{"startLine":5375}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfa0829850513d17f8141688708c9682ceff493907bbacb284223b7d59e36fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderOneMessage (cyclomatic 50, cognitive 66): renderOneMessage has cyclomatic complexity 50 and cognitive complexity 66; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6531}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7baa74c298e34a6c2bc0a0b44d7c7712c839b5447dc9f4e9fb94022ed7f81ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncVulnerabilityFiltersFromLocationHash (cyclomatic 49, cognitive 49): syncVulnerabilityFiltersFromLocationHash has cyclomatic complexity 49 and cognitive complexity 49; 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":"web/static/js/vulnerability.js"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5060133723047e598be09e74e2bf302e102081775505e9075c9c64b152ae11c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assetImportRecord (cyclomatic 49, cognitive 40): assetImportRecord has cyclomatic complexity 49 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"1673802aa0267571ea1ad1e68872ed1e1e9842e1ee902d29b430e9f5451f34fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showBatchQueueDetail (cyclomatic 48, cognitive 65): showBatchQueueDetail has cyclomatic complexity 48 and cognitive complexity 65; 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":"web/static/js/tasks.js"},"region":{"startLine":1761}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0b8214d37bb80d2df9a75bdbacbf8bc666059dde2b4c3d7163b6d8b4897afa1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMCPDetailModal (cyclomatic 45, cognitive 70): renderMCPDetailModal has cyclomatic complexity 45 and cognitive complexity 70; 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":"web/static/js/chat.js"},"region":{"startLine":5600}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac971ff17cace7eba102aef40e28b53eac3e24478c6459e4aecfec379ada0c22"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncModelListFetchButtons (cyclomatic 45, cognitive 60): syncModelListFetchButtons has cyclomatic complexity 45 and cognitive complexity 60; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3478}}}],"partialFingerprints":{"codehealthFindingId/v1":"de428627fcc9139cffc1cafefa2d447736b50179e42b0a31e27fc2ae0055a560"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveKnowledgeItem (cyclomatic 44, cognitive 49): saveKnowledgeItem has cyclomatic complexity 44 and cognitive complexity 49; 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":"web/static/js/knowledge.js"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa627a4c0ca6b161b5b9be35c3228b46e75a7cff9002d6019b96fc86f7eb3ac3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderProcessDetails (cyclomatic 43, cognitive 54): renderProcessDetails has cyclomatic complexity 43 and cognitive complexity 54; 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":"web/static/js/chat.js"},"region":{"startLine":4069}}}],"partialFingerprints":{"codehealthFindingId/v1":"68177bc6d2ed9664bb4b42174e7049a74f311ff54070e3cac47f64ffe2225e79"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveExternalMCP (cyclomatic 42, cognitive 57): saveExternalMCP has cyclomatic complexity 42 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":4734}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c35b65bc8a631b7aa979dee08f3287eaa93aa44fa66b5a6a0d7478c59906e9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readTypedConfig (cyclomatic 41, cognitive 35): readTypedConfig has cyclomatic complexity 41 and cognitive complexity 35; 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":"web/static/js/workflows.js"},"region":{"startLine":1175}}}],"partialFingerprints":{"codehealthFindingId/v1":"a162b7610885a8d3525e8d52985dc56c42f83c1b742cae63e1c0da410cce42c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchChatSystemModelsForChannel (cyclomatic 40, cognitive 36): fetchChatSystemModelsForChannel has cyclomatic complexity 40 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat.js"},"region":{"startLine":1547}}}],"partialFingerprints":{"codehealthFindingId/v1":"86646f0a125a461d26f855bdebec470c5b8cc13fb58c677f11ca936f22c1787a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function watchdogProbe (cyclomatic 39, cognitive 34): watchdogProbe has cyclomatic complexity 39 and cognitive complexity 34; 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":"web/static/js/update.js"},"region":{"startLine":290}}}],"partialFingerprints":{"codehealthFindingId/v1":"77a8646c397d4b9f0a8a3c141791f1f86b88162ec9c23d321f7cd472de3d26e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendTimelineItem (cyclomatic 38, cognitive 57): appendTimelineItem has cyclomatic complexity 38 and cognitive complexity 57; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3418}}}],"partialFingerprints":{"codehealthFindingId/v1":"d21d1b81cf80d8243155514642a011127d4106c642ae678db9eb220729fefdf0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateNavState (cyclomatic 38, cognitive 49): updateNavState has cyclomatic complexity 38 and cognitive complexity 49; 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":"web/static/js/router.js"},"region":{"startLine":183}}}],"partialFingerprints":{"codehealthFindingId/v1":"d899610f4cca25facd0622a5030408198b7a0162f7162b2865feff28484ddcf7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadConversations (cyclomatic 38, cognitive 47): loadConversations has cyclomatic complexity 38 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10004}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f36e0013a8e192baa76281917a8f845f6c5d6da03b48750b50d54f01f884c3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 37, cognitive 50): (anonymous) has cyclomatic complexity 37 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":"web/static/js/chat.js"},"region":{"startLine":7188}}}],"partialFingerprints":{"codehealthFindingId/v1":"e0751dfdc95dd2ae56235ea6821bf9f8968e2bfdb43667016d9a2a7e97110b40"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addMessage (cyclomatic 37, cognitive 46): addMessage has cyclomatic complexity 37 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3558}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ca88618fcab3ec9bb51fe3ad6043c3877de0a3e45f109e143937016c7705d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveInlineHitlDecision (cyclomatic 37, cognitive 31): resolveInlineHitlDecision has cyclomatic complexity 37 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4529}}}],"partialFingerprints":{"codehealthFindingId/v1":"214a21080bfb3ba3aff9f424e04d9bf438c2e474051e914de672a4549b3ec958"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function restoreWorkflowHitlInlineForConversation (cyclomatic 36, cognitive 49): restoreWorkflowHitlInlineForConversation has cyclomatic complexity 36 and cognitive complexity 49; 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":"web/static/js/monitor.js"},"region":{"startLine":5218}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3d775eab22697302bdb9fef2de3c2a48325c5dc0e3eee3bcc5be8d199b2a71c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openHitlLogModal (cyclomatic 36, cognitive 47): openHitlLogModal has cyclomatic complexity 36 and cognitive complexity 47; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1874}}}],"partialFingerprints":{"codehealthFindingId/v1":"987793dfb95a9f399ca2596995b667c915d32420c4bf06388289da873ef48ec4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeToolResultIntoCallItem (cyclomatic 36, cognitive 43): mergeToolResultIntoCallItem has cyclomatic complexity 36 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6197}}}],"partialFingerprints":{"codehealthFindingId/v1":"6be6dba9b3f9c0b42bb2c93edfeb6414dc59c8199e5959b1bfb88ff083df8024"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatTaskCommand (cyclomatic 36, cognitive 38): formatTaskCommand has cyclomatic complexity 36 and cognitive complexity 38; 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":"web/static/js/c2.js"},"region":{"startLine":365}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3e9c8f3a57a138bdb79e22fe56e2c10248cf83b8e19cd95ad30ce81a1553267"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSeverityInsights (cyclomatic 36, cognitive 38): renderSeverityInsights has cyclomatic complexity 36 and cognitive complexity 38; 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":"web/static/js/dashboard.js"},"region":{"startLine":1587}}}],"partialFingerprints":{"codehealthFindingId/v1":"30e451c35bb5ea35401486eddc5989e35eb63074bb647dc32894fb5139a856f7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function writeAIChannelToMainForm (cyclomatic 36, cognitive 38): writeAIChannelToMainForm has cyclomatic complexity 36 and cognitive complexity 38; 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":"web/static/js/settings.js"},"region":{"startLine":2679}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dad94b846ad988c346c24bb2fa0da23f3c3cb82a98d14549e3272c7b849c334"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMonitorPagination (cyclomatic 36, cognitive 34): renderMonitorPagination has cyclomatic complexity 36 and cognitive complexity 34; 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":"web/static/js/monitor.js"},"region":{"startLine":9265}}}],"partialFingerprints":{"codehealthFindingId/v1":"0677d68e7c8c5efd1cce6b5aebc64a5776de358624ae1606175f1e53cbe27afa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMonitorExecutions (cyclomatic 35, cognitive 46): renderMonitorExecutions has cyclomatic complexity 35 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9045}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fff3512f8d0f20cc689e977db4b07614846921c3f5795ae3b771745567d8248"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 34, cognitive 76): (anonymous) has cyclomatic complexity 34 and cognitive complexity 76; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/check-ui-design-system.cjs"},"region":{"startLine":47}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b35affebbe191f6027fb6b20fdfceb4d2fbc16964e379f7deb301d00d039247"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function coalesceProcessDetailsToolPairs (cyclomatic 34, cognitive 72): coalesceProcessDetailsToolPairs has cyclomatic complexity 34 and cognitive complexity 72; 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":"web/static/js/monitor.js"},"region":{"startLine":6314}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bcd4c21704d85148376d94d9bb98be390e686b37e259e47e0435b9dd4fba749"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testHitlAuditModelConnection (cyclomatic 34, cognitive 53): testHitlAuditModelConnection has cyclomatic complexity 34 and cognitive complexity 53; 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":"web/static/js/settings.js"},"region":{"startLine":3824}}}],"partialFingerprints":{"codehealthFindingId/v1":"1dc389552bf2d8b6a54fad3a1858d1c906048fc2f6f5869947aad9be36dacf69"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderChatFilesTable (cyclomatic 34, cognitive 52): renderChatFilesTable has cyclomatic complexity 34 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":"web/static/js/chat-files.js"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ce679be3c9ae3af08e6ef3b9ab3015f916b4852663ae438a622949658e37d86"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveRole (cyclomatic 34, cognitive 48): saveRole has cyclomatic complexity 34 and cognitive complexity 48; 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":"web/static/js/roles.js"},"region":{"startLine":1645}}}],"partialFingerprints":{"codehealthFindingId/v1":"34a1c8e142013383fdbccabe8731033bec37d59676c2a01db428e4d5e36b22de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateIndexProgress (cyclomatic 34, cognitive 46): updateIndexProgress has cyclomatic complexity 34 and cognitive complexity 46; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a17de13185fc247876e9a61044c112542170a5f28ec7b91f13ad4392ed9a82a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onEvent (cyclomatic 34, cognitive 44): onEvent has cyclomatic complexity 34 and cognitive complexity 44; 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":"web/static/js/c2.js"},"region":{"startLine":4388}}}],"partialFingerprints":{"codehealthFindingId/v1":"06b18a24f5b215acc299681afb73b5ba78e19764ae208caa8ec763f1b82ee417"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMonitorStats (cyclomatic 34, cognitive 35): renderMonitorStats has cyclomatic complexity 34 and cognitive complexity 35; 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":"web/static/js/monitor.js"},"region":{"startLine":8976}}}],"partialFingerprints":{"codehealthFindingId/v1":"64964c21577c362adc9beb8e3f67f024fe97056fee53bf395cf32253c61a054d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveModelListCredentials (cyclomatic 34, cognitive 18): resolveModelListCredentials has cyclomatic complexity 34 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3443}}}],"partialFingerprints":{"codehealthFindingId/v1":"34373c20243c25ab2f8edc7a84f6a094cafd6fb002bf22d11e039571e5d39077"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function editRole (cyclomatic 33, cognitive 48): editRole has cyclomatic complexity 33 and cognitive complexity 48; 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":"web/static/js/roles.js"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"96b8f9716a31ed9e24d81e5748e089ae49661f715c303840fdba54c63ff7f9e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submit (cyclomatic 33, cognitive 39): submit has cyclomatic complexity 33 and cognitive complexity 39; 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":"web/static/js/monitor.js"},"region":{"startLine":4751}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f569e260a135a13907e4006467dd2fc1fd0cfcc15b979550995af5a9678634"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveWebshellConnection (cyclomatic 33, cognitive 36): saveWebshellConnection has cyclomatic complexity 33 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":5296}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef3c3ce899f61e4c3ee278738707afbcd056c5dbdcd519829617306e6d82291"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showProjectFactGraphNode (cyclomatic 33, cognitive 35): showProjectFactGraphNode has cyclomatic complexity 33 and cognitive complexity 35; 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":"web/static/js/projects.js"},"region":{"startLine":1360}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f2db43a155c7a8e26acaf883bffc922a330274465df0f62aa2fdb0faf907c65"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildWebshellDbCommand (cyclomatic 33, cognitive 30): buildWebshellDbCommand has cyclomatic complexity 33 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/webshell.js"},"region":{"startLine":1872}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b55d17bd14f6fdb9ba5f0a8c33b115a631466fc6240e46ff3c9129216245587"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 32, cognitive 40): (anonymous) has cyclomatic complexity 32 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat.js"},"region":{"startLine":8777}}}],"partialFingerprints":{"codehealthFindingId/v1":"d77a1ba5e063456191f70ae1e7cdae460564d7aa9a4debc052dfebfca36a77b3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshInfoCollectProviderUI (cyclomatic 32, cognitive 38): refreshInfoCollectProviderUI has cyclomatic complexity 32 and cognitive complexity 38; 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":"web/static/js/info-collect.js"},"region":{"startLine":625}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5c468641d776742345723b9f16ce806520b440811ae2baf8f7126e99cd85f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveSkill (cyclomatic 32, cognitive 38): saveSkill has cyclomatic complexity 32 and cognitive complexity 38; 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":"web/static/js/skills.js"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee52e499306e61e2bd64a9284a4bd3178ac8ca7fa62d36ec4de9634486466b65"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 32, cognitive 30): (anonymous) has cyclomatic complexity 32 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/tasks.js"},"region":{"startLine":1889}}}],"partialFingerprints":{"codehealthFindingId/v1":"30aa48fe38349a3e4e4d37dace8015e1df95dc3f1d48eed33f29253ca1edc7a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleStreamEvent (cyclomatic 32, cognitive 20): handleStreamEvent has cyclomatic complexity 32 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":976}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f90bea776d10035ef899d31bd2add2d88ee58823919d898ce786d79f89f98ef"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderToolCallDetailContent (cyclomatic 31, cognitive 54): renderToolCallDetailContent has cyclomatic complexity 31 and cognitive complexity 54; 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":"web/static/js/monitor.js"},"region":{"startLine":6078}}}],"partialFingerprints":{"codehealthFindingId/v1":"a8e317c0122b4aa1961248a19212438d371386a0dbb755bf222deaeac10224bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 31, cognitive 45): (anonymous) has cyclomatic complexity 31 and cognitive complexity 45; 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":"web/static/js/webshell.js"},"region":{"startLine":4047}}}],"partialFingerprints":{"codehealthFindingId/v1":"7373473641487a01a4fc66d316a54ee7313a7783c0837daf80f33108a4ad7701"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadToolsList (cyclomatic 31, cognitive 44): loadToolsList has cyclomatic complexity 31 and cognitive complexity 44; 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":"web/static/js/settings.js"},"region":{"startLine":1224}}}],"partialFingerprints":{"codehealthFindingId/v1":"b37610d7da6680caf43bdaa9b01d1f958cd63851ef82d5401f1c0c8b1f807fdb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderDashboardAlertBanner (cyclomatic 31, cognitive 33): renderDashboardAlertBanner has cyclomatic complexity 31 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 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":"web/static/js/dashboard.js"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"f8cd86677e56dd0374c09677f945a04a672382bcecf8d368495cf70d3071f382"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createBatchQueue (cyclomatic 31, cognitive 31): createBatchQueue has cyclomatic complexity 31 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/tasks.js"},"region":{"startLine":1020}}}],"partialFingerprints":{"codehealthFindingId/v1":"77197502d023de566d9b3b4570155ca0f275c98d0a35d96edc8a5d4dbf5c4ca6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function workflowAiRenderResult (cyclomatic 31, cognitive 26): workflowAiRenderResult has cyclomatic complexity 31 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/workflows.js"},"region":{"startLine":1722}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5ea28b82be545306ed96d64ecb59f73a0a232a7d97a6fcaf6d069f82821c6ed"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function removeTerminalTab (cyclomatic 30, cognitive 43): removeTerminalTab has cyclomatic complexity 30 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"7725222dc0963343cae42ff016d726248a013cd2b13dad560c50aeace55db2ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadVulnerabilities (cyclomatic 30, cognitive 33): loadVulnerabilities has cyclomatic complexity 30 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 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":"web/static/js/vulnerability.js"},"region":{"startLine":1274}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad09fa564a1b38a227a1c60d32e64e8fb5f09f601a8401246f21c2a20f826c96"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateControls (cyclomatic 30, cognitive 29): updateControls has cyclomatic complexity 30 and cognitive complexity 29; 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":"web/static/js/tool-guard.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"f842a2fa2b34e9908f91a89db7a000326dbedfdd05f97f5e254fd4657549f337"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadChatFilesPage (cyclomatic 30, cognitive 28): loadChatFilesPage has cyclomatic complexity 30 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b8c42429934ed28c34ac92fa3e48ec7bc3b27eb92d561b60a7a0865c884c0c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 29, cognitive 35): (anonymous) has cyclomatic complexity 29 and cognitive complexity 35; 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":"web/static/js/settings.js"},"region":{"startLine":1420}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cc47e3da597b331e16f2ba3fdc6f66b9d6b7104c24fa353c104b5e0f04c283"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatProcessDetailPiRunRetryMessage (cyclomatic 29, cognitive 32): formatProcessDetailPiRunRetryMessage has cyclomatic complexity 29 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4261}}}],"partialFingerprints":{"codehealthFindingId/v1":"fec7f37fa24a7a9532cc87a41c261d39d4ae9d567360a80ad656f81230404cb0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 29, cognitive 28): (anonymous) has cyclomatic complexity 29 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":8848}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dab4362c65c195ac0930220d6fe0fe14d5d5ca113c62c1a3273533b533d1e1d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderTaskItem (cyclomatic 29, cognitive 25): renderTaskItem has cyclomatic complexity 29 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/tasks.js"},"region":{"startLine":521}}}],"partialFingerprints":{"codehealthFindingId/v1":"80e1d9e62708f56958d30c26001de3d656a648d1dffb3e3c1533bbd3a2ad6e22"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatPiRunRetryMessage (cyclomatic 28, cognitive 30): formatPiRunRetryMessage has cyclomatic complexity 28 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2729}}}],"partialFingerprints":{"codehealthFindingId/v1":"25334891fec207776a76feb88bf4b4e6a0dd83a2c93987f534bb95141f6e4739"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openAssetEditor (cyclomatic 28, cognitive 28): openAssetEditor has cyclomatic complexity 28 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/assets.js"},"region":{"startLine":1295}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ba79bfa90c7aa5ca4d80e396a5165f063bd7552af44225e8073d0b029023744"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rowHtml (cyclomatic 28, cognitive 26): rowHtml has cyclomatic complexity 28 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat-files.js"},"region":{"startLine":1029}}}],"partialFingerprints":{"codehealthFindingId/v1":"54f273f9d15c0660dafb258e5c817adfaf70293612dc98926891dcbef180e767"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getToolResultDisplayState (cyclomatic 28, cognitive 25): getToolResultDisplayState has cyclomatic complexity 28 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/monitor.js"},"region":{"startLine":5930}}}],"partialFingerprints":{"codehealthFindingId/v1":"795470856effadf0fe853be085cfa0d2f512f528b3b2ff5ad2fbe75aa66670a6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWebshellListItems (cyclomatic 27, cognitive 60): parseWebshellListItems has cyclomatic complexity 27 and cognitive complexity 60; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4325}}}],"partialFingerprints":{"codehealthFindingId/v1":"6421f280990f0c17d242ff9138dd03c5595987e344406ee396a20f1fb08673c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitLogin (cyclomatic 27, cognitive 41): submitLogin has cyclomatic complexity 27 and cognitive complexity 41; 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":"web/static/js/auth.js"},"region":{"startLine":278}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba1fa1e7c9175ce1c2dd72142edd6d8ecb4233b5bd89f6b2a82b9cf3755f54c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderDashboardAccessOverview (cyclomatic 27, cognitive 34): renderDashboardAccessOverview has cyclomatic complexity 27 and cognitive complexity 34; 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":"web/static/js/dashboard.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"05b4ecce578072d7b999b00a0b8f124888b2bff06daa21a94e4d1ba336b49597"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testOpenAIConnection (cyclomatic 27, cognitive 34): testOpenAIConnection has cyclomatic complexity 27 and cognitive complexity 34; 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":"web/static/js/settings.js"},"region":{"startLine":4072}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d3d2e86b724e673060e30cb97758b9c08a46a265b99e2a069336c9cbd2d6e31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function render (cyclomatic 27, cognitive 31): render has cyclomatic complexity 27 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/fact-graph.js"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"14e468fca349f16b1c6440840d0dec6c293121ab58a71d218afab682edc5d93a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testWebshellConnection (cyclomatic 27, cognitive 31): testWebshellConnection has cyclomatic complexity 27 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/webshell.js"},"region":{"startLine":5229}}}],"partialFingerprints":{"codehealthFindingId/v1":"de7fb3747d794c047295fc3f8acf74f0d6b661626cd442b3d34eabebd01553e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 26, cognitive 43): (anonymous) has cyclomatic complexity 26 and cognitive complexity 43; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":1378}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f145cad19a62ac52c46b47f876df41b47cc00862d718548299ecf6d1908a196"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ensureProjectSidebarStructure (cyclomatic 26, cognitive 40): ensureProjectSidebarStructure has cyclomatic complexity 26 and cognitive complexity 40; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat.js"},"region":{"startLine":6089}}}],"partialFingerprints":{"codehealthFindingId/v1":"af3f175cfc8cf155d7e8690010a28f5b58c92c1a47138a7e89161883d84ea38e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchModelList (cyclomatic 26, cognitive 32): fetchModelList has cyclomatic complexity 26 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3618}}}],"partialFingerprints":{"codehealthFindingId/v1":"0af9b3b1d56816a30b7fb511f0df16db7d792b28884d77dc76f6ad0e28a7de2f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcileConversationAfterTaskReplay (cyclomatic 26, cognitive 27): reconcileConversationAfterTaskReplay has cyclomatic complexity 26 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 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":"web/static/js/monitor.js"},"region":{"startLine":5544}}}],"partialFingerprints":{"codehealthFindingId/v1":"204c529a132c287e1dd2fba97200e1a902f924aaab109367e8684ba4b7064045"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detectAIContext (cyclomatic 26, cognitive 27): detectAIContext has cyclomatic complexity 26 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 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":"web/static/js/settings.js"},"region":{"startLine":4007}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b6b1b0dc6baa370104f5ce8255863efd7317d7c5581bf8ab91ec2949e47961c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openAssetDetailRecord (cyclomatic 26, cognitive 26): openAssetDetailRecord has cyclomatic complexity 26 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1744}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9d298c454daf7011ceb50abad39fa4e4893f5f9270b0e7f135c78390cae7bf6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function auditResourceLink (cyclomatic 26, cognitive 25): auditResourceLink has cyclomatic complexity 26 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/audit.js"},"region":{"startLine":543}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcc4326aa1e4db2a6b3c801ed21a9132d49b80fadb0580941245e2c83cac670f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderTypedConfig (cyclomatic 26, cognitive 25): renderTypedConfig has cyclomatic complexity 26 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/workflows.js"},"region":{"startLine":1043}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f3065500913e12f95fc6b756ac50ccd91bd4591b0cc291e080c11d8b2175e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderFileList (cyclomatic 26, cognitive 23): renderFileList has cyclomatic complexity 26 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4413}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a6c12ba0573962e8322371718bba8db5dfa3c06c6d3dee138f1d6efcb5a8a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function workflowAiBuildDraft (cyclomatic 25, cognitive 39): workflowAiBuildDraft has cyclomatic complexity 25 and cognitive complexity 39; 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":"web/static/js/workflows.js"},"region":{"startLine":1525}}}],"partialFingerprints":{"codehealthFindingId/v1":"c936a86b70326fb08b187cea979bc8fc88261d66fa9664472783a91e667c71fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderWorkflowPackageResolution (cyclomatic 25, cognitive 36): renderWorkflowPackageResolution has cyclomatic complexity 25 and cognitive complexity 36; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2690}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b89cdea0faacb9b13886ca9c83b36febae55e310d5899c8347c681d509a91eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderVulnerabilityBrowser (cyclomatic 25, cognitive 35): renderVulnerabilityBrowser has cyclomatic complexity 25 and cognitive complexity 35; 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":"web/static/js/vulnerability.js"},"region":{"startLine":1422}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0c3b440dfb0c4c35d14dacecb560aab39634f63e09fcff3b62d5eae533521e2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncAssistantTurnSummary (cyclomatic 25, cognitive 32): syncAssistantTurnSummary has cyclomatic complexity 25 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5150}}}],"partialFingerprints":{"codehealthFindingId/v1":"89fc584d8a786f7be1856c056d40362abd8c6944f4531520956b2ee66e3eb020"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncHitlConfigFromServer (cyclomatic 25, cognitive 32): syncHitlConfigFromServer has cyclomatic complexity 25 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"d430a29d5f461a92efb738ea800547e3893dadc1aaa1bf58aeee9713225e30d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showNodeDetails (cyclomatic 25, cognitive 31): showNodeDetails has cyclomatic complexity 25 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat.js"},"region":{"startLine":7961}}}],"partialFingerprints":{"codehealthFindingId/v1":"230de26c55fd077b6e410bb39d7ea1fd117c60b89cb5ca95005c9f5f6cdc36f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function exportChatFiles (cyclomatic 25, cognitive 30): exportChatFiles has cyclomatic complexity 25 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":435}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d2541f4817e71af8ccf678ed01bfb5e20ee73ee25b17b5ef2cd3211887daf8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function cancelMCPToolExecutionSubmit (cyclomatic 25, cognitive 29): cancelMCPToolExecutionSubmit has cyclomatic complexity 25 and cognitive complexity 29; 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":"web/static/js/chat.js"},"region":{"startLine":5781}}}],"partialFingerprints":{"codehealthFindingId/v1":"8cda70963d24d8eac1e2688bdf8bc1101cc45dcf0932f79a9b614f5493daed00"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function persistAIChannelsToServer (cyclomatic 25, cognitive 26): persistAIChannelsToServer has cyclomatic complexity 25 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3025}}}],"partialFingerprints":{"codehealthFindingId/v1":"296a33b272d6973390b410bcb3dda56de6688f9b74bd42d5ead93aa4e01a8d73"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 24): (anonymous) has cyclomatic complexity 25 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/assets.js"},"region":{"startLine":1022}}}],"partialFingerprints":{"codehealthFindingId/v1":"8df81fad7d722480992aec50d01af7cae7dbaf05ae4b6dc1c74fc93838c47f12"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 25, cognitive 23): (anonymous) has cyclomatic complexity 25 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1168}}}],"partialFingerprints":{"codehealthFindingId/v1":"d66d909655ee0a6e6597a7eab351423dab94ee2acf71c554728acfcb47c357a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pruneLiveTimelineIfNeeded (cyclomatic 24, cognitive 30): pruneLiveTimelineIfNeeded has cyclomatic complexity 24 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6583}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2fdf134980a1e1b107de02330d92d6b897c5f499bff1b1f76d322d2a5cff3c5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pollUpdateJob (cyclomatic 24, cognitive 28): pollUpdateJob has cyclomatic complexity 24 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/update.js"},"region":{"startLine":358}}}],"partialFingerprints":{"codehealthFindingId/v1":"14c1427fc35449938743a24323faeed51eebde411a1bf1f420b32a53b27ec75d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseAssetEditorTarget (cyclomatic 24, cognitive 26): parseAssetEditorTarget has cyclomatic complexity 24 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1391}}}],"partialFingerprints":{"codehealthFindingId/v1":"9548932b6d6201b1c99e0e57a65f8cdbc8068ebdd0619be53042af033ec5b59b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMcpStatsTimelineBody (cyclomatic 24, cognitive 23): renderMcpStatsTimelineBody has cyclomatic complexity 24 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":8126}}}],"partialFingerprints":{"codehealthFindingId/v1":"d83e6bb284064611c625c140b4782ad63f32b0fed8b23388ba9046d834420464"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 24, cognitive 23): (anonymous) has cyclomatic complexity 24 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":8763}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b23401ef60485c9ddcdfb5d106d4a99a6ea89b0199200164a17b33d649ff64d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveVulnerability (cyclomatic 24, cognitive 16): saveVulnerability has cyclomatic complexity 24 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1828}}}],"partialFingerprints":{"codehealthFindingId/v1":"16306cbc4e8fed2ded8687e66974ddfcc163ad3891d9c134a3d55408ce25c971"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyHitlSidebarConfig (cyclomatic 23, cognitive 30): applyHitlSidebarConfig has cyclomatic complexity 23 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":740}}}],"partialFingerprints":{"codehealthFindingId/v1":"3832387fa7ac43bf4936c49ce61e6d192e705f5d41647faa4988a9833f894ba7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshHitlPending (cyclomatic 23, cognitive 26): refreshHitlPending has cyclomatic complexity 23 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":893}}}],"partialFingerprints":{"codehealthFindingId/v1":"0645f7714a7a6c63499678744690b965679608cd965dcfd65c178fd86aedd7ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initChatAgentModeFromConfig (cyclomatic 23, cognitive 25): initChatAgentModeFromConfig has cyclomatic complexity 23 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2059}}}],"partialFingerprints":{"codehealthFindingId/v1":"7218a7f73b49c8ac5073742cd878c152f6be6f29aba247d2e93ea3ea67395338"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initInfoCollectPage (cyclomatic 23, cognitive 24): initInfoCollectPage has cyclomatic complexity 23 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"49451b7bcce7a0fe1fa80393990da1ba56f86a6f46da60efd53e58793625323f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function batchScanSelectedFofaRows (cyclomatic 23, cognitive 24): batchScanSelectedFofaRows has cyclomatic complexity 23 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1576}}}],"partialFingerprints":{"codehealthFindingId/v1":"6961795d2af949768a6d60b883d86f9f52d68e553059e74906031537732bdfc1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hitlAuditEngineFromItem (cyclomatic 23, cognitive 23): hitlAuditEngineFromItem has cyclomatic complexity 23 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5825d64c55c9283b168f5a6b3916462e82a02ebaae914b6df42d6b7d10faf4de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openVulnerabilityInspector (cyclomatic 23, cognitive 22): openVulnerabilityInspector has cyclomatic complexity 23 and cognitive complexity 22; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability-workspace.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6972d53a37fab58b1374392db6eda6c28272c02e09ec2fbd5f14c41b4866398"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function c2ProjectDisplayName (cyclomatic 23, cognitive 21): c2ProjectDisplayName has cyclomatic complexity 23 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7b38eaa4f36b0562946caa5f7cf3fdce82fe7ce7612f087285c9415e935b0c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderInlineHitlApproval (cyclomatic 23, cognitive 21): renderInlineHitlApproval has cyclomatic complexity 23 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4467}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d7b54d487219cbfc688db96d09b54c23cec5eb26099c693a90a8ebc3b68c807"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyActiveDbProfileToForm (cyclomatic 23, cognitive 21): applyActiveDbProfileToForm has cyclomatic complexity 23 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2876}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f8b14484841fb4392a7880f997db0295ef224b019f166bda437f5aeffad4de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function integrateProgressToMCPSection (cyclomatic 22, cognitive 31): integrateProgressToMCPSection has cyclomatic complexity 22 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/monitor.js"},"region":{"startLine":1726}}}],"partialFingerprints":{"codehealthFindingId/v1":"48d15f1a67cfc603bc712c373df09a45345d7a2aa62256bc9c0e20fda1d6a5c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectSkillPackageFile (cyclomatic 22, cognitive 28): selectSkillPackageFile has cyclomatic complexity 22 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/skills.js"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"21ba9e442097436afe8b3042afab0d8e658f965600f01431cdc07c6f23b7d2f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toggleProcessDetails (cyclomatic 22, cognitive 26): toggleProcessDetails has cyclomatic complexity 22 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2575}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86cf46792b2ecc1ca397328cff17e24e3c3c08b9758ad8e55b74fda1485f9f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyWebshellDetectedOS (cyclomatic 22, cognitive 25): applyWebshellDetectedOS has cyclomatic complexity 22 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"29d3c017244f91b45b8cfedeb39ae558809002ebef5c8b7d4242cfe3c8c75c1e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function switchSettingsSection (cyclomatic 22, cognitive 24): switchSettingsSection has cyclomatic complexity 22 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":688}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ed1f4c9d5478e0962ae9cfd18955c3590dbc33524900efc245c71dd35783c28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handlePlanToolEvent (cyclomatic 22, cognitive 21): handlePlanToolEvent has cyclomatic complexity 22 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-plan-progress.js"},"region":{"startLine":299}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b3d33d939e6cdb363e4f5a8ef04261144fbd8c9f5f3cd307e29636ea24767b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMcpStatsCombinedSection (cyclomatic 22, cognitive 21): renderMcpStatsCombinedSection has cyclomatic complexity 22 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":8174}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1ac22bf83c05dc65238bff94ebecd23d30d40dae96963580ccdd0f28632043b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSkillsPagination (cyclomatic 22, cognitive 21): renderSkillsPagination has cyclomatic complexity 22 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/skills.js"},"region":{"startLine":222}}}],"partialFingerprints":{"codehealthFindingId/v1":"e12a2d380a11bb86943640d2f3580b95f0550ed1e950300fb510f1f0aca14785"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveAsset (cyclomatic 22, cognitive 20): saveAsset has cyclomatic complexity 22 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1593}}}],"partialFingerprints":{"codehealthFindingId/v1":"b77284c5f798ed9c4853808f12221b9863078259b13a440671ff03900308d577"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderNode (cyclomatic 22, cognitive 20): renderNode has cyclomatic complexity 22 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4614}}}],"partialFingerprints":{"codehealthFindingId/v1":"4130c2de26dc078a58751776680e3ee3f602882d67d3bd10ad3917006c2579ba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 22, cognitive 18): (anonymous) has cyclomatic complexity 22 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2488}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f72a441095ff9974c1b1930547a74f072b286f6f81c73cd8a422dcb1870b06d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function importHistory (cyclomatic 21, cognitive 39): importHistory has cyclomatic complexity 21 and cognitive complexity 39; 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":"runtime/pi/src/worker.ts"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e3bb5655b00a866984558dd456fe0cfdb0db44272c12a84aeeadb1d7806b641"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadRoleTools (cyclomatic 21, cognitive 30): loadRoleTools has cyclomatic complexity 21 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":827}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d6e537e6bf0fb8b4031754fe111e6d22f307ef472eb34046028270674a54c12"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pollWechatBindStatus (cyclomatic 21, cognitive 25): pollWechatBindStatus has cyclomatic complexity 21 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/wechat-robot.js"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"86a53ff13eb7f091a29f569889f2ee0f704d85077f05729dbdad3cb83c3686ad"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getBatchQueueStatusPresentation (cyclomatic 21, cognitive 24): getBatchQueueStatusPresentation has cyclomatic complexity 21 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"40a5d5b767c3d2924d804e9f5c628be7c4ebe99299404d9c4b21341da24e96f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveMarkdownAgent (cyclomatic 21, cognitive 21): saveMarkdownAgent has cyclomatic complexity 21 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/agents.js"},"region":{"startLine":160}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ea2b2364485633f97a139a25844ad2c84065df0ef45ee461b31b4d112623732"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderConversationsPagination (cyclomatic 21, cognitive 21): renderConversationsPagination has cyclomatic complexity 21 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9917}}}],"partialFingerprints":{"codehealthFindingId/v1":"aeef44ccf09aa3c0838b763962e807b4baef5f6590a8faf0cfc5505883f5bbf4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveGraphNodeType (cyclomatic 21, cognitive 21): resolveGraphNodeType has cyclomatic complexity 21 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/fact-graph.js"},"region":{"startLine":781}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8dbca02301b5abb3d000e84d1c3065e8e95d71b56e260f3882c5e927826f219"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderRoleToolsPagination (cyclomatic 21, cognitive 20): renderRoleToolsPagination has cyclomatic complexity 21 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"329b252ccc119c3532173986ea8f73ea6b20e4c95f105ec6f844f3cbc3d90c1d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderBatchQueuesPagination (cyclomatic 21, cognitive 20): renderBatchQueuesPagination has cyclomatic complexity 21 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1681}}}],"partialFingerprints":{"codehealthFindingId/v1":"8548abb77a0ee7d51b94236ed374125ad83ed47413fd31cf7527c87f78c269b5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createVulnerabilityFromCurrentFact (cyclomatic 21, cognitive 19): createVulnerabilityFromCurrentFact has cyclomatic complexity 21 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1745}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5de04c5aacf031b1dd97f9c981156b02ea84f8d9488a71e18bd9ad922ca46e9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 21, cognitive 17): (anonymous) has cyclomatic complexity 21 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":8406}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac4f2e30abc4f55165ecb91ad4b280e73ea7bf78b7119f28c9e9a49aa5ad61fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderExternalMcpHealth (cyclomatic 21, cognitive 17): renderExternalMcpHealth has cyclomatic complexity 21 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9150c744c866715decb5baef1eb32889558e87b7649e1e59ffdfc2ba70be97a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function streamTest (cyclomatic 20, cognitive 34): streamTest has cyclomatic complexity 20 and cognitive complexity 34; 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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"457b586d823f901c2f423b6c73675a676ba6d4480924a288508b5f8371129862"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function exports (cyclomatic 20, cognitive 33): exports has cyclomatic complexity 20 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 is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/ui-realistic-scenarios.cjs"},"region":{"startLine":4}}}],"partialFingerprints":{"codehealthFindingId/v1":"4865890c4b4ce7f8d4f7707f0873f743a8545d365ac276fca6a1ef6a7cc83a53"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toggleExternalMCP (cyclomatic 20, cognitive 31): toggleExternalMCP has cyclomatic complexity 20 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/settings.js"},"region":{"startLine":4918}}}],"partialFingerprints":{"codehealthFindingId/v1":"2394aca60898269f7e1b466935880fa3afd9d31bf2aa1ea783c708708fe140ca"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderAttackChain (cyclomatic 20, cognitive 29): renderAttackChain has cyclomatic complexity 20 and cognitive complexity 29; 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":"web/static/js/chat.js"},"region":{"startLine":7135}}}],"partialFingerprints":{"codehealthFindingId/v1":"790efa8593fd91b60fb5496319464ad917c9d0fd93643af43d4bf62ae01476de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testVisionConnection (cyclomatic 20, cognitive 29): testVisionConnection has cyclomatic complexity 20 and cognitive complexity 29; 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":"web/static/js/settings.js"},"region":{"startLine":3716}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e2473b5ed0004faf18c13507bbb6661185f53c1c7bf57d9d22d4d99cfdca9a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteKnowledgeItem (cyclomatic 20, cognitive 27): deleteKnowledgeItem has cyclomatic complexity 20 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 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":"web/static/js/knowledge.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"75c5a9240520da949787b0d710ece5bf19c2c04d7b674d5d188f1df5f0e91564"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshMonitorPanel (cyclomatic 20, cognitive 25): refreshMonitorPanel has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7365}}}],"partialFingerprints":{"codehealthFindingId/v1":"5df04b2f84699bb2192eee772d2cbdfdd61cca65d14470d9281b8e5dc917ddda"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWebshellDbSchema (cyclomatic 20, cognitive 25): parseWebshellDbSchema has cyclomatic complexity 20 and cognitive complexity 25; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1979}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a06b403b0c21f4c32a06e77e356114ca93c40e0507b871be74f399160196a72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setHitlApprovalInterruptedVisualState (cyclomatic 20, cognitive 24): setHitlApprovalInterruptedVisualState has cyclomatic complexity 20 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1195}}}],"partialFingerprints":{"codehealthFindingId/v1":"be8aa5c02c302afc897081bf3bbc7df081d91bb2636ceaad5c8bdcd18c9880d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseProjectDate (cyclomatic 20, cognitive 24): parseProjectDate has cyclomatic complexity 20 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2455}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3aa50280da44161ab8d5883b8c0ba02ff8b79b26b74afcfbf7f69c78c21adba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prepareSurface (cyclomatic 20, cognitive 23): prepareSurface has cyclomatic complexity 20 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/modal.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9a495833eab3e6e5aaa1a93e58c2e23ef337b1059bf6448d09dfd27d629ea83"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveToolsConfig (cyclomatic 20, cognitive 23): saveToolsConfig has cyclomatic complexity 20 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":4159}}}],"partialFingerprints":{"codehealthFindingId/v1":"f19c47911197a3ff23d4ba4c38597b420ad937ce77111b305b6a50607f04f61a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchPlanTasks (cyclomatic 20, cognitive 22): fetchPlanTasks has cyclomatic complexity 20 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 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":"web/static/js/chat-plan-progress.js"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8a89dcb907167c7a7164985d10c13e8431c1d21896b7be18c088096cc8ef631"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isAnonymousTaskFragmentToolCallDetail (cyclomatic 20, cognitive 21): isAnonymousTaskFragmentToolCallDetail has cyclomatic complexity 20 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3922}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7805addc51e4cc1b8a50ba7e4e272363a9b5a9f95e15faec1dc9594a1c4cf79"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyMonitorPayload (cyclomatic 20, cognitive 21): applyMonitorPayload has cyclomatic complexity 20 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7654}}}],"partialFingerprints":{"codehealthFindingId/v1":"73d7b0912142cee2230338e523991bcb9c1900c52af5a581f1092dac688908eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ensureAIConfigShape (cyclomatic 20, cognitive 20): ensureAIConfigShape has cyclomatic complexity 20 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2604}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b8bb5028236ae8a64b3522508af46bbc1e0947a858d280cbb94b1ccbd93ac4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function rowHtmlTreeFile (cyclomatic 20, cognitive 19): rowHtmlTreeFile has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1202}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa2f63827924de86bfca22ddad8ac8114684679f2247c2513be9e60d3431e643"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 19): (anonymous) has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4588}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2888860634c7cc289c383263a6cb967a042df539c200bc5e0ae6d27a888c8f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findToolCallItemForHitl (cyclomatic 20, cognitive 19): findToolCallItemForHitl has cyclomatic complexity 20 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4585}}}],"partialFingerprints":{"codehealthFindingId/v1":"e883151ad15bf9575f054c5e0f7bdd425872edde36a3cd8d347400180b896fae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 20, cognitive 18): (anonymous) has cyclomatic complexity 20 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1594}}}],"partialFingerprints":{"codehealthFindingId/v1":"169d2e0ecd9a5fd73e801b3978ebc7b3582171ed6d59a1b5aa73f1d274782ff9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderVulnerabilityPagination (cyclomatic 20, cognitive 18): renderVulnerabilityPagination has cyclomatic complexity 20 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1644}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee50a98a1a663d35c760f91cac050b7061c8bea9cc310c5ba90fb617c86da484"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getProjectApprovalTiming (cyclomatic 20, cognitive 17): getProjectApprovalTiming has cyclomatic complexity 20 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2659}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef2949d05556885fb664c559db4da15242cbc251233c92178d7382f465fdca3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collectHitlAuditModelEffectiveConfig (cyclomatic 20, cognitive 17): collectHitlAuditModelEffectiveConfig has cyclomatic complexity 20 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3801}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a04a3db3bd0cd47e6806ff12d752a69de082b6ea96e427cd5f3f72c36662008"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showProjectConversationPreview (cyclomatic 20, cognitive 16): showProjectConversationPreview has cyclomatic complexity 20 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3133}}}],"partialFingerprints":{"codehealthFindingId/v1":"52ac8c78488392f9a3f72431ea4cd94589f027d799009f3b70bde25aa90eddc0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function followAgentRunAfterHitlDecision (cyclomatic 19, cognitive 32): followAgentRunAfterHitlDecision has cyclomatic complexity 19 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":714}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fa5610092194bbaeed22e8f56f5a4acb29dedeedf0349b55b5bf59988a5c3a7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateRoleSelectorDisplay (cyclomatic 19, cognitive 29): updateRoleSelectorDisplay has cyclomatic complexity 19 and cognitive complexity 29; 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":"web/static/js/roles.js"},"region":{"startLine":346}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8acb2f28757a4bcb315bc213a093a915d0d33d7b8c551210b79228c896bcd94"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderDirectoryTree (cyclomatic 19, cognitive 27): renderDirectoryTree has cyclomatic complexity 19 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 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":"web/static/js/webshell.js"},"region":{"startLine":4552}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5422c7cd7fd3c2ed1b21a8bb7e12babd17cee3056dee62190f389895a98fda3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWebshellDbColumns (cyclomatic 19, cognitive 24): parseWebshellDbColumns has cyclomatic complexity 19 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2010}}}],"partialFingerprints":{"codehealthFindingId/v1":"0889220cec688f6e246478c9fc6311ba15ba5466f44e2e694aa13f5388d2863a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toggleWorkflowEnabled (cyclomatic 19, cognitive 24): toggleWorkflowEnabled has cyclomatic complexity 19 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5a35065f50ca8741d14c3f3c146ac33b09b86e78862623375cb9b6ac8061f42"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteRetrievalLog (cyclomatic 19, cognitive 23): deleteRetrievalLog has cyclomatic complexity 19 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":1637}}}],"partialFingerprints":{"codehealthFindingId/v1":"df3beab9b4e494b7a00d6429718936b01f311f877edc361727d042b50c017033"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveProjectModal (cyclomatic 19, cognitive 23): saveProjectModal has cyclomatic complexity 19 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2009}}}],"partialFingerprints":{"codehealthFindingId/v1":"f008771d524f6be5855387c22ac961f8d3defc45a59880751ae5ed18b433739a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isToolGuardBlockedResult (cyclomatic 19, cognitive 21): isToolGuardBlockedResult has cyclomatic complexity 19 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5904}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ba9557f509bca2ae71f8deb9bfc36c59587bb00dfd118512696f2430e31e5e4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function probeNextAIChannel (cyclomatic 19, cognitive 21): probeNextAIChannel has cyclomatic complexity 19 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3275}}}],"partialFingerprints":{"codehealthFindingId/v1":"f80dd473d9f77468165c7425144de591fd87d421c71ac31ab9fb8b59389ef4b7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function chatSystemModelConfigState (cyclomatic 19, cognitive 20): chatSystemModelConfigState has cyclomatic complexity 19 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a548ca9cfeaab9e102881a66d8a00c32b1c4262f09153f59e0fa801bef31ae4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitUserInterruptContinue (cyclomatic 19, cognitive 20): submitUserInterruptContinue has cyclomatic complexity 19 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1408}}}],"partialFingerprints":{"codehealthFindingId/v1":"c22b412a962e54011a414d4ba09a89677d5122ba9484e7fa3a7a2fda3131560c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function changePassword (cyclomatic 19, cognitive 20): changePassword has cyclomatic complexity 19 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":4322}}}],"partialFingerprints":{"codehealthFindingId/v1":"894babb1c32780364aac40eb9078468eece1b7d44c47a484dd034bbbd7f827dc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hydrateConversationTokenUsage (cyclomatic 19, cognitive 18): hydrateConversationTokenUsage has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6344}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1554536f1a1c19cf635f6d15e839b093e34c875717000a0e47b515343edb2b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finalizeMainResponseStreamItem (cyclomatic 19, cognitive 18): finalizeMainResponseStreamItem has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"f969a0fc446d277e28b01b1090713bf284d41d70d60581972bbff8ef58538200"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectProject (cyclomatic 19, cognitive 18): selectProject has cyclomatic complexity 19 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":994}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d25d119a74b465222cf86afc0ca955027f1defd1ede388f83edfe2ffe0458dd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function prefetchLastAssistantProcessDetails (cyclomatic 19, cognitive 17): prefetchLastAssistantProcessDetails has cyclomatic complexity 19 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6319}}}],"partialFingerprints":{"codehealthFindingId/v1":"16647efd6fcf00597d0f24f1fec116343f5e034c6be20d4cde2e7bea35f3d315"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function workflowHitlDataFromRun (cyclomatic 19, cognitive 10): workflowHitlDataFromRun has cyclomatic complexity 19 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5185}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee08d97180802c83f2aeef18ce137e4e7c51f59ff4e7d80c187fdc8103170178"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pollExternalMCPStatus (cyclomatic 18, cognitive 34): pollExternalMCPStatus has cyclomatic complexity 18 and cognitive complexity 34; 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":"web/static/js/settings.js"},"region":{"startLine":5000}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc8757eca13408445710d8840fef84f47bf73636fd312b585d772b6c4e5dc9c9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 29): (anonymous) has cyclomatic complexity 18 and cognitive complexity 29; 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":"web/static/js/chat.js"},"region":{"startLine":3084}}}],"partialFingerprints":{"codehealthFindingId/v1":"54eae3e4ff4d66bea589656bf18e5f781adf7b8e84fabc273e1d155a462bfd6b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 18, cognitive 28): (anonymous) has cyclomatic complexity 18 and cognitive complexity 28; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/audit-datetime-picker.js"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed9cd2cf58e3c45acfc6969a189ec3d138702ef68f58933608910f21733d8628"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateProcessDetailsPaginationButtons (cyclomatic 18, cognitive 26): updateProcessDetailsPaginationButtons has cyclomatic complexity 18 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"7679dc4c1c63b6e11763a490c0604e7663bb8e5f4aa07bb0dc4c4c8621b7e6ce"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadAuditLogs (cyclomatic 18, cognitive 23): loadAuditLogs has cyclomatic complexity 18 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":275}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae366cd41de849cfcdfd089ce709a5de2fac71caa374cb05d13a13f7bc6f5d90"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testAPI (cyclomatic 18, cognitive 22): testAPI has cyclomatic complexity 18 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 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":"web/static/js/api-docs.js"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"d569668f55634631138b8d51875ebc6ec1519746c9bdbb7ce554d15880cd08e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeRequestBlock (cyclomatic 18, cognitive 21): normalizeRequestBlock has cyclomatic complexity 18 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/http-normalize.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc17a3374b092ca97a0221dfc592215d41d178f701f3c185d050f066913af30"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitChatFilesMkdir (cyclomatic 18, cognitive 21): submitChatFilesMkdir has cyclomatic complexity 18 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1720}}}],"partialFingerprints":{"codehealthFindingId/v1":"01e3fead0c982b48ee5d94a545dd8a98dae350bb8e1f9d0e52004226b0f1a43f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function onSendConfirmed (cyclomatic 18, cognitive 19): onSendConfirmed has cyclomatic complexity 18 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":904}}}],"partialFingerprints":{"codehealthFindingId/v1":"aac0c180509db778c107bf41535a1f4f09efce937dcc16635cf4a66d6708182c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function auditMessageLabel (cyclomatic 18, cognitive 18): auditMessageLabel has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0c570e80a8dfc765d15f6269527426b16757ae5b1b5e9ac2685c1c21be4abe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderTasksPagination (cyclomatic 18, cognitive 18): renderTasksPagination has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":3250}}}],"partialFingerprints":{"codehealthFindingId/v1":"49a267430099ba1b593092f539a0f6b78d2a36ec736efc1b67c0767f4215a0a3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderEventsPagination (cyclomatic 18, cognitive 18): renderEventsPagination has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4188}}}],"partialFingerprints":{"codehealthFindingId/v1":"45caa9c25848d87bff381c4223be4176d02e5eba65798313dc152b60cfae51c7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function workflowAiAnimateGraph (cyclomatic 18, cognitive 18): workflowAiAnimateGraph has cyclomatic complexity 18 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"21b83f6a20570c7e245d91f6fa073a1cc861d0350ed2ced9064cae77b69bf5f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyHitlDefaultConfigFromServer (cyclomatic 18, cognitive 17): applyHitlDefaultConfigFromServer has cyclomatic complexity 18 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c059098b6791e372806303a231b89ff8d96a2cd5e8d11b4b2c3f350c95c2f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatTimelineStreamBody (cyclomatic 18, cognitive 16): formatTimelineStreamBody has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":147}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad488712d0c6746cb34b1936f18d7baad7501d1a701ccc2039151c4ace02470d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderToolCallApprovalSummary (cyclomatic 18, cognitive 16): renderToolCallApprovalSummary has cyclomatic complexity 18 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4432}}}],"partialFingerprints":{"codehealthFindingId/v1":"0fb7dafd607ae2ea9621e7e15bb66806c32bd05529adb6334b9b6101c1f7c5f0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startProcessDetailsLatestFollow (cyclomatic 18, cognitive 15): startProcessDetailsLatestFollow has cyclomatic complexity 18 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2149}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c712bb5c04d6267be4ec3f47f2703fabd4343490dc206d339f665a40d3cbb9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getRobotStatus (cyclomatic 18, cognitive 15): getRobotStatus has cyclomatic complexity 18 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"565d03b6f6441f8d1deef72a5eac24a4f50494603eb2e9e33fc4e2886657102c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function readAIChannelFromMainForm (cyclomatic 18, cognitive 15): readAIChannelFromMainForm has cyclomatic complexity 18 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2651}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc1c95987a54e9a59293398a75b6f887b3a169ea21655a099f574d7f7a326577"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderTaskModal (cyclomatic 18, cognitive 11): renderTaskModal has cyclomatic complexity 18 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":3617}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ddc41a1ec2c1fc56eabc27ffd379266cd5cae08e47b64a9ba2d2ab1411d117b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function markdownToHtml (cyclomatic 17, cognitive 32): markdownToHtml has cyclomatic complexity 17 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/markdown.js"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"96518a0a9c9696bda9b8ec3da51edd97c23bfeebbd78667d08683f2718332728"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showConversationContextMenu (cyclomatic 17, cognitive 32): showConversationContextMenu has cyclomatic complexity 17 and cognitive complexity 32; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10343}}}],"partialFingerprints":{"codehealthFindingId/v1":"1634ac8840f506e26a63913409076da285d0f964d22a7bb92ae324b565750a87"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderRbacRoles (cyclomatic 17, cognitive 29): renderRbacRoles has cyclomatic complexity 17 and cognitive complexity 29; 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":"web/static/js/rbac.js"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea1a6b9d1043d27ce47229e6a1804fd5fd16e73e3f3aab042ea6519f1102736"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getTimeAgo (cyclomatic 17, cognitive 26): getTimeAgo has cyclomatic complexity 17 and cognitive complexity 26; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"143c028a9ca4aa95f457766423dec379bbfe09bd882260ce93eb6965fb80a1c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 23): (anonymous) has cyclomatic complexity 17 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"7719a2968e783d053bdd3708cee876b446522ce592238b9613c539d5e76c0d83"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshLastAssistantProcessDetails (cyclomatic 17, cognitive 20): refreshLastAssistantProcessDetails has cyclomatic complexity 17 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5487}}}],"partialFingerprints":{"codehealthFindingId/v1":"bff2b1be4cedf6627a46f16027230e48a90a679c6465de51feee40083b1e7fa4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWebshellDbTableColumns (cyclomatic 17, cognitive 20): parseWebshellDbTableColumns has cyclomatic complexity 17 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2042}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c17048744c967bb784a1e5826707defabf3ab4361d26dbcc5a4667b95cc96d9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseFofaNaturalLanguage (cyclomatic 17, cognitive 19): parseFofaNaturalLanguage has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":789}}}],"partialFingerprints":{"codehealthFindingId/v1":"6925426a0215906c3d38f621dbbc5dcb2963ab30d0a481a9cd276d08bac42603"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshVulnerabilityProjectFilter (cyclomatic 17, cognitive 19): refreshVulnerabilityProjectFilter has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":2580}}}],"partialFingerprints":{"codehealthFindingId/v1":"1914dff562ec4ce08ea3460477b442c9d0428c649c960d976bf7006f814091f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function webshellDbRenderTable (cyclomatic 17, cognitive 19): webshellDbRenderTable has cyclomatic complexity 17 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1800}}}],"partialFingerprints":{"codehealthFindingId/v1":"62cf79c7bdfa7faba67d44360a1b40dcc634fc0823a09dd56ed0d3039e096dc7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderVulnerabilities (cyclomatic 17, cognitive 18): renderVulnerabilities has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1370}}}],"partialFingerprints":{"codehealthFindingId/v1":"13a104932ea03227617fd1758a7470013b5a9444cd7de13151ae9b73802290fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveWorkflowDraft (cyclomatic 17, cognitive 18): saveWorkflowDraft has cyclomatic complexity 17 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2232}}}],"partialFingerprints":{"codehealthFindingId/v1":"c9b0466f51c03217cde0d467b4750d8b3e40b46391569a66ef3aea1361d15b59"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSessionDetail (cyclomatic 17, cognitive 17): renderSessionDetail has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1599}}}],"partialFingerprints":{"codehealthFindingId/v1":"8bb90f6390b48d3a1aec00c3e239a136130a741b61c69a1bc358a4c64704db27"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setAssistantTurnTiming (cyclomatic 17, cognitive 17): setAssistantTurnTiming has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5119}}}],"partialFingerprints":{"codehealthFindingId/v1":"7eea5cd2230c9906589c02defd2407829c970e70344c8c682ec8a33f4a5b6f21"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadProjectFilterLocalOptions (cyclomatic 17, cognitive 17): loadProjectFilterLocalOptions has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9249}}}],"partialFingerprints":{"codehealthFindingId/v1":"c862f272e1edcc00ec75d622159d46ea46b1e2d960d1cf353830bf4dd3c1d82d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSeverityDonut (cyclomatic 17, cognitive 17): renderSeverityDonut has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":2034}}}],"partialFingerprints":{"codehealthFindingId/v1":"217f7e0dbb14d89b5ab60f88494d889baad802f543ca92a91361b1a44eeddbe6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyTranslations (cyclomatic 17, cognitive 17): applyTranslations has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"be43227313f4d2e935e5c6e88168e8f6287f05dd6d18cda43d64988627b35148"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function piMainStreamPlanningTitle (cyclomatic 17, cognitive 17): piMainStreamPlanningTitle has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"25ab66b72b5f674a8e4632511777f9b5d03d71fd21edf2cb6b89282ac954f5c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveInlineConcurrency (cyclomatic 17, cognitive 17): saveInlineConcurrency has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2747}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fd016f2ad0fed2b5fe211c10eaf3c8540300a7e9133eed23507e91ce77626d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function confirmVulnerabilityRetest (cyclomatic 17, cognitive 17): confirmVulnerabilityRetest has cyclomatic complexity 17 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":2676}}}],"partialFingerprints":{"codehealthFindingId/v1":"391c1c414b3a40b61903a4cbe18f8d58310e796667141fe472b1c0abdc719ea5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveConfig (cyclomatic 17, cognitive 16): saveConfig has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/storage.js"},"region":{"startLine":156}}}],"partialFingerprints":{"codehealthFindingId/v1":"78003b1f5b55c04af8a7560a32d58173784872c717ff71ffe98ba88cdf2bb743"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadAssets (cyclomatic 17, cognitive 16): loadAssets has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":707}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a541801df7a4f1d81dbc578c66ae36d001b06ff4f5f31cbb368b602e5cde0b6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setSessionSleep (cyclomatic 17, cognitive 16): setSessionSleep has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1753}}}],"partialFingerprints":{"codehealthFindingId/v1":"724fa37e5d3e9e442a6941e9f5a87e0f0e530503d5146602c2b21d0b984f749d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderFofaResults (cyclomatic 17, cognitive 16): renderFofaResults has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1038}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f7fca464eeac3e76d00ecc30e8e527f389e5cf60d49e1e5317100006c40a66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadProjectAssets (cyclomatic 17, cognitive 16): loadProjectAssets has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"07851de742044738fc0a2b9e944cbf9c225694df389806daf2a2d260dfa557db"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 17, cognitive 16): (anonymous) has cyclomatic complexity 17 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1801}}}],"partialFingerprints":{"codehealthFindingId/v1":"b71628b1a46b2aca89a6ecdc8ff4e2f1e0194d702d3cc7b2fb0fd7685138009b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hitlPendingItemToData (cyclomatic 17, cognitive 14): hitlPendingItemToData has cyclomatic complexity 17 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5342}}}],"partialFingerprints":{"codehealthFindingId/v1":"3339d2fda4cdb08d4c33cc0d838847aec2df4678cb2500ef85277fc763ffe0fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sessionInfoRow (cyclomatic 17, cognitive 13): sessionInfoRow has cyclomatic complexity 17 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"19c07193ca4ba72337d57e940a611507706bab4ca46bd7d30185bdcadec75feb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatDescription (cyclomatic 16, cognitive 31): formatDescription has cyclomatic complexity 16 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/api-docs.js"},"region":{"startLine":862}}}],"partialFingerprints":{"codehealthFindingId/v1":"a60dcce5c4825d0dd2d776e53b13b3b02455dfbf1f59794e561ee422861e5968"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteChatFolderFromBrowse (cyclomatic 16, cognitive 30): deleteChatFolderFromBrowse has cyclomatic complexity 16 and cognitive complexity 30; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1377}}}],"partialFingerprints":{"codehealthFindingId/v1":"29184f427d8456070dd9e2837d002ab39d566ef5181127eb1641c13750f8ab31"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatTime (cyclomatic 16, cognitive 27): formatTime has cyclomatic complexity 16 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 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":"web/static/js/knowledge.js"},"region":{"startLine":2031}}}],"partialFingerprints":{"codehealthFindingId/v1":"c85bddde41c29a8057d33d1a10594b07a781cd4a7a08b7121010e8ea39659941"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function normalizeLine (cyclomatic 16, cognitive 27): normalizeLine has cyclomatic complexity 16 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 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":"web/static/js/monitor.js"},"region":{"startLine":766}}}],"partialFingerprints":{"codehealthFindingId/v1":"a64a5c4b05befeecb2b70b1588cdb52e67b0dcc9f1f4bc74939b02791512a72e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadAttackChain (cyclomatic 16, cognitive 24): loadAttackChain has cyclomatic complexity 16 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":7029}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd67262fc049795cf94ee1ddd64693aca2f47993d41c09a706c69a082a8fff47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function performHardCancelProgressTask (cyclomatic 16, cognitive 23): performHardCancelProgressTask has cyclomatic complexity 16 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1467}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef17f836aaa90634f4396bc370585bdf4c5cd5403b4edecf4be7cedae15bb2f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 22): (anonymous) has cyclomatic complexity 16 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 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":"web/static/js/monitor.js"},"region":{"startLine":7146}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1555366e339a4f2c838aef4bc0852fcf52e1853389ca17bfc4fb745203fea15"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshChatPanelI18n (cyclomatic 16, cognitive 21): refreshChatPanelI18n has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":11158}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ffedc307f4fdaac359c3be65a145d57fbfee59e1528ff56991234c886353bba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 21): (anonymous) has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6939}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd7323acbc4e393ded1b9c8f688262fa859c836db718f42d604821ef0cc21b79"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshMonitorPanelWithFilter (cyclomatic 16, cognitive 21): refreshMonitorPanelWithFilter has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7604}}}],"partialFingerprints":{"codehealthFindingId/v1":"ddd216d5412a293e7deda8c36be8f3bf56eca879fabae3953aff2bd1dfb207c6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 21): (anonymous) has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":605}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1020299ec6c00d8349f1d7608e3eccc866a84f29abfe4fd40920e568b9734e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toggleToolDetail (cyclomatic 16, cognitive 21): toggleToolDetail has cyclomatic complexity 16 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":1488}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f88a479a42eeda0e261554462f7ce51d747e5a12e64701c1b29c20a382fe334"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function copyCurlCommand (cyclomatic 16, cognitive 20): copyCurlCommand has cyclomatic complexity 16 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/api-docs.js"},"region":{"startLine":737}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e0c220067717f2d8b5cef857795fcc40017166c9024a0dbedbf6160c526e6fd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 20): (anonymous) has cyclomatic complexity 16 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1364}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9a1e035eecb6c95863d48d66f10833e4ffe03a76ab8055a6053b6f9d0cef265"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ensureMcpCallSectionChrome (cyclomatic 16, cognitive 19): ensureMcpCallSectionChrome has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5212}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3c8c6462ce1ff1724ddb6660a3d09dbb6218ed59c4ffa1f7a60433218be8a1d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function inferTargetFromRow (cyclomatic 16, cognitive 19): inferTargetFromRow has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1155}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ab977f086b42a4d8742c3be69dfe1aadcfd4453f44e8bcf396989d38136316d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateAIChannelEditorChrome (cyclomatic 16, cognitive 19): updateAIChannelEditorChrome has cyclomatic complexity 16 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2942}}}],"partialFingerprints":{"codehealthFindingId/v1":"56fa4b4da5bb9bc3430055710a95995bd62b127884ecb4d37d0085a2180fe93a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submit (cyclomatic 16, cognitive 18): submit has cyclomatic complexity 16 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5140}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb2ad2989fdf2f2c009f0bad457e6f69118ac69b6245ec39c5bbf05de508ad39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateRobotBindingCode (cyclomatic 16, cognitive 17): generateRobotBindingCode has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/auth.js"},"region":{"startLine":803}}}],"partialFingerprints":{"codehealthFindingId/v1":"a44e55b1e5b9dddf636af6d242b91644065589c7020b4d90c2b4c112dac2c609"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function chatFilesUploadFile (cyclomatic 16, cognitive 17): chatFilesUploadFile has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"55c6fbdf90ccc2d4953b8749f6a89255b7165257ba7ef9ad247d2ee782763970"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncAssistantReasoningContentFromServer (cyclomatic 16, cognitive 17): syncAssistantReasoningContentFromServer has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3857}}}],"partialFingerprints":{"codehealthFindingId/v1":"30ec437b43f9991ed4837354bb1e51301b977ad8bac4d14609780f471bc638a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitFofaSearch (cyclomatic 16, cognitive 17): submitFofaSearch has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":742}}}],"partialFingerprints":{"codehealthFindingId/v1":"449406e2c6757bdbbaab89e38fff54ea0ccff7e0a8f35d0c0e0bc479d690d16a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderDirectHitlSidebarApproval (cyclomatic 16, cognitive 17): renderDirectHitlSidebarApproval has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4923}}}],"partialFingerprints":{"codehealthFindingId/v1":"21621dc200e725dad95de2f743e612b11b706db15addf1674406ff4e22972906"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 17): (anonymous) has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/storage.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"cef8c0a571a9aadd9eeefe2e3a1483c0d09065265089a02a1ba2143cb04a7aa2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderTokenUsageAnalysis (cyclomatic 16, cognitive 17): renderTokenUsageAnalysis has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/token-usage.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9490d850c7bc89750f3eb92a150c8fb4dd4781c0b2b4414e356b5285c16eb0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runWebshellAiSend (cyclomatic 16, cognitive 17): runWebshellAiSend has cyclomatic complexity 16 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3383}}}],"partialFingerprints":{"codehealthFindingId/v1":"71230f96a802fd393bdd9b67e9725251c453573588086d4f097ca7bb1490ea86"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finishProcessDetailsRender (cyclomatic 16, cognitive 16): finishProcessDetailsRender has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4542}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb5b2094cf244f91515d997293787af279219a451065994a984e6332fe248b47"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fillVisionConfigFromCurrent (cyclomatic 16, cognitive 16): fillVisionConfigFromCurrent has cyclomatic complexity 16 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2318}}}],"partialFingerprints":{"codehealthFindingId/v1":"402b3fe0b4e6fc48f7149d54b958de6cf94630f04ffc8c3f9557649b9e4ab123"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openChatSessionSettings (cyclomatic 16, cognitive 15): openChatSessionSettings has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1736}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9cd67a9ab14212607a6e43e885ce481d986b6619684e4ec127195749ef73d38"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startBatchQueue (cyclomatic 16, cognitive 15): startBatchQueue has cyclomatic complexity 16 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb6ab0b59a2c74069b753e5e424d4218df10263c30c685bbbefb690ccaf9e198"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toPrompt (cyclomatic 16, cognitive 14): toPrompt has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/formatter.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d666bb9b14349ff035c650af2516a7606daca9976ea2a753c8c2e4fd757818"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ensureDbDatabaseColumns (cyclomatic 16, cognitive 14): ensureDbDatabaseColumns has cyclomatic complexity 16 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3098}}}],"partialFingerprints":{"codehealthFindingId/v1":"b10aca5784bf542df938b411d5aa004448471e21271e80210bc55723568eb7d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setHitlApprovalTaskAvailability (cyclomatic 16, cognitive 13): setHitlApprovalTaskAvailability has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1246}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f7f881e2ac34c12aa40f2da6eb180b94946e2a3899d918bcd3c4eb37b20cb5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ensureDbTableColumns (cyclomatic 16, cognitive 13): ensureDbTableColumns has cyclomatic complexity 16 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3059}}}],"partialFingerprints":{"codehealthFindingId/v1":"90f94cd0e0ff9f9bfeab3b4c640212fae237c0e06c61d526c5490078e8e6d9f6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 16, cognitive 12): (anonymous) has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10702}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf8f7ad776460f0fe56d863e8192adf1ed40b6b1621362d58946b3d676721a7d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function linkFactToExistingVulnerability (cyclomatic 16, cognitive 12): linkFactToExistingVulnerability has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1707}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d005d4c8c133bd59336d13555e4a0fd1bb055de99cadc79d15bf14eed64012c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testLocalRule (cyclomatic 16, cognitive 12): testLocalRule has cyclomatic complexity 16 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tool-guard.js"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"f305b1301f42a10e395ce599118acabb6f58fe997969d361be47f32b62d4c633"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderRecentFacts (cyclomatic 15, cognitive 23): renderRecentFacts has cyclomatic complexity 15 and cognitive complexity 23; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1397}}}],"partialFingerprints":{"codehealthFindingId/v1":"7aae41df6c65b8f3693499fb3931b3caf6958473f8639c76d930ae217e2658fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wrapTextLines (cyclomatic 15, cognitive 21): wrapTextLines has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/fact-graph.js"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"856f13df5ef19bb3024ea2508c38eb58a289aa85efcc025eef7ed7b4ac71d434"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 21): (anonymous) has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2405}}}],"partialFingerprints":{"codehealthFindingId/v1":"602e7170d7f695ff0a04db690a2c725a5ccba4a98e0dcae67a90059354aadfe3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 21): (anonymous) has cyclomatic complexity 15 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3341}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9c8deb7838d37317498eef87f003734c34437529cf849c43c34afd533812652"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function modelFetch (cyclomatic 15, cognitive 20): modelFetch has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/pi/src/network.ts"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea09ba13ac0b298766c85704521e30bc026ea13c1c42bf63e832d007d44ccfbf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitWorkflowHitlDecisionFromPage (cyclomatic 15, cognitive 20): submitWorkflowHitlDecisionFromPage has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":855}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea88540ef04539c59f5e5f34b57a3c34e9fab28ae60766bf328cae1215d70bd8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatExecutionDuration (cyclomatic 15, cognitive 20): formatExecutionDuration has cyclomatic complexity 15 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9499}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c767c9fb7cbdc569fa85bceac46e8ff101e048ca4b79ddce76abb50177e8e56"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function searchKnowledgeItems (cyclomatic 15, cognitive 19): searchKnowledgeItems has cyclomatic complexity 15 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":732}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a4f04e724bb8f4ca6a2c4f54af48b0323e5c431d23eb1d059867736d3d9678d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectWorkflowElement (cyclomatic 15, cognitive 19): selectWorkflowElement has cyclomatic complexity 15 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":942}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e4819db5e7bf796d4f8b13276517a823251dbf017b96974b8ec0fab1eab5e5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function regenerateAttackChain (cyclomatic 15, cognitive 18): regenerateAttackChain has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":8208}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa5b247cbc2b26d116ae18fa02d444c5579ff288918bdafe288f4c4924829a79"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyStreamPlainTextNow (cyclomatic 15, cognitive 18): applyStreamPlainTextNow has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"9050a3525b6e8d7eec4afb19e4ed72b8f85fb43f1120f09994553be47e52e9d7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openNotificationTarget (cyclomatic 15, cognitive 18): openNotificationTarget has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/notifications.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d9cb5c754c3f974b332f6fb3bae1ec2a21b66cc5cb9a0856f4c307a6b153fee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 18): (anonymous) has cyclomatic complexity 15 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3202}}}],"partialFingerprints":{"codehealthFindingId/v1":"73374ee212889ff96b3d3539623585f7e7043bfcffcd2b7ec6e4f76c8d14ed2b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openChatSystemModelView (cyclomatic 15, cognitive 17): openChatSystemModelView has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1433}}}],"partialFingerprints":{"codehealthFindingId/v1":"a374dd5aac7c3d67df730d68d5c00ea5217d5b99dfbd9dc7a04c7937a0593617"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function findRestoredMainResponseStreamItem (cyclomatic 15, cognitive 17): findRestoredMainResponseStreamItem has cyclomatic complexity 15 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac29a70d4dcc68aa264db9ce87cf9116c14dbec1e1995bbcd1ec70fcca6a3e4a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderAssetCoverage (cyclomatic 15, cognitive 16): renderAssetCoverage has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"b501cd19cfed904196bc0b0b5a79d7a49436e9b50600d6b6530aafbfa3f4d5fb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createProjectTaskStatus (cyclomatic 15, cognitive 16): createProjectTaskStatus has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2780}}}],"partialFingerprints":{"codehealthFindingId/v1":"e157728aaadf8725989f85db6d1c7f7823c366ac5281588a0cfbc0d6e0036df1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderOverview (cyclomatic 15, cognitive 16): renderOverview has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/storage.js"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"23bd68327bc211c304c106dee3afdfdcdafd341b11b9dc768e369357b8e07a32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadVulnerabilityAlertSubscription (cyclomatic 15, cognitive 16): loadVulnerabilityAlertSubscription has cyclomatic complexity 15 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1686b94e5710eb222dc14acd1fe19fc3edded09d21916b13f45125b6fe99dfb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderRequestBody (cyclomatic 15, cognitive 15): renderRequestBody has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/api-docs.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"21e6cfa07d67d495be84a1504129520469567eb3d51b39e097084458dc94413d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function validateAssetEditor (cyclomatic 15, cognitive 15): validateAssetEditor has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/assets.js"},"region":{"startLine":1546}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ecdb814e43e6e2f30fa1e03ff1fb2a9af8767e14a2117f2c767772a359a2353"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncVisibleConversationTaskReplay (cyclomatic 15, cognitive 15): syncVisibleConversationTaskReplay has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/monitor.js"},"region":{"startLine":6979}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e3498925f58f1779e0f0aa3fdfee73f8c570fb8ffc8cec2a873fd7daf615f6f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/roles.js"},"region":{"startLine":941}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73deb0201712e0e571a3cef0da1d0e6d3063c97ab3fce9f34a058453a004f8b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadTasks (cyclomatic 15, cognitive 15): loadTasks has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/tasks.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"69a93b51773ff037c9e73c854800ea6c11dd19679187a627316758a541df3da4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderUpdateApplyBody (cyclomatic 15, cognitive 15): renderUpdateApplyBody has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/update.js"},"region":{"startLine":823}}}],"partialFingerprints":{"codehealthFindingId/v1":"58d40e73df3b0161bbc2aeb973a50d1536f30af48391ab965a7fc373e717d179"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 15): (anonymous) has cyclomatic complexity 15 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/webshell.js"},"region":{"startLine":4448}}}],"partialFingerprints":{"codehealthFindingId/v1":"47fe23c7d61106ca902ace99551f3562a30d4d883852c012271d7948064b2f43"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderAuditLogsPagination (cyclomatic 15, cognitive 14): renderAuditLogsPagination has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":367}}}],"partialFingerprints":{"codehealthFindingId/v1":"20569326796ce930cb9eeb22444ad7e8592f7aa988b9abe461ab1d75bc768dd9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function selectChatSystemModel (cyclomatic 15, cognitive 14): selectChatSystemModel has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1483}}}],"partialFingerprints":{"codehealthFindingId/v1":"82e5d1ec467263926e48a5af126690a5821207548f104d422cd2e34cc4dff348"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startNewConversation (cyclomatic 15, cognitive 14): startNewConversation has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5916}}}],"partialFingerprints":{"codehealthFindingId/v1":"a518ae0c405c8f513eef67666bebfd1efe1dd8c76c2c176caedc6a60a4478431"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderHitlPagination (cyclomatic 15, cognitive 14): renderHitlPagination has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"edc1ca9d6111609ead59c526f7d42a0b2f7d1258a847d299cb10489038b2abfe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMcpStatsInsightPanel (cyclomatic 15, cognitive 14): renderMcpStatsInsightPanel has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":8487}}}],"partialFingerprints":{"codehealthFindingId/v1":"0279ddd3f505f6916ab80d2adcbd997faef8cd285e131134d38c76f1b6f63a85"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showAddRoleModal (cyclomatic 15, cognitive 14): showAddRoleModal has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":1294}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa7f0f60b1cd16bdbef93fb8ad7bbbae747bc47902aed55dacbbc73ee0a6491e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatVulnerabilityAsMarkdown (cyclomatic 15, cognitive 14): formatVulnerabilityAsMarkdown has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":2299}}}],"partialFingerprints":{"codehealthFindingId/v1":"26164685e7ac005928b73d75aaad48e72c6c32408c9f7abf04080a8edd47bd3f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderWorkflowPackageInspection (cyclomatic 15, cognitive 14): renderWorkflowPackageInspection has cyclomatic complexity 15 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2659}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c2f0b8b1f46927ed6c14d3dcf54f9b6809068acbbcb4133b3d9a9e76fdb97d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseLsLine (cyclomatic 15, cognitive 13): parseLsLine has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2679}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ec48a914e2b20bf15e5fdec5041a62ffb00ecf5cc231861cf2a605b90fd31bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function restoreChatDraft (cyclomatic 15, cognitive 13): restoreChatDraft has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba80dbdb72814f29f1f936d443e7a108651acbeae2693bc5206290ebef1b9fae"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function pathGraphNodeLayer (cyclomatic 15, cognitive 13): pathGraphNodeLayer has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/fact-graph.js"},"region":{"startLine":471}}}],"partialFingerprints":{"codehealthFindingId/v1":"31d440d280875929d6eb9b210d2da0f0abc083bec6445a76251c6fe2e09d3d54"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function webshellDbCollectConfig (cyclomatic 15, cognitive 13): webshellDbCollectConfig has cyclomatic complexity 15 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1759}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b03e0b376f9af897f5c23deb528cb38f97363981cd2f686cfc9c39866905f75"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildTimelineSparseHint (cyclomatic 15, cognitive 12): buildTimelineSparseHint has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":8027}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5198090389862b8abfe49c8d309d82b2640477c0f6b047ff7587e2880fc0d45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateProjectStats (cyclomatic 15, cognitive 12): updateProjectStats has cyclomatic complexity 15 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":971}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4615fedcb41f260268cfc9283d399024d5486b994be082b3e0225016b04358e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 15, cognitive 11): (anonymous) has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":3563}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3a31a3f1a48775e810cea6734201d3941f0f78b931411554fa35c39ced39a4c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getHitlApprovalTiming (cyclomatic 15, cognitive 11): getHitlApprovalTiming has cyclomatic complexity 15 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4355}}}],"partialFingerprints":{"codehealthFindingId/v1":"05264e225d3d6d2747b9af9d9b70fb53095371b139fbe638d2cd5d5062d0cc4f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initializeChatUI (cyclomatic 14, cognitive 31): initializeChatUI has cyclomatic complexity 14 and cognitive complexity 31; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat.js"},"region":{"startLine":3315}}}],"partialFingerprints":{"codehealthFindingId/v1":"c65cb3900cc08eb0191679d27afdbf87a7f065f0b4a8ffb2adea852498bc04ab"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showBatchImportModal (cyclomatic 14, cognitive 24): showBatchImportModal has cyclomatic complexity 14 and cognitive complexity 24; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":898}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad6209eaf5913a2e283e0a06ae3b975caa4e641d6629da3276de118a24de3494"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wsRenderRoleList (cyclomatic 14, cognitive 22): wsRenderRoleList has cyclomatic complexity 14 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 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":"web/static/js/webshell.js"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"47a7d423e8318668a7cc176715af7b4091e2f7a665052df4c6fbcc64b4afe13b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function downloadSelectedVulnerability (cyclomatic 14, cognitive 21): downloadSelectedVulnerability has cyclomatic complexity 14 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability-download.js"},"region":{"startLine":17}}}],"partialFingerprints":{"codehealthFindingId/v1":"cab1bd4c2c34aee0c811c61448f556a3bb839180bd19ec6b8b4780e874e029e6"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 19): (anonymous) has cyclomatic complexity 14 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":5268}}}],"partialFingerprints":{"codehealthFindingId/v1":"836c3ade361e7ae7ef922e155d08bcf623dbd2b8244580923047deef321e80e8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncHitlAuditBackendUI (cyclomatic 14, cognitive 18): syncHitlAuditBackendUI has cyclomatic complexity 14 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3764}}}],"partialFingerprints":{"codehealthFindingId/v1":"9332e56afeac3ea5c6afffa49a409584e8cfe3209b8f6e6689dc725beba72839"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchMentionTools (cyclomatic 14, cognitive 17): fetchMentionTools has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2850}}}],"partialFingerprints":{"codehealthFindingId/v1":"78348adccfc61ddb93f812f5719d6c2e7bd05c6e6b086e2c96bba0cb60fceea7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function switchHitlPageTab (cyclomatic 14, cognitive 17): switchHitlPageTab has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1056}}}],"partialFingerprints":{"codehealthFindingId/v1":"b553a22f6387cdec33b65b6420d34d21f6957213152546262284b6d3678e2810"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function batchDeleteExecutions (cyclomatic 14, cognitive 17): batchDeleteExecutions has cyclomatic complexity 14 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9451}}}],"partialFingerprints":{"codehealthFindingId/v1":"d043e925e5ac74da31f3f6393f62e31553acc765187c26e5df5a889a39d10c70"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fillSelect (cyclomatic 14, cognitive 16): fillSelect has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":784}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ff7a28b48145484aba5b9ec4f41752671ceaa782d4fe5559367d3ccddfcce2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function uploadOneChatAttachment (cyclomatic 14, cognitive 16): uploadOneChatAttachment has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2671}}}],"partialFingerprints":{"codehealthFindingId/v1":"00741d4ea17f9fe09c56a769c3a3ad9777162cd66e45513dbf371c72bdaee3bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fillFactModalForm (cyclomatic 14, cognitive 16): fillFactModalForm has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2339}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c9b5e8e36711044445580e0dfdcdf557411e8fe41b2eb16d74d1f37f6ebdc85"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshTokenUsage (cyclomatic 14, cognitive 16): refreshTokenUsage has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/token-usage.js"},"region":{"startLine":28}}}],"partialFingerprints":{"codehealthFindingId/v1":"c7eaec38d58b4dfc21ea143a067148470a5b81824ffb86b1ffd5384d62d17bd3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 16): (anonymous) has cyclomatic complexity 14 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1604}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc166cb49d0ed152b7a2836c23e39869d9db103a6858a7b3210acb8faa17e59"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function chatFilesTreePathDisplayName (cyclomatic 14, cognitive 15): chatFilesTreePathDisplayName has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat-files.js"},"region":{"startLine":884}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c92b837e71f4b46659b015b7cc4f25b05cc5d2f995e938ab4798d8a7072bc1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dispatchStreamEvent (cyclomatic 14, cognitive 15): dispatchStreamEvent has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat.js"},"region":{"startLine":2451}}}],"partialFingerprints":{"codehealthFindingId/v1":"457d5ebde17da5ec677d5d853668ca5e99bad94b7d0f86d61b7f4ab99f271b0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleChatInputKeydown (cyclomatic 14, cognitive 15): handleChatInputKeydown has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat.js"},"region":{"startLine":2950}}}],"partialFingerprints":{"codehealthFindingId/v1":"dd2b88e0976b84d98f3f308ebb08dd5107906a395cd9076a8ed05bf07a6f4774"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function clearHitlLogs (cyclomatic 14, cognitive 15): clearHitlLogs has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/hitl.js"},"region":{"startLine":1638}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a68ecccef3261194f3b5e367a94e836035edd99110985281182d7d3550797f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 15): (anonymous) has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/modal.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b77b1c46bd330afda507313faea943f5eaf0825ad74bc3557cb53fdd28cce06"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function describeHitlApprovalRequest (cyclomatic 14, cognitive 15): describeHitlApprovalRequest has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/monitor.js"},"region":{"startLine":4301}}}],"partialFingerprints":{"codehealthFindingId/v1":"1af956cb5e8aeeae3c1ce6b908ca55c5b0d85203ef793dbb25b3fc042ae8e0be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function persistAIConfigOnlyToServer (cyclomatic 14, cognitive 15): persistAIConfigOnlyToServer has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/settings.js"},"region":{"startLine":3112}}}],"partialFingerprints":{"codehealthFindingId/v1":"641ee1590467761ecb3092d2ef02031edb90a874edf7659b1c0763a05e81ce43"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadBatchQueues (cyclomatic 14, cognitive 15): loadBatchQueues has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/tasks.js"},"region":{"startLine":1137}}}],"partialFingerprints":{"codehealthFindingId/v1":"78fc11ac8dd9caf3192e54a1187ae1d74aac60d4f9324a23be3d474d73b3cf0d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function webshellFinalizationNotice (cyclomatic 14, cognitive 15): webshellFinalizationNotice has cyclomatic complexity 14 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/webshell.js"},"region":{"startLine":1372}}}],"partialFingerprints":{"codehealthFindingId/v1":"cfba2ab906d0703d25b635f26c97e7190f2898558fa825b0c5ec6d45a1abd134"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderChatFilesPagination (cyclomatic 14, cognitive 14): renderChatFilesPagination has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":505}}}],"partialFingerprints":{"codehealthFindingId/v1":"01f3bb48583dd3e644b057d29c3187237c31eef7d451a49899da957c3a7bf8de"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteConversationTurnFromUI (cyclomatic 14, cognitive 14): deleteConversationTurnFromUI has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6768}}}],"partialFingerprints":{"codehealthFindingId/v1":"40f9f29b262fa7caf4d25ad2b310e56f1e41e1ec4ce44b0eff04116ecabda287"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatLiveTimelinePrunedMarker (cyclomatic 14, cognitive 14): formatLiveTimelinePrunedMarker has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6564}}}],"partialFingerprints":{"codehealthFindingId/v1":"43e6c998bd533e12e5855067bfe5dc6ddb5c8244a63392499c62cee3f2a17038"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadPlatformRbac (cyclomatic 14, cognitive 14): loadPlatformRbac has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/rbac.js"},"region":{"startLine":444}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b60fd476ebc423556ba8e1bc28a467bc819d21b214b8750d0f8a7a04aaa3d05"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveInlineSchedule (cyclomatic 14, cognitive 14): saveInlineSchedule has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2863}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c470392e8f71abf3855dbcd519fe509779d364312d40bfa9a01732bb0da13c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderUpdateRemoteBody (cyclomatic 14, cognitive 14): renderUpdateRemoteBody has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/update.js"},"region":{"startLine":761}}}],"partialFingerprints":{"codehealthFindingId/v1":"48c8f072856a5e575e19802412d91ad2eedcd62821ea7910f28635b28fc834b0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initWebshellTerminal (cyclomatic 14, cognitive 14): initWebshellTerminal has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3985}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d34d9ee499ba9d261491a29cd87124468e473ca19469fcfd68c0aaac6213410"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showWechatBoundUI (cyclomatic 14, cognitive 14): showWechatBoundUI has cyclomatic complexity 14 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/wechat-robot.js"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"fdb49823fb46053b9085b50fec6aa1d7d2c0dbc7e9bc7eb25c1af3ee34b2693d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderSessions (cyclomatic 14, cognitive 13): renderSessions has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1523}}}],"partialFingerprints":{"codehealthFindingId/v1":"09af3911640e0343085eddaba726e91f4073d8a57883ee32e22c9fbda213dd7a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeAssistantTurnTokenUsage (cyclomatic 14, cognitive 13): mergeAssistantTurnTokenUsage has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4962}}}],"partialFingerprints":{"codehealthFindingId/v1":"46523403e96ea5b9972edcb0cc1fc28fde4296753c054a79f860a667eb834e68"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncDashboardAccessTabs (cyclomatic 14, cognitive 13): syncDashboardAccessTabs has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d80c7e9fe82fc5aac8ad76e38572395e0e065dcb3d51c4666cbeb6f76c1898"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startKnowledgeIndexJob (cyclomatic 14, cognitive 13): startKnowledgeIndexJob has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":871}}}],"partialFingerprints":{"codehealthFindingId/v1":"3da6942a94315d75753b562e1afb39117e12376f8e82deee974e815e48cfc0e1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadRbacResourceOptions (cyclomatic 14, cognitive 13): loadRbacResourceOptions has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/rbac.js"},"region":{"startLine":978}}}],"partialFingerprints":{"codehealthFindingId/v1":"c78d95ff3318a4202dd596247dec5ca46a8fc1e1053d5fee521711dce70d8298"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderToolsPagination (cyclomatic 14, cognitive 13): renderToolsPagination has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":1674}}}],"partialFingerprints":{"codehealthFindingId/v1":"abb1f0e287846c81dd955887678dc61bdc8f24de055be940c34f0a2ca1331386"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildImportRequest (cyclomatic 14, cognitive 13): buildImportRequest has cyclomatic complexity 14 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflow-package-client.js"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"6549fad45595c99c7606a3d8b134b845b4ca8e06a18fece98721d1fb5ce8f38c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 12): (anonymous) has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad24245cb7c616ef3d337f1692d9ddef3d6187bfc9abb3ece6e20ba7d03aa918"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateMentionStateFromInput (cyclomatic 14, cognitive 12): updateMentionStateFromInput has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2988}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b2b3a9dafc554579f5fc162a9b867dfdbfd22950d1f785213bfb218fedaa44b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderChatHitlApprovalDock (cyclomatic 14, cognitive 12): renderChatHitlApprovalDock has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4890}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3bab98ecc4bc222003246612c6513ceace28a618b63e94e48b8e4dd8f5bb8f4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 12): (anonymous) has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2873}}}],"partialFingerprints":{"codehealthFindingId/v1":"8422d24a20eecc43d03f052860d03d5c81ee92df39a8b7e41327721f8f1ca06f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 12): (anonymous) has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/skills.js"},"region":{"startLine":162}}}],"partialFingerprints":{"codehealthFindingId/v1":"9603ed072079b0b18d3243c999d2532c8c6b354eb132ccdf863445636bbd3b32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderVulnerabilityBrowserTable (cyclomatic 14, cognitive 12): renderVulnerabilityBrowserTable has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1555}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a7fb79d8e1a69fefd710433a6cfcf33681ccbc14f6f83a854613aa97db77b4b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function startWechatRobotBind (cyclomatic 14, cognitive 12): startWechatRobotBind has cyclomatic complexity 14 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/wechat-robot.js"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"50ba78858c272bce57fc72a8be6ac87d4a82f20d1d86324c94509f9cdf7e9391"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function detachLiveChatStreamForNavigation (cyclomatic 14, cognitive 11): detachLiveChatStreamForNavigation has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1811}}}],"partialFingerprints":{"codehealthFindingId/v1":"b45a6905ce2cd43d58121e6184cdbce2183b4e540caae4c6c9a76d191e63bd63"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 11): (anonymous) has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10717}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fc2cb378f5b2f0ec670add3238b6f8eab9ecf37191a91c7505b0f110e035871"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderRecommendedActions (cyclomatic 14, cognitive 11): renderRecommendedActions has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"17b49cba18797ad625b1265e289f19468c942ca3ae13f76fafdd72d18a51f63c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function testConfig (cyclomatic 14, cognitive 11): testConfig has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tool-guard.js"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f95313f29e9bfa3cf5ae020546016f4104b4391b7d82db72b9fd7163432656"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 11): (anonymous) has cyclomatic complexity 14 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":165}}}],"partialFingerprints":{"codehealthFindingId/v1":"9302b87a30f07c3542d7eb5f0334ae026515b2e446f9342559f16ebcdcf144a4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function viewEvent (cyclomatic 14, cognitive 10): viewEvent has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4074}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6afeb65dc4ca7ea36463d5383688ffdf82047a4c72b1aca05f9e671e0c91b97"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 14, cognitive 10): (anonymous) has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1451}}}],"partialFingerprints":{"codehealthFindingId/v1":"00edb817a815b67d03d3fafa75b91fcc959cf74bd521bb52d3a1b3c12508cfda"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveSavedAIChannelId (cyclomatic 14, cognitive 10): resolveSavedAIChannelId has cyclomatic complexity 14 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2990}}}],"partialFingerprints":{"codehealthFindingId/v1":"d97cce7a2a6cc99392482debdca1fea6eb53acc7e56011d9e4fec526b0fdedb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 27): (anonymous) has cyclomatic complexity 13 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 is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/project-mobile-layout.test.cjs"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c4edd31dc93cf9bb56b1cd5ad37a37ecde1e15cb1ca3e6c50684c0bd338f414"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncWorkflowMetaIdField (cyclomatic 13, cognitive 21): syncWorkflowMetaIdField has cyclomatic complexity 13 and cognitive complexity 21; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"a836908094f8f6872135c89d70557dc0d86aab0684279e07f644153f3d13e866"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function copyChatFolderPathFromBrowse (cyclomatic 13, cognitive 19): copyChatFolderPathFromBrowse has cyclomatic complexity 13 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1427}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3beb672a632844add1f24fec0b008001db095f0b88dbdae09ff8c4a090a6545"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function populateVulnerabilityModalProjectSelect (cyclomatic 13, cognitive 19): populateVulnerabilityModalProjectSelect has cyclomatic complexity 13 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1733}}}],"partialFingerprints":{"codehealthFindingId/v1":"471bbdaaeccceb7fb698a92b0ca91c7c3b072678fb6c846538758e909602eed2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function requestFullscreenSafe (cyclomatic 13, cognitive 17): requestFullscreenSafe has cyclomatic complexity 13 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/mobile-ui.js"},"region":{"startLine":718}}}],"partialFingerprints":{"codehealthFindingId/v1":"21d554ab93989445daad2cef379e57ff93bfd68d8a983f682985cc8cb183c257"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function revealValidationError (cyclomatic 13, cognitive 17): revealValidationError has cyclomatic complexity 13 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tool-guard.js"},"region":{"startLine":353}}}],"partialFingerprints":{"codehealthFindingId/v1":"689d953e387d87b89fcee2c8d2479cfeb603c3fecc1b63f42d577ae7737d3f3b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function themeFor (cyclomatic 13, cognitive 16): themeFor has cyclomatic complexity 13 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":8573}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a77c5b85c2e54303e9fb0546568a70728502922952e65122b8009db0176b7bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function turnPreviewData (cyclomatic 13, cognitive 15): turnPreviewData has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat-scroll.js"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"c88ed8bec0a94ca351074130029885a72bc8c56ef0e5a16388ff95a9168abb3e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reasoningTextAlreadyInProcessDetails (cyclomatic 13, cognitive 15): reasoningTextAlreadyInProcessDetails has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat.js"},"region":{"startLine":3825}}}],"partialFingerprints":{"codehealthFindingId/v1":"9529f9f789b963ccf418f1c6164b6cd34b0e6f5229af7cc64ede36215d54cf25"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showProjectListActionMenu (cyclomatic 13, cognitive 15): showProjectListActionMenu has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/projects.js"},"region":{"startLine":2160}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9bf8eafdd707ef6c24f0d9f5684cc49ca84d3873475a35f529a3b160bf5256"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function exportCurrentWorkflowPackage (cyclomatic 13, cognitive 15): exportCurrentWorkflowPackage has cyclomatic complexity 13 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/workflows.js"},"region":{"startLine":3027}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bd2d7fae57b777196a39770a5b8d546979c9035f48ab5589063770d53baf7f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initTerminal (cyclomatic 13, cognitive 14): initTerminal has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2190}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6e747f176119b92de712cafeae9758849baa5b0cf1a34a0794f9578dd884817"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncMcpToolsToggleButton (cyclomatic 13, cognitive 14): syncMcpToolsToggleButton has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5273}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5e4029c7329277a80e352424c6292480b2685bf6df112ea61a1145fea65e7fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderKnowledgeItemCard (cyclomatic 13, cognitive 14): renderKnowledgeItemCard has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c972407f8a97069478256f329c09047e828ec17bb22db2927e2c2f44a19d97b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateHitlApprovalSidebar (cyclomatic 13, cognitive 14): updateHitlApprovalSidebar has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4991}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4d15723c4eb2efb818bb1021fc86d9972c6feac3ae663018f4d5329cd2f0c6a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showEditProjectModal (cyclomatic 13, cognitive 14): showEditProjectModal has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1956}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e049d101187384d7c8a41bc6a2280abb8117b4f079ad8c312a815651c4a6bf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderChatProjectFolders (cyclomatic 13, cognitive 14): renderChatProjectFolders has cyclomatic complexity 13 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3555}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bf3c607414075ba20ee68752e6cac95fda03ae33a9b7b5da8fbe3b90dda2cdd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateAssetSelectionUI (cyclomatic 13, cognitive 13): updateAssetSelectionUI has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":860}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec594de990ec76f20883f04cb05216d7cafb7224667eb77c1c4b926bfc2f6e51"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setAssistantTurnTokenUsage (cyclomatic 13, cognitive 13): setAssistantTurnTokenUsage has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4996}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0b1065d51af5ff224fc9a5686f1baca2bc69b1f26f54bc9a5fdd2a6bafdf029"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveConversationRename (cyclomatic 13, cognitive 13): saveConversationRename has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10539}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f3d28410ee503e7bb919ca3e1c7ffe2395330a10630cde2d1cd3e25e62d3d45"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadProjectFactGraph (cyclomatic 13, cognitive 13): loadProjectFactGraph has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ca3ac113c35b24749ce23c923ffde30a0fae3fda9478d4d98c2a21faf6657fa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderProjectPickerPanel (cyclomatic 13, cognitive 13): renderProjectPickerPanel has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3795}}}],"partialFingerprints":{"codehealthFindingId/v1":"43be30d35bdd52422fde574a0f2427a938711e0e0a2098718e42b45fb9e80bb2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 13): (anonymous) has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/sanitize-markdown.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1c2a04a0231cd47cefa45ff0e4e0e1b4cfd0909364ff28380da51e052fad146"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveInlineAgentMode (cyclomatic 13, cognitive 13): saveInlineAgentMode has cyclomatic complexity 13 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":2681}}}],"partialFingerprints":{"codehealthFindingId/v1":"8d29c7d587205ac4dbe9b5096fece1d4e66e41af77a97fd6f78c85b70fdde63b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function summarizeHarEntry (cyclomatic 13, cognitive 12): summarizeHarEntry has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/capture.js"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b09c6edf6ac060fb4745ea935e264b938b447d6209fcf330b2cf0489d0eb6f5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function handleAssetImportFile (cyclomatic 13, cognitive 12): handleAssetImportFile has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"946847422b44e03ce436d9efac439086fe13e76a0f99bba78e925394d0755e3b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateLoopbackBuildHint (cyclomatic 13, cognitive 12): updateLoopbackBuildHint has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":3793}}}],"partialFingerprints":{"codehealthFindingId/v1":"70f57f8ca62899539ddbcc0620ce3125301c60bd0562e2a2561794285a530252"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":52}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0235fb8664fcf34537cb6c22bdbe340013bc322fc5597e231932b702502c224"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3152}}}],"partialFingerprints":{"codehealthFindingId/v1":"f610f9ca2e8ad0369286b22b2695c159c174fe25410798f514d2e264c3e9b588"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatConversationAsMarkdown (cyclomatic 13, cognitive 12): formatConversationAsMarkdown has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10683}}}],"partialFingerprints":{"codehealthFindingId/v1":"570e2d0935d8e80b8973e493c09759ac933948c4b07a958601f85feb7f546e8a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveHitlAuditStrategy (cyclomatic 13, cognitive 12): saveHitlAuditStrategy has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1184}}}],"partialFingerprints":{"codehealthFindingId/v1":"08f3c3d788dc7ea01cc1bec7c4c35741d3285202dbe9d0c37b3518bcbe55c2a8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function exportFofaResults (cyclomatic 13, cognitive 12): exportFofaResults has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1502}}}],"partialFingerprints":{"codehealthFindingId/v1":"a28419f18dc711b2dc9497ef1cdde1a4e5878d01cf603623d1c6a43e3f16db77"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finalizationNoticeMarkdown (cyclomatic 13, cognitive 12): finalizationNoticeMarkdown has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ac47fe5c2644ea4dcdfd718a0ec69dad11c5d94f7a00ca6b94e2a2b1da827d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildToolResultSectionHtml (cyclomatic 13, cognitive 12): buildToolResultSectionHtml has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5988}}}],"partialFingerprints":{"codehealthFindingId/v1":"86979c6b6eb95e5fc858ce278ce7a01777df031aae5a2d194fabdb75d8c0d89c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hasAction (cyclomatic 13, cognitive 12): hasAction has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/notifications.js"},"region":{"startLine":126}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb6771570038d702756f699611f11d86f5658fb2df6230b040632119c1fad277"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderProjectsPagination (cyclomatic 13, cognitive 12): renderProjectsPagination has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"94b777d60d4d93172faec28a39926ae9bee25cfd6d0892ec5d441bda63b396d0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openRbacUserModal (cyclomatic 13, cognitive 12): openRbacUserModal has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/rbac.js"},"region":{"startLine":1230}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffc2a3b293e2c1c79cebacf721ba06e7666762f8ea43a95524ac8e19123dfd3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openRbacRoleModal (cyclomatic 13, cognitive 12): openRbacRoleModal has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/rbac.js"},"region":{"startLine":1352}}}],"partialFingerprints":{"codehealthFindingId/v1":"89c9a48b068a15086e0c14eac04eb31c9b39db14c3311a919292e382545b9b8a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2001}}}],"partialFingerprints":{"codehealthFindingId/v1":"6809119b8186c3cb5dba78400857c8a7e3a3c9a954d4cd98ceaf6382507a85ea"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteSelectedAIChannel (cyclomatic 13, cognitive 12): deleteSelectedAIChannel has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3214}}}],"partialFingerprints":{"codehealthFindingId/v1":"2db1f434fc07c328605daf5b530e06ed090a426087f910b3afdebe9aaf09f8fe"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteSkill (cyclomatic 13, cognitive 12): deleteSkill has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/skills.js"},"region":{"startLine":877}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a250028f4fde56e9b9bc8e1147e44631a0228f85f30a3f89108e7577d2d6f3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1924}}}],"partialFingerprints":{"codehealthFindingId/v1":"f91d43cc6563689bc9ea6e45bd8a289fc39704d2aaffe7d9c77d67b5a071d897"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 12): (anonymous) has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2130}}}],"partialFingerprints":{"codehealthFindingId/v1":"6576a173d8f6913bdd5cf5de2d2f43c1bcc09acd4846571bafa72358d9504c90"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function submitWorkflowDryRun (cyclomatic 13, cognitive 12): submitWorkflowDryRun has cyclomatic complexity 13 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2304}}}],"partialFingerprints":{"codehealthFindingId/v1":"1bb325b2c86fd0aad2b965d83f3bcd7ca01e2dee7caf403aafc3be56864207f8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildAuditQueryParams (cyclomatic 13, cognitive 11): buildAuditQueryParams has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"39dd34abf1a554c6551008cd531eb5067a15956af35a5ccfdecb01e139c813c1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function messageHasConversationContent (cyclomatic 13, cognitive 11): messageHasConversationContent has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4016}}}],"partialFingerprints":{"codehealthFindingId/v1":"01ffd476a30a890a76f2de6452a8e2bbe41f7c4d984ff25182b1a864dbf97fba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showProjectFolderPreview (cyclomatic 13, cognitive 11): showProjectFolderPreview has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2970}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d0067bb0457e23f89a4444e4e57f8e9146ededd6b802d117c5f7837108b8e02"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadChatProjectFolderContext (cyclomatic 13, cognitive 11): loadChatProjectFolderContext has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3413}}}],"partialFingerprints":{"codehealthFindingId/v1":"42356ef84f4d24738bbefd4e34b2a3d9ba7063c0a69c62a30e88d1ca38c84658"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendChatProjectPanelItem (cyclomatic 13, cognitive 11): appendChatProjectPanelItem has cyclomatic complexity 13 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3751}}}],"partialFingerprints":{"codehealthFindingId/v1":"6404308c48a5f34022c258278b672e2b1e43c3e4b8160286cab16792c7c9da28"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 10): (anonymous) has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1542}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a952fb54ff17af8f2e3ac15e739334c119ccb56b2712a333da8871144f1046f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function ensureProcessDetailsReturnLatestControl (cyclomatic 13, cognitive 10): ensureProcessDetailsReturnLatestControl has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1902}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdf1540c1be68112c756ee5deea20c0c7ec9e51a514451172aedbcf6ea9bc37"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderInlineWorkflowHitlApproval (cyclomatic 13, cognitive 10): renderInlineWorkflowHitlApproval has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5085}}}],"partialFingerprints":{"codehealthFindingId/v1":"2499bcb8f339ccd30b785e0ae5bc5c75f3da08193fa0ccee078005f42e11b965"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildWorkflowConditionResultHtml (cyclomatic 13, cognitive 10): buildWorkflowConditionResultHtml has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6532}}}],"partialFingerprints":{"codehealthFindingId/v1":"733cd6246db8f3a5e19f4c3b8f7e77503d11bf6c21e7ed5098a5b3ac781e819f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function commitRule (cyclomatic 13, cognitive 10): commitRule has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tool-guard.js"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"eac7a7407f459f40d5847911b1b3342422ad1ec6233ead29d6c0d4f74c613e0f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 13, cognitive 10): (anonymous) has cyclomatic complexity 13 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":186}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49a1203896b0d84be10aa35449008b0c978bbc76ccaa69a5b5b48b3210bf0a0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncConnectionTestResultForSelectedAIChannel (cyclomatic 13, cognitive 9): syncConnectionTestResultForSelectedAIChannel has cyclomatic complexity 13 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3923}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bbdb50a8cb460802a7f211833d4d419f6ca5fc6e1a31b5292732d01ff4af9e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _acWrapLabel (cyclomatic 12, cognitive 20): _acWrapLabel has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":8327}}}],"partialFingerprints":{"codehealthFindingId/v1":"158aebdeab743751a08765ef0e655a72072241892a0d51eafccd4de97d7db0bc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function collapseAllProgressDetails (cyclomatic 12, cognitive 20): collapseAllProgressDetails has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1648}}}],"partialFingerprints":{"codehealthFindingId/v1":"f39d7fa4f2de8815b49dbc2f5222a85c9a359c2cec8ff4a7975f1967afba5b7a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initRouter (cyclomatic 12, cognitive 20): initRouter has cyclomatic complexity 12 and cognitive complexity 20; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/router.js"},"region":{"startLine":106}}}],"partialFingerprints":{"codehealthFindingId/v1":"c370dfdc06d60f1fe10098cc0f5f2f4a8a46abbb4c58b6e37f58a3b10eb6aa7f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyWebshellAiProjectSelection (cyclomatic 12, cognitive 19): applyWebshellAiProjectSelection has cyclomatic complexity 12 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":493}}}],"partialFingerprints":{"codehealthFindingId/v1":"84cedc24466351ae37ea77bee095312885b715d9bec2298ca631b38065bd154b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function command (cyclomatic 12, cognitive 18): command has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/pi/src/worker.ts"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2bcf2b2c8699b3bcca5038f794d262591e26d73cf9d3c476fb07364ff2d089"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function mergeToolIntoRoleStateMap (cyclomatic 12, cognitive 18): mergeToolIntoRoleStateMap has cyclomatic complexity 12 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":721}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7df1ee27f1ebc14d2ad353a8498c60314e7292c1e866d792cb1e264c8666eb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initializeApp (cyclomatic 12, cognitive 15): initializeApp has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/auth.js"},"region":{"startLine":733}}}],"partialFingerprints":{"codehealthFindingId/v1":"5701a2818349b55013c34cec703581e023601308b49717f6e3bfa2ce612aa08d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 15): (anonymous) has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/c2.js"},"region":{"startLine":3147}}}],"partialFingerprints":{"codehealthFindingId/v1":"dc63b7b19c061393945eca0bd3989a9ee43b11cfb7f1daaca1e86cac65de55d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderPendingMcpCallButtons (cyclomatic 12, cognitive 15): renderPendingMcpCallButtons has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat.js"},"region":{"startLine":5403}}}],"partialFingerprints":{"codehealthFindingId/v1":"189c829fabe3e81a31c97647cd45e8d1ccafbd27a27247a46252295c2b048523"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateConversationSidebarFilterUI (cyclomatic 12, cognitive 15): updateConversationSidebarFilterUI has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/chat.js"},"region":{"startLine":9599}}}],"partialFingerprints":{"codehealthFindingId/v1":"1269d82ced601513249d04f46f67db9d66f71e440a17fb30629a3b12a30e327a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadKnowledgeItems (cyclomatic 12, cognitive 15): loadKnowledgeItems has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/knowledge.js"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d2c7edf21fd983dcb6c6e55dcb013baece951f424cd0de8ec1e822745a859d3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wsUpdateRoleSelectorDisplay (cyclomatic 12, cognitive 15): wsUpdateRoleSelectorDisplay has cyclomatic complexity 12 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/webshell.js"},"region":{"startLine":196}}}],"partialFingerprints":{"codehealthFindingId/v1":"467a0a6553eccf9481ac153c8f5e613b1359816fe97391d8c65bac7dc81e41af"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function downloadConversationMarkdownFromContext (cyclomatic 12, cognitive 14): downloadConversationMarkdownFromContext has cyclomatic complexity 12 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10760}}}],"partialFingerprints":{"codehealthFindingId/v1":"e743ff76a7938bfa04e398fc9b239ed4bfcdedb7d9807734b3dd13a8b1b57933"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apiFetch (cyclomatic 12, cognitive 13): apiFetch has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js"},"region":{"startLine":12}}}],"partialFingerprints":{"codehealthFindingId/v1":"af8e74a532c61894f40b3d381017f41431a0ca53b7c4796eb955c7022e056fb8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshFinalView (cyclomatic 12, cognitive 13): refreshFinalView has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":496}}}],"partialFingerprints":{"codehealthFindingId/v1":"cebec0adfa3ad37ef4eb64ec9694b99bb7b1160b70260de111af524cd7c7edbd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteConversation (cyclomatic 12, cognitive 13): deleteConversation has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6798}}}],"partialFingerprints":{"codehealthFindingId/v1":"30207289f0b0ab57752cad3ffa5f9e093aa36e37172913ee542949990ebc541b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteSelectedConversations (cyclomatic 12, cognitive 13): deleteSelectedConversations has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":11108}}}],"partialFingerprints":{"codehealthFindingId/v1":"5fdc433fc29217f991f8e88c97a983f70a7e5177403a71af0002b4291e8fffcc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildInfoCollectResultsMeta (cyclomatic 12, cognitive 13): buildInfoCollectResultsMeta has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1005}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ffa634730e34d0adb674b05e2ba70dde0bc898d72bef56656dc5079c4418d4a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function toggleProjectArchiveById (cyclomatic 12, cognitive 13): toggleProjectArchiveById has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2245}}}],"partialFingerprints":{"codehealthFindingId/v1":"8f07ed2b4a17377d05f815b83c2584d7135634f5a33c97c86ffb5f9e6eed4f85"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function request (cyclomatic 12, cognitive 13): request has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tool-guard.js"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"2401fae80d0d0c6c30b1af6f4d8fa2d47d8bcfd942c78127314d17bc0231ee6f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateWebshellBatchProbeButton (cyclomatic 12, cognitive 13): updateWebshellBatchProbeButton has cyclomatic complexity 12 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1266}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d708bb7f666afe1e13dbba2497ac7ed7269353b1c53d4367ef620f4dd573790"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderPopup (cyclomatic 12, cognitive 12): renderPopup has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/popup/popup.js"},"region":{"startLine":3}}}],"partialFingerprints":{"codehealthFindingId/v1":"3b2a1c5fe983d47acbadb166108c6df2e6d1707ea6cece8544f1335ed19f961d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/agents.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"97f0f873bc970dbd9e45758093d621d202f5994181f85dbf465d8ba57c2a56be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderTestSection (cyclomatic 12, cognitive 12): renderTestSection has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/api-docs.js"},"region":{"startLine":520}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ef730fc8008df3ade25ca4e78fd58f1f18dd7117355b198f43115a8358a8fcf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadAssetOverview (cyclomatic 12, cognitive 12): loadAssetOverview has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"a3bd0cec09201b1af7269f72b7de5b3fa4b6b738791177889f95b834243cda7c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadAuditSummary (cyclomatic 12, cognitive 12): loadAuditSummary has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":254}}}],"partialFingerprints":{"codehealthFindingId/v1":"d33a2dcbdf00a491b3e3d8357992b32b82da16f9f4bbfe21f929d03f75ea5c89"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae2a4d84f8c9fba40b55a2d7d7098f320e3d863e5d2cae9af992f3406fb18a85"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMentionSuggestions (cyclomatic 12, cognitive 12): renderMentionSuggestions has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3125}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e1412b73bd7e151423e1355dde98d0280d868c1aba55fa24e6a831444b59b94"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function fetchFullProcessDetailData (cyclomatic 12, cognitive 12): fetchFullProcessDetailData has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6054}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ea2a4bd650a4def3ce53ec9f8272fbf5facc2e9e65d526a374ddb0d9924f072"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function saveFactModal (cyclomatic 12, cognitive 12): saveFactModal has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2405}}}],"partialFingerprints":{"codehealthFindingId/v1":"db1c2e5da8ba597136a3379c99c67535319ddb338a21892c71397d3c482ecab4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 12): (anonymous) has cyclomatic complexity 12 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":242}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1d6a6dc40d7c15f55af56e3005de117480f74041c6663dbba2d3dcfd4bf0e3c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderAssetPagination (cyclomatic 12, cognitive 11): renderAssetPagination has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1218}}}],"partialFingerprints":{"codehealthFindingId/v1":"41dcbc2b7ef22320960b9f6588d9a3f7dd7abab9366879d6c5d513afd42321ec"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function importFofaAssetsByIndexes (cyclomatic 12, cognitive 11): importFofaAssetsByIndexes has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1668}}}],"partialFingerprints":{"codehealthFindingId/v1":"559cdc633fdf313d20ace338591778beac51d907516dbd0eee12a8e756ab9184"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showAuditLogDetail (cyclomatic 12, cognitive 11): showAuditLogDetail has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c22814a5cabd42a7d3c79c43531c5526084746feedeccab7775ce54ad4008ff"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderUserMenuProfile (cyclomatic 12, cognitive 11): renderUserMenuProfile has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/auth.js"},"region":{"startLine":632}}}],"partialFingerprints":{"codehealthFindingId/v1":"0bd8486762e29e1f754c8c4bd238373e1099928bb20ee6c55d77ab55647e8f7b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildReasoningRequestPayload (cyclomatic 12, cognitive 11): buildReasoningRequestPayload has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1978}}}],"partialFingerprints":{"codehealthFindingId/v1":"7517f9275077cf0fb2a101189e20bbfee1c9a93f70038e36f0a224a00d507572"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatConversationTimestamp (cyclomatic 12, cognitive 11): formatConversationTimestamp has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6264}}}],"partialFingerprints":{"codehealthFindingId/v1":"314dea8a60a31dba0fbe5a621a668ad44643e39f627a02707de27962f3058fb0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function sameMainResponseStreamMeta (cyclomatic 12, cognitive 11): sameMainResponseStreamMeta has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd2f88416b22f147eff0b7621efa0ed243e5ad06db5f5c39ef3dfbd90d22334c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function reconcilePendingHitlState (cyclomatic 12, cognitive 11): reconcilePendingHitlState has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5035}}}],"partialFingerprints":{"codehealthFindingId/v1":"56e97b2615108ce7e2ad1499870e1938ce5676de4a8441b49163cff9aea473b1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function attachToolResultToCall (cyclomatic 12, cognitive 11): attachToolResultToCall has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6293}}}],"partialFingerprints":{"codehealthFindingId/v1":"0e048535f1171411f1b02f254119f7429c894115fe65ca19c41cb973cb59a981"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7053}}}],"partialFingerprints":{"codehealthFindingId/v1":"59e75f23c1c6b4e20083870e90a490da65f1c795f4dedd9860c73bcc299d64fc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function buildMcpTimelineSvg (cyclomatic 12, cognitive 11): buildMcpTimelineSvg has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7812}}}],"partialFingerprints":{"codehealthFindingId/v1":"c059ba1cdb656e8a2a3c6cd89818c74dbff942be5ffa155e2070afca4e47768e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderMcpStatsMetricsBar (cyclomatic 12, cognitive 11): renderMcpStatsMetricsBar has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":8705}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7234717e7bbfc434a63c379e60177fcfa1fc2f07abec41039abe7508550dfb7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendChatProjectFolderItem (cyclomatic 12, cognitive 11): appendChatProjectFolderItem has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3202}}}],"partialFingerprints":{"codehealthFindingId/v1":"c50c515a4af25ec5f144e3b7e798f1af462a106fcbc71c91ee118f8b525f04b2"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadRbacUserAuditLogs (cyclomatic 12, cognitive 11): loadRbacUserAuditLogs has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/rbac.js"},"region":{"startLine":1086}}}],"partialFingerprints":{"codehealthFindingId/v1":"49c432096c8c6e8d02eb387d69f8f3cf63153a64f3581bd586a1a12068cd860f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderResult (cyclomatic 12, cognitive 11): renderResult has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/storage.js"},"region":{"startLine":218}}}],"partialFingerprints":{"codehealthFindingId/v1":"672719cde8f6fc3da74a06e59d130a42b146f1ca5e398f2580a6a1dbd51e4c1b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateApplyBlockers (cyclomatic 12, cognitive 11): updateApplyBlockers has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/update.js"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa0f95e89b5f2b9ff1b39f7b3301ca4d666fbdd9022be8438a6720d5b85ae341"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 11): (anonymous) has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"71446c566e77ab49f162e27ff36b36b1a8cac5e53072e889636a333e66d32385"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderWebshellProcessDetailsBlock (cyclomatic 12, cognitive 11): renderWebshellProcessDetailsBlock has cyclomatic complexity 12 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2308}}}],"partialFingerprints":{"codehealthFindingId/v1":"826edc66eba2dacbef34632c5647ec6b70d2b84989e8678e8c2f736763840440"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadFileList (cyclomatic 12, cognitive 10): loadFileList has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2792}}}],"partialFingerprints":{"codehealthFindingId/v1":"5115d31310e7eae7ef39c2b2b1899b55dc0d6e8179215db7d46aa49bc5b0fa0e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function isInternalPiDiagnosticDetail (cyclomatic 12, cognitive 10): isInternalPiDiagnosticDetail has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3944}}}],"partialFingerprints":{"codehealthFindingId/v1":"676efce3c16f6d952f85e085b85d2c09423bf3b7df2b2dd8ed3b62d5462dff66"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendSelectedProjectFilterOption (cyclomatic 12, cognitive 10): appendSelectedProjectFilterOption has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9563}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7ff8be715a0c4a6d003483621ed3d5bb9942945343944ffa25a14f7df4d3e72"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolveConversationsListTotal (cyclomatic 12, cognitive 10): resolveConversationsListTotal has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9860}}}],"partialFingerprints":{"codehealthFindingId/v1":"c8bea71ba0f444451f99d44c06db19828d39f63a71845661d1118fb8f1c8a837"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function openAppModal (cyclomatic 12, cognitive 10): openAppModal has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/modal.js"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"be9f06a44c91885f056f2ac17cea9afb31d38241aea86242d6d789671be56009"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":8499}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed4d2ca5875fd1ef05184abb2b5f9aa834fbab78a1ad49fb1c7f35aef677d2e7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 10): (anonymous) has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":8922}}}],"partialFingerprints":{"codehealthFindingId/v1":"5246fee79b9be99e0b28fa85202377eecaec5120a9b2981567d0f108466d41c4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function parseWindowsDirEntry (cyclomatic 12, cognitive 10): parseWindowsDirEntry has cyclomatic complexity 12 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4304}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e82cef2a4438a83c5650ab334b06c93525a3bdd5393fb3bef2aed240f12ae49"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 9): (anonymous) has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":822}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f50259e58c112693a4b55634bd632ae71555f94bbf80e7a7ab8a08e15ba069f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function dispatchAgentPlanTaskEvent (cyclomatic 12, cognitive 9): dispatchAgentPlanTaskEvent has cyclomatic complexity 12 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2901}}}],"partialFingerprints":{"codehealthFindingId/v1":"69899d94844666387a293a6a4493be152d7074b2908d5896701c9b895039ad33"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyChatProjectSelection (cyclomatic 11, cognitive 18): applyChatProjectSelection has cyclomatic complexity 11 and cognitive complexity 18; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3977}}}],"partialFingerprints":{"codehealthFindingId/v1":"05c48f6fe88a9a9d0cdee97e31d9767cb6532566b36b04f16185a0c4cb9b1230"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function setFofaParseLoading (cyclomatic 11, cognitive 16): setFofaParseLoading has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":856}}}],"partialFingerprints":{"codehealthFindingId/v1":"e26edcf55e0f86e44ede5b0e1cc9539cbda7955deb84db4ab8a25fe04c25523f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshWorkflowsI18n (cyclomatic 11, cognitive 16): refreshWorkflowsI18n has cyclomatic complexity 11 and cognitive complexity 16; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":3078}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa3f8e840165e4ec709a5737c368b450c4ce6941e7a8e2ebfc8d0d6244ffe1cb"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resolvePathAgainstPwd (cyclomatic 11, cognitive 15): resolvePathAgainstPwd has cyclomatic complexity 11 and cognitive complexity 15; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive 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":"web/static/js/c2.js"},"region":{"startLine":2620}}}],"partialFingerprints":{"codehealthFindingId/v1":"73719e62dcdd0a5d220c57f443edfdf61a6083ed94a5a63331ad8e5df00d4fe4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getCurrentTimeLocale (cyclomatic 11, cognitive 14): getCurrentTimeLocale has cyclomatic complexity 11 and cognitive complexity 14; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"96192cee175d773bc0c153cbc124c89f7ad1e1b6dcf77d9ba23e1d04d8e4013d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assistantTurnTerminalState (cyclomatic 11, cognitive 13): assistantTurnTerminalState has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5080}}}],"partialFingerprints":{"codehealthFindingId/v1":"33a496927a1ead548244db3cb0279a7b67913e56bed998da36452143534e59ba"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function deleteExecution (cyclomatic 11, cognitive 13): deleteExecution has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9323}}}],"partialFingerprints":{"codehealthFindingId/v1":"067695b562d582cc8d773638c5b014ec71d6259b43350c8cee85d43abf0f0bd8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function syncModelPickDropdown (cyclomatic 11, cognitive 13): syncModelPickDropdown has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2392}}}],"partialFingerprints":{"codehealthFindingId/v1":"113647da4b6536ce7941a42619e7daa252b068668ee82c1bf3d6a2adffa02be7"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function wsStopAiStream (cyclomatic 11, cognitive 13): wsStopAiStream has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":582}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b09625a0f57562c1e90655beb7eda7d9062ba856ed04353a28c9b3e5caedfc"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 13): (anonymous) has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2907}}}],"partialFingerprints":{"codehealthFindingId/v1":"850d60fb681cfb1625461b052993a49793cc1c2e05f017f8289ecdfa58256fbf"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateWorkflowCanvasTitle (cyclomatic 11, cognitive 13): updateWorkflowCanvasTitle has cyclomatic complexity 11 and cognitive complexity 13; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":802}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f9b5b480b7db921924b615d34b1bcd944aef70e7874cfc01e1cbbe2b93c9ac1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showAttackChain (cyclomatic 11, cognitive 12): showAttackChain has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6975}}}],"partialFingerprints":{"codehealthFindingId/v1":"6b574420699788b8dd8b35a3b0d46209bd47fb9fa8228b5b787d7e72afdf9034"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function refreshHitlPageWhitelist (cyclomatic 11, cognitive 12): refreshHitlPageWhitelist has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":464}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac2cebe1abc14c396d2d1a8ee8da5c3013abe232b04448b8e93723f9fc9af4e3"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function batchDeleteHitlLogs (cyclomatic 11, cognitive 12): batchDeleteHitlLogs has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1606}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbf54745fa26500348ad184c2ee6f52a4ed97666934bcf472e0032a1b6b09422"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function translatePlanExecuteAgentName (cyclomatic 11, cognitive 12): translatePlanExecuteAgentName has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"14f14cf4223e354b6b417009768f38d12109a8b201de613e94963d9fc7092d10"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function switchPage (cyclomatic 11, cognitive 12): switchPage has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/router.js"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"fcf815a16d48e00ae8838d4ad89e249ce9f8be82c067237cfa41b011fc26df7d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 12): (anonymous) has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/router.js"},"region":{"startLine":643}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd872b8505d18f14a17fc49b7709b94cf8cdc6964f9e3b836b2ac78eec64e98e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadSkillsMonitor (cyclomatic 11, cognitive 12): loadSkillsMonitor has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/skills.js"},"region":{"startLine":935}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7c22ba1a871494d466c3505146c330b19c4bf448b45c4d0261b29c3ac76c850"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function changeVulnerabilityStatus (cyclomatic 11, cognitive 12): changeVulnerabilityStatus has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f2a774f7082e6cbe3075e2dd2670439bab0120cbf56fe5f0c3dcae33bdcc1d5"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function generateWorkflowFromNaturalLanguage (cyclomatic 11, cognitive 12): generateWorkflowFromNaturalLanguage has cyclomatic complexity 11 and cognitive complexity 12; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1884}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c100e2b566c0b57a270d3b7ae891cc1ebcd6fd2c5f2ee0c744b696e339d4159"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function apiFetch (cyclomatic 11, cognitive 11): apiFetch has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/ui-realistic-scenarios.cjs"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a51335ebf03387ecd0f3a7aac22fdd23ec3bbea2caafcd0bb8eab4c912e31ee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadMarkdownAgents (cyclomatic 11, cognitive 11): loadMarkdownAgents has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/agents.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ba6fc73c8c17fc6d7c06de877ce993b2e2750ba9799abb509364f1bc4650f35"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":668}}}],"partialFingerprints":{"codehealthFindingId/v1":"1eb1c84ef6511944470005f4dfe7c1da0a010447f0a787a6ac44887e21ce6fee"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function getMcpExecutionCount (cyclomatic 11, cognitive 11): getMcpExecutionCount has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4714}}}],"partialFingerprints":{"codehealthFindingId/v1":"70a354787dc0764110a13a7b8c7ec5eb4341c6b8ab18bac89c8e033025ad1961"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initI18n (cyclomatic 11, cognitive 11): initI18n has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":204}}}],"partialFingerprints":{"codehealthFindingId/v1":"be07251045dd99f38a8ad1e97b9d7e843b943a0cdae2ea14996391264201b554"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 11): (anonymous) has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"e607c579cd7ccfaaa2a568f6205a2d1024f3cdf1c1b91009203577288e6befc9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateAIChannelSelectOption (cyclomatic 11, cognitive 11): updateAIChannelSelectOption has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":2756}}}],"partialFingerprints":{"codehealthFindingId/v1":"7044b3e6dd57620271776321cf1ca540f0219b598ff58c648024b4f5c56ff28f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function revealLocalError (cyclomatic 11, cognitive 11): revealLocalError has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tool-guard.js"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"d87e1ac0552d31d36967ed40005d09300f0342aa56e39a510928109cef2959c0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function batchDeleteVulnerabilityReports (cyclomatic 11, cognitive 11): batchDeleteVulnerabilityReports has cyclomatic complexity 11 and cognitive complexity 11; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":2410}}}],"partialFingerprints":{"codehealthFindingId/v1":"558687cddd954057dbd1cea71428587a1fa722bf84edd14a162a9762b4c3e91c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function populateChatAIChannelSelect (cyclomatic 11, cognitive 10): populateChatAIChannelSelect has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1014}}}],"partialFingerprints":{"codehealthFindingId/v1":"986673e5e2f1839dd4c8347c8ab0190bfc22e910a2b02c29d4b7af5bb85be0d1"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function copyDetailBlock (cyclomatic 11, cognitive 10): copyDetailBlock has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5846}}}],"partialFingerprints":{"codehealthFindingId/v1":"6240c74cfeac020ad5fcd98dc829070e6cd4d0da19252c9183bf55ac409f4514"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createConversationListItem (cyclomatic 11, cognitive 10): createConversationListItem has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5973}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f246a1b5b4d7492f37883b003b8cefbe8210f880e995646909b4a99194ebb07"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function hitlCurrentAuditEngine (cyclomatic 11, cognitive 10): hitlCurrentAuditEngine has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"14221740df0385da72b1bcfa526ee4b3d91f6329b290aa4740d1979bb19722e0"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function resetFofaForm (cyclomatic 11, cognitive 10): resetFofaForm has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":719}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb07c473b1d951d0b4a7ab578519ff813f5ae2c85c65df255794619402ca3276"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function showInlineToast (cyclomatic 11, cognitive 10): showInlineToast has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1215}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0acdd74618126ba6af60eb66adf35b2098472ba7a984a98608b42e14f56c1d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function shouldReuseMainResponseStream (cyclomatic 11, cognitive 10): shouldReuseMainResponseStream has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":527}}}],"partialFingerprints":{"codehealthFindingId/v1":"6de9d4cbc3f1bbad23a6eab95178a2e299742e00080348e0640d1ab432dcb05d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function updateAssistantBubbleContent (cyclomatic 11, cognitive 10): updateAssistantBubbleContent has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1054}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc59c7965cf3866bf023f2df6a6a22eca455a7d2ceef1be46e21da3d4cf1295f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyAssistantTurnTimingFromProgress (cyclomatic 11, cognitive 10): applyAssistantTurnTimingFromProgress has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1706}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c56283e3c4cd2ac4933ce3199fa6e76688a923412f7470ce46d553c969f7f39"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function maybeReloadLazyProcessDetails (cyclomatic 11, cognitive 10): maybeReloadLazyProcessDetails has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2546}}}],"partialFingerprints":{"codehealthFindingId/v1":"53e4605cbcfe66e7fe222a48017c33f712b2c3a570ad852b5a6dd2622610b513"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7067}}}],"partialFingerprints":{"codehealthFindingId/v1":"d3bddeef914fb689bc7bac0281182797be892c3b3bb17858b0475571939cda0c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":9096}}}],"partialFingerprints":{"codehealthFindingId/v1":"90bb334c02b97d43a8e7cb7e9121bf0c7306936914679b44b960e9f30fa0c556"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderProjectAssetsPagination (cyclomatic 11, cognitive 10): renderProjectAssetsPagination has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1113}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab22fc8d902bd1a6d55e7ca09983c5c4335e88f48f28b1e532fa545826420d71"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function appendChatProjectConversationItem (cyclomatic 11, cognitive 10): appendChatProjectConversationItem has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":3319}}}],"partialFingerprints":{"codehealthFindingId/v1":"915517507df6b691d57f2b75c34eb9be3da010625c18606be45591ce61620a76"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/rbac.js"},"region":{"startLine":1466}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ba9dd941caa523cb4849edd93dcac806127eefef2b915b656970fe5b01776a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function initModelListControls (cyclomatic 11, cognitive 10): initModelListControls has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3376}}}],"partialFingerprints":{"codehealthFindingId/v1":"34f281658bc214d99904f31bc70ceda53410e6f37884c2b203119821b118c150"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function simplifyWebshellAiError (cyclomatic 11, cognitive 10): simplifyWebshellAiError has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2110}}}],"partialFingerprints":{"codehealthFindingId/v1":"43fcd433476b4bec20ab6297bddf6b80ae11d3c3dc9a1fd64b1bf4f1e7c4647b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3034}}}],"partialFingerprints":{"codehealthFindingId/v1":"c003041e70073e9fcb471ffd7e7f39fa885e210ddbfdb4ea8113745e2dbf9d1c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function webshellFileNewFile (cyclomatic 11, cognitive 10): webshellFileNewFile has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4725}}}],"partialFingerprints":{"codehealthFindingId/v1":"f304d76e201e1c0281140aa7b150fd9eca8bd9bc4ed3c557f05e796785c73455"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 10): (anonymous) has cyclomatic complexity 11 and cognitive complexity 10; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4847}}}],"partialFingerprints":{"codehealthFindingId/v1":"4bcbb2c3ee9adfbfb91f20d925a045100d639bb9c6f41e8c0db5111d2a1d7bf8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function listenerProfileDisplayName (cyclomatic 11, cognitive 9): listenerProfileDisplayName has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"57e55b15409e93aada4523f247477d05d0f88d53aaf572ff8574eca35ba4e6bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1267}}}],"partialFingerprints":{"codehealthFindingId/v1":"e71fedf2b20e77404fd53211550f52a312b0756d44ce2d7dbed80eaf5c89e5bd"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function beginEditSessionNote (cyclomatic 11, cognitive 9): beginEditSessionNote has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1960}}}],"partialFingerprints":{"codehealthFindingId/v1":"be0c386959e344b1e38631cc72fa534d2b5d732f49b611bc1bcff6a857c03db8"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function finishTerminalCommand (cyclomatic 11, cognitive 9): finishTerminalCommand has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2095}}}],"partialFingerprints":{"codehealthFindingId/v1":"8478c0a8f38a80215cefc5cb3c9bc96e6960977222d2a8766177dd7152266f8d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function putHitlDefaultConfig (cyclomatic 11, cognitive 9): putHitlDefaultConfig has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":309}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc01b7b790a3ece11cf3f3063a214a8522cc005690305750efe641c60b02198d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 11, cognitive 9): (anonymous) has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":776}}}],"partialFingerprints":{"codehealthFindingId/v1":"336bf1dec9137ba66f770948bed98090ee5e2110fce00527296d804138992289"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function switchRbacTab (cyclomatic 11, cognitive 9): switchRbacTab has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/rbac.js"},"region":{"startLine":810}}}],"partialFingerprints":{"codehealthFindingId/v1":"55ab8feebbd6fb47841cf229887b72f18024ad1a5536504940f94dc23a688ad4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function positionSettingsCustomSelectMenu (cyclomatic 11, cognitive 9): positionSettingsCustomSelectMenu has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"90df41e38527ec656a1b759dcec37e043a76749762d7371475ae4e39cd684548"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function applyChannelContextDetection (cyclomatic 11, cognitive 9): applyChannelContextDetection has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3101}}}],"partialFingerprints":{"codehealthFindingId/v1":"ba0c2a0be2a5acc4201f81e19d08ee61b10ac05dfe80d18d2cf15c128a2f2b32"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function addRule (cyclomatic 11, cognitive 9): addRule has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tool-guard.js"},"region":{"startLine":402}}}],"partialFingerprints":{"codehealthFindingId/v1":"2753d464d94e52b1f900f2e63e1807c4ea577b6dd597f2c374b28ddc1ff8d5be"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function renderUpdateJobBody (cyclomatic 11, cognitive 9): renderUpdateJobBody has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/update.js"},"region":{"startLine":953}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2b4415562f9e33fa9258e76b0b560a873b0bac0d068152df0d734f6d5b5779f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function loadDbSchema (cyclomatic 11, cognitive 9): loadDbSchema has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3144}}}],"partialFingerprints":{"codehealthFindingId/v1":"8c9c9b2e67c17e95f7139a3b6575ef254980d979c13f37f85cf2a07c56ea2d2e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function runDbQuery (cyclomatic 11, cognitive 9): runDbQuery has cyclomatic complexity 11 and cognitive complexity 9; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive sits below cyclomatic here, so much of the count is breadth \u2014 arms side by side rather than stacked \u2014 and splitting per arm would leave a function per arm; group the work between the checks into named steps instead. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3184}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef7ca8ed8e389821c77724c7fd27f2fe4158142595ff6df27f7a6a027c19bae0"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/chat.js: 10350 lines of code: web/static/js/chat.js has 10350 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"58251b786e11979a18b020914a1f33e54fd9c97e3cd384131b81e5799e6c04f4"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/monitor.js: 9005 lines of code: web/static/js/monitor.js has 9005 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"88e01a716befc576af72869b3b7ba641f0200d0b85854f137cfef9dfa25addbb"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/webshell.js: 5064 lines of code: web/static/js/webshell.js has 5064 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"07ea0f7cc83cb7b2f7591a9e8eb4734df2015c0e5d3e3062ef0cf0c56188a9a2"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/settings.js: 4662 lines of code: web/static/js/settings.js has 4662 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"44de996b0d92dda028c5f8b05e21f3320f4541ac678606bb121dd425175073cb"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/c2.js: 4287 lines of code: web/static/js/c2.js has 4287 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"05605e16d13d2f10733cd029ad17da2a3b1e43feaa5d521023381d5d7dea899c"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/projects.js: 3892 lines of code: web/static/js/projects.js has 3892 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0bfcef4e50ef759bac6b2d2a520474833900224dbdb1191e4f1536b7071f624"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/workflows.js: 2916 lines of code: web/static/js/workflows.js has 2916 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"be1a6aaa356c00ceb1dbfd4c7f30b1d720c5eea5d0df2dc303d6ad2f6c84bd4d"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/tasks.js: 2706 lines of code: web/static/js/tasks.js has 2706 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c48221d7363bf219d31e9b1b66392e4fc51603f4fb1b4487014514fbdcbb14a"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/vulnerability.js: 2475 lines of code: web/static/js/vulnerability.js has 2475 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1cd32d082ebc160952dadbb7a17ce993dd6a72ae8114981379ccf9b3c30d6734"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/dashboard.js: 2301 lines of code: web/static/js/dashboard.js has 2301 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20df4127a1c168c578377962ee8c43da8a85a51a4fcf4c0f5cb491f3fc69d8d6"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/knowledge.js: 2085 lines of code: web/static/js/knowledge.js has 2085 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf645044b82ba3a74590dcf4cbc2b9a5e930acddf9f98e44c46ad65c639b516"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/hitl.js: 1900 lines of code: web/static/js/hitl.js has 1900 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"647a949c5a4df816221d4d8fba1a2c47293dcdbaaefd460f6b2659938c339b1e"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/chat-files.js: 1795 lines of code: web/static/js/chat-files.js has 1795 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f180aeb810348204205d1e9d3865e1b44ad9567781185fab2b52d7e6a3dfb94"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/roles.js: 1724 lines of code: web/static/js/roles.js has 1724 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ffc9f0e558f78899baa6a999b881fb235cf2b8a6527617eb44d08aa9386d236"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/assets.js: 1721 lines of code: web/static/js/assets.js has 1721 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"756898ff82c8a757cb58dfe6dc250568b9f43789675fb584784942be162e9684"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/info-collect.js: 1572 lines of code: web/static/js/info-collect.js has 1572 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a021dff9a75c93815c304d3d34b2c9e48c1a943e99d49fce82befe03820c4e2"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/rbac.js: 1469 lines of code: web/static/js/rbac.js has 1469 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/rbac.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"20547a13d1c0e1fca158bb4b5b4f5405e1eb51fe5b2395167c51cf964747b2c7"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/mobile-ui.js: 1150 lines of code: web/static/js/mobile-ui.js has 1150 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/mobile-ui.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"904ebfa808aefb294f8deeee5b5d15eaeadc6d4835af69966f585dabce594e92"}},{"ruleId":"R3","level":"warning","message":{"text":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js: 1143 lines of code: plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js has 1143 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0e6cfac9cdc8a9f95ac6880f0756d12faa9bec789f63284139134b1ecde919e"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/skills.js: 1014 lines of code: web/static/js/skills.js has 1014 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/skills.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"da2a1edf2b1b2cd6c93e846029260ec25f8072ead6b7fd9ee07b17168251060f"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/update.js: 986 lines of code: web/static/js/update.js has 986 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/update.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"589850a60879644bf61c68f66f2423f3d92f48ab1b7d37c932ca1a5ef805494a"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/auth.js: 944 lines of code: web/static/js/auth.js has 944 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/auth.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"35d360331bd56948b52714e5791e38ef4783dcdc6444c85d617c558eb63829cd"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/api-docs.js: 937 lines of code: web/static/js/api-docs.js has 937 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/api-docs.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e9498d919d728ab11d1d6377a826e16bf2e1ef97288e36976df2b2b575bc7fc"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/audit.js: 843 lines of code: web/static/js/audit.js has 843 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4120d7d65cc9d4ca4b76aa0750d6b4d5cdcd9bd0ec778093dc6d26402aa37589"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/fact-graph.js: 766 lines of code: web/static/js/fact-graph.js has 766 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/fact-graph.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"dea64af0740d2250d6982dc5f96fd385c6914252cddf88363c35d64ddd3a01fd"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/chat-scroll.js: 752 lines of code: web/static/js/chat-scroll.js has 752 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-scroll.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"463fbc560900adf3ae58242bc47249ef09f0f811042a3642b46415f5deeb4b9f"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/tool-guard.js: 701 lines of code: web/static/js/tool-guard.js has 701 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tool-guard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d98f4ac74377d93dec4ccc916657a084bc655994bc28d3f26434aa17d699721"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/router.js: 658 lines of code: web/static/js/router.js has 658 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/router.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"0776d98b426d8566ba8aa672d846d3b1d5b437d0eb64703776933de46679a883"}},{"ruleId":"R3","level":"warning","message":{"text":"web/static/js/terminal.js: 494 lines of code: web/static/js/terminal.js has 494 significant lines (blank lines excluded), over the 400-line bar, and contains logic \u2014 a file this long is usually several responsibilities in one module."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"39cce515ffb38da210469a01763555110d88586c0080273819edd2af3b368161"}},{"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":"web/static/js/dashboard.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"63707a36f8a1408f93f15f8c76c53d40063be704a7c3335046375083f3955cc0"}},{"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":"web/static/js/chat-files.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1b22f27dd6f05b7c688a94ddd48eac84221b005eeade97e21f38a445b338b1"}},{"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":"web/static/js/roles.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cead9144733ae6669541788461cec03ade02da0e8e30221aec1017c545201b47"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dfa205ff9520d39fd0b7e35122a984e4b69702dd197e82df4f0167df8293a92"}},{"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":"web/static/js/api-docs.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdf855bf71488c7ce719436f25f6cf6162409f1c62dca94586ccd07d371951bb"}},{"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":"web/static/js/fact-graph.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ac1482e2c0ea4ff7ced653d2431f95f518d9d40aa16580e4a0d8eecac9e55c1"}},{"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":"web/static/js/terminal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"50268dff0802a7758e59840025a3b5c57b471ffbe25949c9cf700d8776cec6d4"}},{"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":"web/static/js/audit-datetime-picker.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f674ad8d77843aa73d96c2c73011082b645f059d92c87f845c813768689c47b8"}},{"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":"web/static/js/wechat-robot.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cb378f4c671e1556560a30a9c9b73919de6bba419f3e18460b20474f02dbcd0"}},{"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":"web/static/js/storage.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ca59471a6e31dcdf0841517b6ef71f019cc5eeaaee76102880795a1f5caf3074"}},{"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":"web/static/js/agents.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"198fa7e3f5f49523d75f76b7f721b4b903bdd6cc19302c08921a217583a6014c"}},{"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":"web/static/js/vulnerability-workspace.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a65e124664826d019b2b0fdce282c095b33fdd6168eab76ec5a24f15df82d25"}},{"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":"web/static/js/modal.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec801a065e0130dcb04775a52d74b514b13dd35212a8c4f96b1aa42668d3165c"}},{"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":"web/static/js/sanitize-markdown.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e73fa0ae71d5f4321ef86f96fbbcf494e6ff3a0848bc3ea66ab1cf856c0e0952"}},{"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":"web/static/js/theme.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"493fd259d604285c430a3e7c98aad1d469e461b0a69a378ed35da69682fba6db"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/background/service-worker.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c629c316fabbead3dc16c77ab5a373e660025a1d815731c2290f69e4cd0639b3"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/markdown.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9d3cca45f29d7978fc069f52d4a9282755bc518c09b9eb004fff018c9e1630f"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/http-normalize.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"64413a0ed317b76e910f32d213d1910c784d8b27bbb794b2f6ef719d3571abf8"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/capture.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b57149c57e742b9c144a8a9884a85105297d65b2a5131f4e7873bf60a4911ea4"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/devtools.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d2312c3ee5a93f205a5e9bae4befce8a042f44b9b6538b246ed92a1282aee9fd"}},{"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":"web/static/js/vulnerability-download.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"93141934e92aeff62b205a4327cacb53d124fffd937d879a1b6481ac0e26dcf0"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/auth-session.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8afe5a4166e4699894efb9396d52e223fb5977cd209f58efe91953543d68b4f2"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/popup/popup.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ecc8960998635263062cb028607a24df1810e3b543201de8c3db961da8542b6"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/formatter.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a6ac011e7ad87feca96e99291836d5ceeccb4271801d8dc97491a8c8b488b72"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/catalog-cache.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"b928a9f6a4fe736e2e3247d2fb0c178cc6de1cbbc438fbf321776be74df1e545"}},{"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":"web/static/js/builtin-tools.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3436f81d56ba5fcf8c9988be25d2f74dcfa0752b67bcaa88ae24ce3f6f8b3585"}},{"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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/constants.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a34f1d7b556f08f2b112fd0ad862b4805647bf759b366c285cedcf69ff28a83"}},{"ruleId":"R6","level":"warning","message":{"text":"No lint script: test \u2713 \u00B7 lint \u2717 \u00B7 typecheck \u2713 \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":"bc8e67e81453cf5399dd04786d18b232180426b135169175fee670bdd83ccb03"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027WRITE_RE\u0027: This top-level declaration is not exported and its name occurs nowhere else in its module \u2014 not called, read, typed against, re-exported or named by a string. Nothing outside the module can reach a non-exported binding, so this is the whole search: remove it, or use it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/mobile-tap-audit.mjs"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7168f60fe8afe20b40d2abf64393017b04af80c320164ab5c1a5372b78532a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!cfg.Enabled || strings.TrimSpace(cfg.BotToken) == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/robot/discord.go, internal/robot/telegram.go. 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":"internal/robot/discord.go"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"ada33ce1f8dfd918e57e72027c03462558c4ba965902747f4ff981702cb8ad64"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!ok || strings.TrimSpace(session.UserID) == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/handler/notification.go, internal/handler/robot.go. 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":"internal/handler/notification.go"},"region":{"startLine":646}}}],"partialFingerprints":{"codehealthFindingId/v1":"1fd4b9d56359a6aa72a5198a57b9dd98d5c231a1505b8c168ba5f03d2206ab58"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!snap.Installed || snap.CheckError != \u0022\u0022\u0060 appears character-identically in 2 files \u2014 cmd/server/update_cli.go, internal/update/update.go. 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":"cmd/server/update_cli.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"d80fc54c442931f8ff8c66045463f510a74172b882826d586def680516862b8b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(r \u003E= \u0027a\u0027 \u0026\u0026 r \u003C= \u0027z\u0027) || (r \u003E= \u00270\u0027 \u0026\u0026 r \u003C= \u00279\u0027)\u0060 appears character-identically in 2 files \u2014 internal/config/config.go, internal/workflow/draft_generator.go. 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":"internal/config/config.go"},"region":{"startLine":805}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8b11671c617ddc528bf54cd6cf1096cfebb149165afe96d6ed465faa0dec8f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060(r \u003E= \u0027a\u0027 \u0026\u0026 r \u003C= \u0027z\u0027) || (r \u003E= \u00270\u0027 \u0026\u0026 r \u003C= \u00279\u0027) || r == \u0027-\u0027\u0060 appears character-identically in 2 files \u2014 internal/handler/skills.go, internal/skillpackage/validate.go. 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":"internal/handler/skills.go"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"652d099803d64c46df2edebc331b34b381f327c980373b6d797e02cf8ee7a14e"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err != nil || !strings.HasPrefix(absPath, absDir\u002Bstring(filepath.Separator))\u0060 appears character-identically in 2 files \u2014 internal/c2/listener_http.go, internal/c2/tcp_beacon_server.go. 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":"internal/c2/listener_http.go"},"region":{"startLine":412}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6cd93429bdf8b80fab634fe342b0e66e8b3185e684e160366492e1ac0ec48c5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060err == nil \u0026\u0026 value == strings.ToLower(value)\u0060 appears character-identically in 2 files \u2014 internal/update/recovery_evidence.go, internal/workflow/package/manifest.go. 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":"internal/update/recovery_evidence.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6f20ef711fd1fe9d9271536481adf2f8abbe28936866b6f9353583575a97a30"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060errors.Is(cause, ErrTaskCancelled) || errors.Is(cause, multiagent.ErrInterruptContinue)\u0060 appears character-identically in 2 files \u2014 internal/handler/multi_agent.go, internal/handler/single_agent.go. 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":"internal/handler/multi_agent.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f49eb201e5bca2a3c35f802691f66a38211942924b3e283c0b7451c7c7734f5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060h.agentHandler == nil || h.agentHandler.tasks == nil\u0060 appears character-identically in 2 files \u2014 internal/handler/notification.go, internal/handler/robot.go. 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":"internal/handler/notification.go"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"39460014214d9403e0e775ad86fbc56d6ecef4f05bf98aaf0e0011cc8ce0e36d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060h.config == nil || !h.config.MultiAgent.Enabled\u0060 appears character-identically in 3 files \u2014 internal/handler/agent.go, internal/handler/multi_agent.go, internal/handler/robot.go. 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":"internal/handler/agent.go"},"region":{"startLine":932}}}],"partialFingerprints":{"codehealthFindingId/v1":"2547dde9c755cef7f78a125299e0204f5b7a4568ad724f951e254add63236343"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060len(label) == 0 || len(label) \u003E 63 || label[0] == \u0027-\u0027 || label[len(label)-1] == \u0027-\u0027\u0060 appears character-identically in 2 files \u2014 internal/c2/beacon_host.go, internal/database/asset.go. 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":"internal/c2/beacon_host.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"84017728fbcf6847623c03f26e4dcd2c4dfe7778b5ca8288f8b819d5c8cc91b9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pid \u003C= 0 \u0026\u0026 cmd != nil \u0026\u0026 cmd.Process != nil\u0060 appears character-identically in 2 files \u2014 internal/security/procattr_unix.go, internal/security/procattr_windows.go. 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":"internal/security/procattr_unix.go"},"region":{"startLine":25}}}],"partialFingerprints":{"codehealthFindingId/v1":"1961db715f73eb93c42f70fcdb387263490983b40627c195a89d76cdae036908"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060provider == \u0022claude\u0022 || provider == \u0022anthropic\u0022\u0060 appears character-identically in 2 files \u2014 internal/llm/provider.go, internal/multiagent/pi_model.go. 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":"internal/llm/provider.go"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"2e3a1e765738d2c97dbfc2bdd94905980db13536c94715cce9e063b6833506a3"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060queue.Status != \u0022completed\u0022 \u0026\u0026 queue.Status != \u0022cancelled\u0022\u0060 appears character-identically in 2 files \u2014 internal/handler/agent.go, internal/handler/batch_task_mcp.go. 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":"internal/handler/agent.go"},"region":{"startLine":2102}}}],"partialFingerprints":{"codehealthFindingId/v1":"12c2891edfa2d62927d5529476db31fb19900c80f34abd65aa12a49a7595b1a4"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060res.StatusCode \u003C 200 || res.StatusCode \u003E= 300\u0060 appears character-identically in 2 files \u2014 internal/knowledge/embedding_http.go, internal/openai/claude_native.go. 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":"internal/knowledge/embedding_http.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"6819ff663578dabb73035b7bdf3ca4bd8dbf21e398906bd2f032155e9adb3566"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060resp.StatusCode \u003C 200 || resp.StatusCode \u003E= 300\u0060 appears character-identically in 4 files \u2014 internal/handler/fofa.go, internal/knowledge/rerank_http.go, internal/modelmeta/context.go, internal/robot/ilink/client.go. 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":"internal/handler/fofa.go"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"60910cce0c8f6dcc4ddb7dc568d8f131b6851a4e7c82f26d125c162ceeb1cfac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result != nil \u0026\u0026 len(result.MCPExecutionIDs) \u003E 0\u0060 appears character-identically in 2 files \u2014 internal/handler/multi_agent.go, internal/handler/single_agent.go. 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":"internal/handler/multi_agent.go"},"region":{"startLine":282}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5191048ec25c8e19e3e049cc821b65f74cd1f9cc8558a29c290ac0cc5a9f7c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060result.LastAgentTraceInput != \u0022\u0022 || result.LastAgentTraceOutput != \u0022\u0022\u0060 appears character-identically in 4 files \u2014 internal/handler/agent_multi_json_runner.go, internal/handler/agent_single_json_runner.go, internal/handler/multi_agent.go, internal/handler/single_agent.go. 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":"internal/handler/agent_multi_json_runner.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"e39b216ffc81b7116dedb92e82221b2f17d09da6a94cba2c3f4149e0ede1c9d5"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060role.Icon != \u0022\u0022 \u0026\u0026 strings.HasPrefix(role.Icon, \u0022\\\\U\u0022)\u0060 appears character-identically in 2 files \u2014 internal/handler/role.go, internal/handler/skills.go. 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":"internal/handler/role.go"},"region":{"startLine":364}}}],"partialFingerprints":{"codehealthFindingId/v1":"37de3a23f8a3ee406c618d46a74515440b41989bfcb6c041ac4498ea8ebeada9"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060scope == RBACScopeAll || strings.TrimSpace(userID) == \u0022\u0022\u0060 appears character-identically in 2 files \u2014 internal/database/conversation.go, internal/database/project.go. 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":"internal/database/conversation.go"},"region":{"startLine":587}}}],"partialFingerprints":{"codehealthFindingId/v1":"67d1b51e668f3a1e09f63f89dab54cd14d5ade601e6eba70ffa5b85907be3269"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060snapshot != nil \u0026\u0026 snapshot.Execution != nil\u0060 appears character-identically in 2 files \u2014 internal/mcp/external_manager.go, internal/mcp/server.go. 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":"internal/mcp/external_manager.go"},"region":{"startLine":830}}}],"partialFingerprints":{"codehealthFindingId/v1":"60229841b4d5565bae9ec0eba9ad603f16b9d4191a1a4fb859cf3b3d07d8b41d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060snapshot == nil || snapshot.Execution == nil\u0060 appears character-identically in 2 files \u2014 internal/mcp/external_manager.go, internal/mcp/server.go. 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":"internal/mcp/external_manager.go"},"region":{"startLine":813}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5b9ffc9ec6b4b25a7694252dc424803cc4bd219ac2abc3bd2249374645b0bdf"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060ssePublishConversationID != \u0022\u0022 \u0026\u0026 h.taskEventBus != nil\u0060 appears character-identically in 2 files \u2014 internal/handler/multi_agent.go, internal/handler/single_agent.go. 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":"internal/handler/multi_agent.go"},"region":{"startLine":80}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7899121383bcabec7805a89bc529ca0910d3a3c921ee9bc8aff2d4c1afbad19"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060statErr != nil || !info.Mode().IsRegular()\u0060 appears character-identically in 2 files \u2014 internal/update/adopt.go, internal/update/apply.go. 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":"internal/update/adopt.go"},"region":{"startLine":192}}}],"partialFingerprints":{"codehealthFindingId/v1":"977ea7cce6e34e275329b4b9aa59898c20751451e090ca7fee0269c90ab471a1"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060strings.Contains(s, \u0022no assistant text was captured\u0022) || strings.Contains(s, \u0022\u672A\u6355\u83B7\u5230\u52A9\u624B\u6587\u672C\u8F93\u51FA\u0022)\u0060 appears character-identically in 2 files \u2014 internal/agentfinalizer/decision.go, internal/multiagent/empty_response.go. 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":"internal/agentfinalizer/decision.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"01361dcef4266bdf4b0695fabd8fc239e0c5e7d72e0a8c5b58b5b481c131aa05"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060task.Status == \u0022success\u0022 || task.Status == \u0022failed\u0022 || task.Status == \u0022cancelled\u0022\u0060 appears character-identically in 2 files \u2014 internal/app/c2_tools.go, internal/handler/c2.go. 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":"internal/app/c2_tools.go"},"region":{"startLine":494}}}],"partialFingerprints":{"codehealthFindingId/v1":"3607b335ff6033d55c1f95991061b50b6b5182ed35695720bd3e0de464d69f0c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060v.LastCallTime != nil \u0026\u0026 (existing.LastCallTime == nil || v.LastCallTime.After(*existing.LastCallTime))\u0060 appears character-identically in 2 files \u2014 internal/handler/monitor.go, internal/mcp/external_manager.go. 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":"internal/handler/monitor.go"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"763ad910530bea230efb65084ec04fbf8daa3e756e5b0de871dcda4f8fe0089d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060instruction == null || instruction.trim().isEmpty()\u0060 appears character-identically in 2 files \u2014 plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/HttpMessageFormatter.java, plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/SendOptionsDialog.java. 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":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/HttpMessageFormatter.java"},"region":{"startLine":66}}}],"partialFingerprints":{"codehealthFindingId/v1":"16173e7f1bff849ebfb7f82e242948ff93713534ce98001540fbaa75017a330f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!conversationId || typeof apiFetch !== \u0027function\u0027\u0060 appears character-identically in 2 files \u2014 web/static/js/hitl.js, web/static/js/monitor.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":"web/static/js/hitl.js"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"03ada6db28b997e3bb16ea9dc64a54775dbcb7b8a4bea3ec9fcd19af1b0df234"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060!page || !page.classList.contains(\u0027active\u0027)\u0060 appears character-identically in 2 files \u2014 web/static/js/dashboard.js, web/static/js/monitor.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":"web/static/js/dashboard.js"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"50603db646b76acc2943454488722365443db70985e1fc29755d6c7a6576a335"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060argv.cookie || process.env.CSAI_AUDIT_COOKIE || \u0027\u0027\u0060 appears character-identically in 2 files \u2014 scripts/mobile-shot.mjs, scripts/mobile-tap-audit.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/mobile-shot.mjs"},"region":{"startLine":110}}}],"partialFingerprints":{"codehealthFindingId/v1":"50e58ee3b9090118da9bc02d47be6e393df2d8fc4a48fd22afba518657de74dc"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060argv.pass || process.env.CSAI_AUDIT_PASS || \u0027\u0027\u0060 appears character-identically in 2 files \u2014 scripts/mobile-shot.mjs, scripts/mobile-tap-audit.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/mobile-shot.mjs"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d90a2739b6511f4f8e00c729d1d2909acb9c3e04e905314c7c02226994da15d"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060argv.user || process.env.CSAI_AUDIT_USER || \u0027\u0027\u0060 appears character-identically in 2 files \u2014 scripts/mobile-shot.mjs, scripts/mobile-tap-audit.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/mobile-shot.mjs"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"568a01110fa0ce7bcba0d4c0e83ec0ecf4e14c825d4e92ae74b310edb63398eb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060checkedOnPage \u003E 0 \u0026\u0026 checkedOnPage \u003C allCheckboxes.length\u0060 appears character-identically in 2 files \u2014 web/static/js/hitl.js, web/static/js/monitor.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":"web/static/js/hitl.js"},"region":{"startLine":1550}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9755e8c00d9487c18470682f56db127dd01055b26f2c8d69eee3f998efe50ac"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060conversationId \u0026\u0026 conversationId !== currentId\u0060 appears character-identically in 2 files \u2014 web/static/js/chat-plan-progress.js, web/static/js/monitor.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":"web/static/js/chat-plan-progress.js"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"074cf676ab9fde4c4a6b5d482713a9125eaa0a520ed83b92e687e093abbdf749"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060currentPage \u003E= totalPages || total === 0\u0060 appears character-identically in 2 files \u2014 web/static/js/audit.js, web/static/js/hitl.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":"web/static/js/audit.js"},"region":{"startLine":387}}}],"partialFingerprints":{"codehealthFindingId/v1":"13c15840576425d90c106098c675099fb39638491e18a966797b2b413c7d1bda"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060document.getElementById(\u0027robot-wechat-bot-type\u0027)?.value.trim() || \u00273\u0027\u0060 appears character-identically in 2 files \u2014 web/static/js/settings.js, web/static/js/wechat-robot.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":"web/static/js/settings.js"},"region":{"startLine":2124}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6d8ce22c41512feaa81fd5a8942bd9d23bb9e39ce18382813f3980a0cb9923c"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060event.key === \u0027Enter\u0027 || event.key === \u0027 \u0027\u0060 appears character-identically in 4 files \u2014 web/static/js/info-collect.js, web/static/js/modal.js, web/static/js/roles.js, web/static/js/settings.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":"web/static/js/info-collect.js"},"region":{"startLine":506}}}],"partialFingerprints":{"codehealthFindingId/v1":"fb6173e5f8752c24c7ef466905a8d1ce05d879680458f54e5416965088b5504f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060modal \u0026\u0026 typeof window.applyTranslations === \u0027function\u0027\u0060 appears character-identically in 2 files \u2014 web/static/js/chat-files.js, web/static/js/workflows.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":"web/static/js/chat-files.js"},"region":{"startLine":1660}}}],"partialFingerprints":{"codehealthFindingId/v1":"c91c55c006324f5076d58a12d96ed98762dc444b3cbdd0a9e0ec3b310e365384"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060navigator.clipboard \u0026\u0026 typeof navigator.clipboard.writeText === \u0027function\u0027\u0060 appears character-identically in 3 files \u2014 web/static/js/attack-chain-context.js, web/static/js/chat-files.js, web/static/js/vulnerability.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":"web/static/js/attack-chain-context.js"},"region":{"startLine":42}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebab4610aeb0094b911f7ef11b1248899f0662c4a323286e8c3ae81847c31092"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060nextOption \u0026\u0026 select.value !== nextOption.value\u0060 appears character-identically in 2 files \u2014 web/static/js/info-collect.js, web/static/js/settings.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":"web/static/js/info-collect.js"},"region":{"startLine":516}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff539ac2772fbfbb56fe6b0b9732e0dfc1265c7db415e4671c41d826bbabd49a"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060option \u0026\u0026 !option.disabled \u0026\u0026 select.value !== option.value\u0060 appears character-identically in 2 files \u2014 web/static/js/info-collect.js, web/static/js/settings.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":"web/static/js/info-collect.js"},"region":{"startLine":528}}}],"partialFingerprints":{"codehealthFindingId/v1":"9420a30175354dca59d327656604a001d4d987e1bc1ba9112eb350d7a2b78310"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060page \u0026\u0026 page.classList.contains(\u0027active\u0027)\u0060 appears character-identically in 2 files \u2014 web/static/js/skills.js, web/static/js/vulnerability.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":"web/static/js/skills.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"b501378da73279745f7588043ceb5c013e461a8bb6d0c2316739b3ad4f04eeec"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060page \u0026\u0026 page.classList.contains(\u0027active\u0027) \u0026\u0026 section \u0026\u0026 section.classList.contains(\u0027active\u0027)\u0060 appears character-identically in 2 files \u2014 web/static/js/token-usage.js, web/static/js/update.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":"web/static/js/token-usage.js"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"109d53db3771a92210cde6102110a3a2650c5314dc7c1c421d636a9faa800f81"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060pending.pendingHitl \u0026\u0026 typeof pending.pendingHitl === \u0027object\u0027\u0060 appears character-identically in 2 files \u2014 web/static/js/hitl.js, web/static/js/monitor.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":"web/static/js/hitl.js"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"27502c62b94fcfc43663cbef7b9e771810ee94e4fa451953cf6d1e79955f9081"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060process.env.CHROME_PATH || \u0027/Applications/Google Chrome.app/Contents/MacOS/Google Chrome\u0027\u0060 appears character-identically in 2 files \u2014 scripts/mobile-shot.mjs, scripts/mobile-tap-audit.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/mobile-shot.mjs"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d43255ac248e91feba53b071a6eff6321f01659f447f9616ab82c8b4d4fceef"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060r.exceptionDetails.exception?.description || r.exceptionDetails.text\u0060 appears character-identically in 2 files \u2014 scripts/mobile-shot.mjs, scripts/mobile-tap-audit.mjs. It is one line, so the duplication detector\u0027s token window never sees it; the copies drift when only one is corrected. Give the condition a name and one home."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"scripts/mobile-shot.mjs"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"380840a00e961a4028d02812e608e7bde4b5798a3b880189527317d76dab075f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060response.headers.get(\u0027Content-Disposition\u0027) || \u0027\u0027\u0060 appears character-identically in 2 files \u2014 web/static/js/vulnerability-download.js, web/static/js/workflows.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":"web/static/js/vulnerability-download.js"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2a54dc26f824794440925052bb6cd04c6310157518b152be18eb250acab54bb"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060run.conversation_id || run.conversationId || \u0027\u0027\u0060 appears character-identically in 2 files \u2014 web/static/js/hitl.js, web/static/js/monitor.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":"web/static/js/hitl.js"},"region":{"startLine":828}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b7e09d6fd1388f904d1fee1f7ba84847e70afabc7d15980ce77c12135f0446b"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060toolState.external_mcp || tool.external_mcp || \u0027\u0027\u0060 appears character-identically in 2 files \u2014 web/static/js/roles.js, web/static/js/settings.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":"web/static/js/roles.js"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"44541ccaffa273415c0a04010f12b65bd0355be8b5fa6eb19d74687dd7b24d0f"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060toolState.is_external || tool.is_external\u0060 appears character-identically in 2 files \u2014 web/static/js/roles.js, web/static/js/settings.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":"web/static/js/roles.js"},"region":{"startLine":959}}}],"partialFingerprints":{"codehealthFindingId/v1":"7affe620dec578de6414fbebe851998b10959baaa07cff4081f8c990f05936ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof chrome !== \u0027undefined\u0027 \u0026\u0026 chrome.runtime \u0026\u0026 chrome.runtime.id\u0060 appears character-identically in 2 files \u2014 plugins/browser-extension/cyberstrikeai-browser-extension/lib/storage.js, plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.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":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/storage.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"63ab110b9b7103d9e91d14a0adbf0a5f2df0fd1620899fd608afaeed884d2868"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof hasPermission !== \u0027function\u0027 || hasPermission(\u0027config:read\u0027)\u0060 appears character-identically in 2 files \u2014 web/static/js/router.js, web/static/js/tool-guard.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":"web/static/js/router.js"},"region":{"startLine":500}}}],"partialFingerprints":{"codehealthFindingId/v1":"288ff419856690e8949ffc56088b3811b5521be6018e0110befb5882c8d44de0"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof navigator !== \u0027undefined\u0027 \u0026\u0026 navigator.language\u0060 appears character-identically in 2 files \u2014 web/static/js/audit.js, web/static/js/hitl.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":"web/static/js/audit.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4f63fe5b49c6964d0b117afd768f7e281f2c6ef7f5e98a27cbd888dea61ac24"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof translated === \u0027string\u0027 \u0026\u0026 translated \u0026\u0026 translated !== key\u0060 appears character-identically in 2 files \u2014 web/static/js/roles.js, web/static/js/workflows.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":"web/static/js/roles.js"},"region":{"startLine":6}}}],"partialFingerprints":{"codehealthFindingId/v1":"133c713c1a1acba33e7937209fe2625d6aaf515ee789a6d99de9201888eca334"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof window !== \u0027undefined\u0027 \u0026\u0026 typeof window.t === \u0027function\u0027\u0060 appears character-identically in 6 files \u2014 web/static/js/auth.js, web/static/js/notifications.js, web/static/js/rbac.js, web/static/js/roles.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":"web/static/js/auth.js"},"region":{"startLine":187}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b797b0d1285c3c8af2c600ba34b36b8056ac91429d0bfc3810f4f0ae746b0df"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof window.__locale === \u0027string\u0027 \u0026\u0026 window.__locale.length\u0060 appears character-identically in 3 files \u2014 web/static/js/audit.js, web/static/js/hitl.js, web/static/js/monitor.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":"web/static/js/audit.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"5336cd094765ea5dd3e315611e25843cdc928a0a1be0939b7e38562435ebbfd8"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060typeof window.__locale === \u0027string\u0027 \u0026\u0026 window.__locale.startsWith(\u0027zh\u0027)\u0060 appears character-identically in 2 files \u2014 web/static/js/audit-datetime-picker.js, web/static/js/monitor.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":"web/static/js/audit-datetime-picker.js"},"region":{"startLine":21}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf5b545762e05ac598c0d2ad6e3c1767e63d42da84eae619dc9b06d50c9891ce"}},{"ruleId":"X10","level":"note","message":{"text":"Duplicated predicate: \u0060window.i18nReady \u0026\u0026 typeof window.i18nReady.then === \u0027function\u0027\u0060 appears character-identically in 4 files \u2014 web/static/js/auth.js, web/static/js/monitor.js, web/static/js/roles.js, web/static/js/theme.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":"web/static/js/auth.js"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"7370568a293bf4586070bc1b359f89bfef3d6f31d939dac37f1b6f94514a41fb"}},{"ruleId":"X2","level":"note","message":{"text":"Not all functions that make a request accept a context.Context or an AbortSignal: Only 21/30 functions that make a cancellable request (fetch, axios, ky, ofetch, got, undici, node:http; net/http, net.Dial) accept a context.Context or an AbortSignal or pass one on, so a request keeps running after whatever wanted it has given up \u2014 a page navigated away from, a cancelled request, a shutdown, an expired deadline. Take a \u0060signal\u0060 (Go: \u0060ctx context.Context\u0060) and hand it to the request; where nothing could ever cancel the call, omitting it is a deliberate choice \u2014 judge against how the function is used."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"577196fe89725f9b0e6c2faf89eceb8eb245919bd44e4439e0b0d649c1ee1c53"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadAPISpec: \u0060loadAPISpec\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/api-docs.js"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b9c214c0ba8909360d00c62c5025a45ec762750a78831fa57691ae9715bc72c"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: testAPI: \u0060testAPI\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/api-docs.js"},"region":{"startLine":629}}}],"partialFingerprints":{"codehealthFindingId/v1":"ce56d34d4f4a0af2035908e2c4edc37b84393ce8388e143b82f70acf2a1721d7"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: apiFetch: \u0060apiFetch\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/auth.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"8284514debfc2b705171330766a2743ff263d3dcd177b4ae255dd49d84828a4c"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: logout: \u0060logout\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/auth.js"},"region":{"startLine":972}}}],"partialFingerprints":{"codehealthFindingId/v1":"adc7531f4b18b1b0f2f008d4a8dbcdda668f7d08e71778c54aa3881c9f0198f7"}},{"ruleId":"X2","level":"warning","message":{"text":"Async function without AbortSignal: loadLanguageResources: \u0060loadLanguageResources\u0060 awaits \u0060fetch(\u2026)\u0060 but neither accepts an AbortSignal nor passes one on, so its caller cannot stop the request once it has started. Accept \u0060{ signal }\u0060 and pass it through: \u0060fetch(url, { signal })\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":53}}}],"partialFingerprints":{"codehealthFindingId/v1":"e1b6cc911d74f2fb1d15dc5d88a608d5ae497b83f698f69b40eb05af1df175f3"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: sendWecomMessageViaAPI: \u0060sendWecomMessageViaAPI\u0060 calls \u0060http.Get(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1869}}}],"partialFingerprints":{"codehealthFindingId/v1":"36a26a63f5719db2682730638269bf29489b0b012a87f92ecd1a18d738f248a6"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: ExecWithConnection: \u0060ExecWithConnection\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"81cc7edd3ba719ebbe8259dead68f91ba9bcb27a40a5054effb473b76be01341"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: FileOpWithConnection: \u0060FileOpWithConnection\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell.go"},"region":{"startLine":1032}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c6777c566881af639b3a747e1a376edd7547ba908c0101780ec98667c98cbab"}},{"ruleId":"X2","level":"warning","message":{"text":"Function without context.Context: newHTTPExecFn: \u0060newHTTPExecFn\u0060 calls \u0060http.NewRequest(\u2026)\u0060 but takes no context.Context and reaches none its caller controls, so its caller cannot cancel the request once it has started. Take \u0060ctx context.Context\u0060 as the first parameter and build the request with it: \u0060http.NewRequestWithContext(ctx, \u2026)\u0060, \u0060(\u0026net.Dialer{}).DialContext(ctx, \u2026)\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell_probe.go"},"region":{"startLine":70}}}],"partialFingerprints":{"codehealthFindingId/v1":"2450ebe5f809d80dcb39cc7ee19d74be0a581863c7f03549d8f36340e5dde6e0"}},{"ruleId":"X26","level":"warning","message":{"text":"Collection crosses a callback boundary unsynchronised: \u0060Shutdown\u0060 starts a goroutine on every pass of a loop, and each one writes \u0060_\u0060, a variable declared before the loop \u2014 \u0060_ = \u2026\u0060 on line 736. The loop never waits on \u0060wg\u0060 before its next pass, so the goroutines of successive passes run at the same time and each one\u0027s write races the next one\u0027s; waiting on \u0060wg\u0060 after the loop orders only what follows the wait. A goroutine\u0027s closure captures \u0060_\u0060 by reference, so every goroutine and the body use ONE variable, and a plain variable has no synchronisation of its own: by the Go memory model a write concurrent with any other access to it is a data race (the race detector reports it), a racing \u0060\u002B\u002B\u0060 loses updates, and a racing read sees a stale or torn value. \u0060wg\u0060 is a \u0060sync.WaitGroup\u0060, which orders the handoff\u0027s signal and takes no exclusion over the variable\u0027s own state. Guard every write to \u0060_\u0060 with one \u0060sync.Mutex\u0060, or have each goroutine send its result on a channel that this body alone receives from and writes into \u0060_\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/task_manager.go"},"region":{"startLine":736}}}],"partialFingerprints":{"codehealthFindingId/v1":"aec576e4bddbf4bb7bff24db51a6fa31eca2d23db1f2d9f11645192f2fe46f8c"}},{"ruleId":"X26","level":"warning","message":{"text":"Collection crosses a callback boundary unsynchronised: \u0060RunCommandWS\u0060 hands values from a goroutine to the body waiting on it through \u0060_\u0060, a variable \u2014 the goroutine writes it with \u0060_ = \u2026\u0060 on line 67, and the body touches it at line 78. Those two spans provably run concurrently: this body waits on \u0060doneChan\u0060, which nothing but the goroutine raises, so the goroutine cannot be the flow that is waiting for it. The touch comes after the goroutine is started and BEFORE the body waits on \u0060doneChan\u0060, so the Go memory model orders nothing between it and the goroutine\u0027s write. A goroutine\u0027s closure captures \u0060_\u0060 by reference, so every goroutine and the body use ONE variable, and a plain variable has no synchronisation of its own: by the Go memory model a write concurrent with any other access to it is a data race (the race detector reports it), a racing \u0060\u002B\u002B\u0060 loses updates, and a racing read sees a stale or torn value. \u0060doneChan\u0060 is a channel, which orders the handoff\u0027s signal and takes no exclusion over the variable\u0027s own state. Hand the values over the channel itself instead of beside it, or guard every access to \u0060_\u0060 on both sides with one \u0060sync.Mutex\u0060."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal_ws_unix.go"},"region":{"startLine":67}}}],"partialFingerprints":{"codehealthFindingId/v1":"a38ff2e884588ea861fdd78ea06e86d3041bc39c03c53dc802896ce3e67b82e5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (error)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"91c52236b4208c522ff009e839f6d39cbac3cf4d4a538a323270985303978e18"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":1254}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6d3f514cd4b3561f2e829bd70e23ae4eb88bc1b910bc80328c5c1133fa74aac"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/attack-chain-context.js"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab9295b2dc3dd6429ad3ad8be254376bf115ecbe06c94952eae0b7a37d0a6977"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":172}}}],"partialFingerprints":{"codehealthFindingId/v1":"cae0cc926823f76cda4b53f19e8965fe2ae909f92a63eaa33c85a562e7c6d88c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2aa139b84cf437b2bb9891de592a81824d89f9f02ef1cd88dea12f35612a939"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"5224b715ec7509c11210c59bdf52f4afb1632f5244b68b5f19135778851eb8de"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/audit.js"},"region":{"startLine":529}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b2fa59dc817f66e41724d2298c57da1a7a88df9a6964067f5b89ba4d218971e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/auth.js"},"region":{"startLine":984}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b56c8429fec49c9c9cb85036b789013ce9be68b0c4e4f792d3f2ca213774c16"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"51cef8a371a07ebeab5e8d672da6cbdd7c58d615b8294dc3ddc7d71400d9893f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bef0f8891cb4ba52041fd6746877f311672e206aa8f57c430e6906c99929039"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2372}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff77e9e30d89014c0e5d59e9a1ad464c665556e28829dcdeab7549d1b2fd2725"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2497}}}],"partialFingerprints":{"codehealthFindingId/v1":"695ecf122286a73649f907ec8a8ece626b5520f5cb8a94887b66bc9e06a17f57"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2502}}}],"partialFingerprints":{"codehealthFindingId/v1":"314915635630efc5594ab2ea287bbb2f44d5e49fdeecb9f3ae84c141a0d3a1cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":2577}}}],"partialFingerprints":{"codehealthFindingId/v1":"d4f3b1133cb30769d2eb35f564eb72fc7415ad39e6aa4109aab1125ef426c633"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4381}}}],"partialFingerprints":{"codehealthFindingId/v1":"fadde85ceb428bcd78672a74f6cb28eb3c528984301dc221b36578dc2973c89c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4416}}}],"partialFingerprints":{"codehealthFindingId/v1":"53bc9d0341af09cf41ec90bacfb8bd800cd7e2e2f2d64150e289b37f22ba47f9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4421}}}],"partialFingerprints":{"codehealthFindingId/v1":"10810e0f2021c6bd51b7408cfdbacbfa0906a3cdd0e21bd6860bc117611e9de0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":4441}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5ba958d09c12e33a93e01cb0a81779909ecde5e232ce42c8a2a2ec70ab2388"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5ed027857ce3875c68739131d3a52ed625a08730ddb9ee8044f652d7be06075"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"e93fb0ed6fac9d8d619f7360578f10c3cd8dd87377e582c7bf77170fdf5ec70b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":262}}}],"partialFingerprints":{"codehealthFindingId/v1":"563b7a0e1aa9c603caaed3c9b216a28a14b032c526c38f8d8f3452162756df27"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"754a1f773fb932de3709974816ce8324d9cbaf91d79f1a5869827f70b61d53e5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"c533bddd6537bd4ea38f2f1a36c94f95967b747394f2a1730bc36694d5fd128a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":564}}}],"partialFingerprints":{"codehealthFindingId/v1":"e98b5e7a0067318b937e18aaaa9e5ce112889c4f54b308814f2e7ffc657d1464"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":595}}}],"partialFingerprints":{"codehealthFindingId/v1":"641a1d78368a9eb88c8ebcc69957518ad402729b9011d3ebf53937e78264aa84"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":682}}}],"partialFingerprints":{"codehealthFindingId/v1":"c45853effc2a85286d019f79b661e71e3e59c627002ac22fed9f45de4e7a190a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-files.js"},"region":{"startLine":1396}}}],"partialFingerprints":{"codehealthFindingId/v1":"484f26c3c3c69a748034a05c3781bd25a2d0f4ab569557a740737739e82fbff8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-scroll.js"},"region":{"startLine":606}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a8077730ee40242d6329c7652b9b686a08d0d1ca41b43ac06019a2c1c5fdcfa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat-scroll.js"},"region":{"startLine":620}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc7d1291168d631c88f4deaa5a07db13214a5381f65c3cf2907acce71039afe5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":701}}}],"partialFingerprints":{"codehealthFindingId/v1":"750405e84b944d58a88a284382fd8ce91f8a3f9b8378c8f14e54f9a74581ecc7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":852}}}],"partialFingerprints":{"codehealthFindingId/v1":"0127d27b3f516a06b5e74961eac731932fab9c89af8fa92a89836879abc5df1a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":911}}}],"partialFingerprints":{"codehealthFindingId/v1":"d31911711fa53239bbb456e4dd82e53971a3dca5f43e5eece3442a236dfdc3b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":921}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0c2c71d12fe56ea3087e292380610c0bdf7af138bd86b9892d508f78a52d5e3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"92b901c0cb10d6a2083bb771ce014426d5e6a060b58bf50979234100b835a8ee"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1659}}}],"partialFingerprints":{"codehealthFindingId/v1":"aebeb55fc36c1a789880c84475a01f463065f94fc2d90bb15539e8a02645d2ec"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1963}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ea20641ba845a466e112b038434c130a523d4aea61d6b0a9e90a62442561561"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":1974}}}],"partialFingerprints":{"codehealthFindingId/v1":"2bf15cf6305f37bcd12287ee17f4ac43bde0283f8f95399820a119e8c9043e92"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"a59090c477242de09076fc9a3e45258bb9a223d9a4f222f0c5cb54e15ad841d3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2128}}}],"partialFingerprints":{"codehealthFindingId/v1":"459f0729cd77ef92812f60baec39b857210ad7201277abb3ee44aabee57371d8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2336}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d71a4c431596a1ff6e443899ecf2d9f236d8e753ba0a4dbad6ea9ec4b798bc9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2549}}}],"partialFingerprints":{"codehealthFindingId/v1":"c800c40a86f5e12ef83fe735bf6a75b670df4aaa5d9d35918457688d4c435a7c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2755}}}],"partialFingerprints":{"codehealthFindingId/v1":"c086dd87a36f773f178c07a74bd161c10c9e4836b2243f1cc3ac6231325defef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2777}}}],"partialFingerprints":{"codehealthFindingId/v1":"55292d5788cfa985d0dd3a1b67ea552de85f8e719b878b1ea51c0fbd5219eecd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2796}}}],"partialFingerprints":{"codehealthFindingId/v1":"465d1b3f40ea69bd44acf938e3723fe8d8857b520cd686d58906d2829302cb55"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":2809}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6f71a651711fb23ed80e59d95516e8a30653c5e31f783ffe8444b2e6932c72"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3659}}}],"partialFingerprints":{"codehealthFindingId/v1":"81902c6c00c96ea8249a8d518b3bd6de4c2f168d501e54c1e9f88775bd52060e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":3677}}}],"partialFingerprints":{"codehealthFindingId/v1":"11d52381a2e82585836c3a176a34ddcaa6a3cd2a82e81223a706b88cc72a812c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":4631}}}],"partialFingerprints":{"codehealthFindingId/v1":"9cfc2f0ea5dbdce4e1628c327bf14acab285b0c4673a1460d43eda80b1bd04a0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5612}}}],"partialFingerprints":{"codehealthFindingId/v1":"b941676538c1ab71c4686ac7ea5a1fe1a3bbe37a6260c6df93d51a806d177ad5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5621}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3f9ab71363893018da6b92584b110162ff6871f325dd84a87c378cada83dbd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":5942}}}],"partialFingerprints":{"codehealthFindingId/v1":"89d6c785bbee5089fd55a1f9f029b530af66503d75c887e3e0221f234a295330"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6236}}}],"partialFingerprints":{"codehealthFindingId/v1":"711d35fdd8f4bb7e4555415b2551509353198c004b63ccdc078d46123358a2b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6244}}}],"partialFingerprints":{"codehealthFindingId/v1":"2196f5895d9fe4ff682b036071191efdb3f815fca1022efdfccf794e1b794e00"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6404}}}],"partialFingerprints":{"codehealthFindingId/v1":"085dc45cdfa8c287022bbdedce9a48eee694b69b5c6020603980a403398a8900"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6440}}}],"partialFingerprints":{"codehealthFindingId/v1":"d91a811a3fc8a3511645b855ba666aa3682baf8ff89d504eef07fd2f7e1a33d2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6464}}}],"partialFingerprints":{"codehealthFindingId/v1":"12786bb2b5098d27fc687a5de7f8bbcc2501f28156ae858c4641d73f65270c14"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6476}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae4399df77bfba2d50c18740c298f84ec125020fca12a29c4c3304a34369e978"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6712}}}],"partialFingerprints":{"codehealthFindingId/v1":"37c129eb005a5771b5259c765bf77d9f3d258b5ec1c35a63318c8e3f64757e36"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6781}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc5d983bc2287a128322c27ad2eb21011a791fdc08905d16c494854ce1724836"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6821}}}],"partialFingerprints":{"codehealthFindingId/v1":"0572ac3e7c56fde5dcc814c219c5454e000bf622e75184a0cc133179179f038f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":6833}}}],"partialFingerprints":{"codehealthFindingId/v1":"13b2ff7b25aabc957e3ea7360f83062190b59609a0b43af0dbc74f85495cd597"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9527}}}],"partialFingerprints":{"codehealthFindingId/v1":"222abd89b055c32f50707205b768ae8ddb5babf7fe526c8ae5d74ea1d8bbc41f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9634}}}],"partialFingerprints":{"codehealthFindingId/v1":"b18319aff5e923fc502a6733d66af7b2780941a95a075f4084758f5af84b2f35"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9695}}}],"partialFingerprints":{"codehealthFindingId/v1":"501039dee142257b545faf4b24fb22327d855614a2b59852f2afaba1a96345d0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9722}}}],"partialFingerprints":{"codehealthFindingId/v1":"164dc66d870a224b85d70a58d99727bd0a47ab9d77f0dc3f4dc5479faad46bf3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9882}}}],"partialFingerprints":{"codehealthFindingId/v1":"11c51b5af28243943ee52bc33512df57365f919f0479dab3ce615cc504231010"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":9994}}}],"partialFingerprints":{"codehealthFindingId/v1":"20218b1807b560a6370af905dbb212701ad979d420d681aa1e5efecdb836654a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10601}}}],"partialFingerprints":{"codehealthFindingId/v1":"cc8080adeaea46727a3badc97d1f5b887da49a36af4c42898b361ae070334158"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":10610}}}],"partialFingerprints":{"codehealthFindingId/v1":"df072443cddf923a693d3d0e97b62bd24ee92dffb0ac096ac9457ffad56affbd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":11172}}}],"partialFingerprints":{"codehealthFindingId/v1":"86db9d8930d96d11227cf6b951739f9e0b00dfa4950ecc8c15d9214d5a8fcb71"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":11214}}}],"partialFingerprints":{"codehealthFindingId/v1":"5227e4ef3d3b4b377f48a4b4d0e162580dcacd67622489488b020b5f9b6adc44"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/chat.js"},"region":{"startLine":11303}}}],"partialFingerprints":{"codehealthFindingId/v1":"91120b0c09eaaac9c903f98e2e2693f4d98e42e2378f9e1d4b7aa00e497b2b8a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a888435c9487894fd5a826307fed9eabde5cad011ccd6ec85fc44393c4ce18b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"933b9d248ade760246e642997e2188c55a7f3fe0e805466d728a889743a77343"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":570}}}],"partialFingerprints":{"codehealthFindingId/v1":"91f8c01cbfa3c6aa08b3f5c1a095a265c5475aae9a15420c12a56272f6fb24bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":574}}}],"partialFingerprints":{"codehealthFindingId/v1":"cb0d84272fae28fb07b346c179c9f022882b345d9ecf1946090cbee948387391"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef001b881a680d14870ef87511efeea9a70755337ae388c747c3896bd59ab2c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":815}}}],"partialFingerprints":{"codehealthFindingId/v1":"af0ddc9f3a3721bd07196dac73d12daefd67ea9bee3547b52d683b75eed5b291"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":824}}}],"partialFingerprints":{"codehealthFindingId/v1":"cbcc9e64eb16550c314ef7d9f17f49637a51a4e29fbae8c975f7bb09c2150899"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":826}}}],"partialFingerprints":{"codehealthFindingId/v1":"7823fd0a883b452c5d6176c9bc68f4e8ab0114f7b7439ba5db3eeb57fd2ebc2f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"b934df50cd1f38cdfc90486d4a3af616d06da2c1bdf7c1edbd71c6f888af76b3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":861}}}],"partialFingerprints":{"codehealthFindingId/v1":"a291fd8f74e2f98c64dc76b354034df8fd78a958ff9df7eceb23ca420fe5c3a2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":868}}}],"partialFingerprints":{"codehealthFindingId/v1":"d9e6526eb6ec368dc7d2061b521667a9e56082aedaef565de936e44d8805a7c1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":875}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eb057d1586f970b81ce70babd26f3fad59b95a510b4a535a0c0507da8e52909"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":882}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a322695abdd11c987c816c99c2002eeacb383457c9ab9092037e8e080fd901c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":886}}}],"partialFingerprints":{"codehealthFindingId/v1":"99f6c594a38579440ddf990e84443dc716e3979b0d692fd52a5f2e5f1d79d015"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1098}}}],"partialFingerprints":{"codehealthFindingId/v1":"307453063adb698ee9927c953a1b765f5c6ff5edfcb2ab5c3262a8768b90aac7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1261}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f7a44bced6b013ff08bd1cb0f98e5daa5ff98a1bc6f5af5673567d543b76d4a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1277}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a6b4f063492c74d2a97f8c9e846bed8275e4147f78401df58ac01ceb190b91b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1317}}}],"partialFingerprints":{"codehealthFindingId/v1":"10a4b15ad80450512729544e528fb2976449a72d402ff911e20e4fc115eed88d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1319}}}],"partialFingerprints":{"codehealthFindingId/v1":"117bdf5cc5a3f119862575b48556ff090890defec8b21e3bea1f4d63613b0764"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1431}}}],"partialFingerprints":{"codehealthFindingId/v1":"5defe654aace30be93b1beea4874b9ff1c94cd38e34904ddda63185ce1ca37f8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1438}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ed0bb80ac72ab40e4d0c897056f56f36d405321bbda7a4ac9b6416ebc676f23"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":1783}}}],"partialFingerprints":{"codehealthFindingId/v1":"813da0d3ff98726ff4b00c1f19364e09cc2ba559f797ffc9fcc8390d2f0993fb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":2509}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a6657899203698dcb1ef81d487ee14dc3463441786f6f89ecc6321fe72c8c3e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/dashboard.js"},"region":{"startLine":2522}}}],"partialFingerprints":{"codehealthFindingId/v1":"814b260ec0b7fb1cc7e787286b5c96f89d292dd58626f0e17c70064c0a3638cb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"8e0baf860bc76264017f5f7456f20ceb9eaf825633a4637a87edd37d0e5d2dc4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"e2f47e8eb89446b815acabe765433124cdb2418bcfb51a7f3599e86c7a6d8091"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":233}}}],"partialFingerprints":{"codehealthFindingId/v1":"52218416617d4530ef6845f763d46f5dcb8afee2075b4b3289b6846565b1faa3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":558}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03c2f7507df768af4556880dff470a72f3a142fe4cbb6c36c95730abeef0d09"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":659}}}],"partialFingerprints":{"codehealthFindingId/v1":"e506ebdcce2bf51a7f37363e7859416935cfe64256265cd7746a5447031451f4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":683}}}],"partialFingerprints":{"codehealthFindingId/v1":"b370290889f643b476b1375f94cf2ca2644a085f50cd26c3687361cbc0886ad3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1817}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb20e2ee3daf0b6e1a68000e47e44ee33bdfcbed3e0e105b3e4e38c08cce7f14"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":1830}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b821425643b9f9a9449e82fed2e8c18a372a953a743d1bce8ad352ad72768cb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c6e1daa3f379f16e8d5baf73c2630eda858e2405b666775847c572dbcd19e45"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":121}}}],"partialFingerprints":{"codehealthFindingId/v1":"b4fba7bcc023ca757ce4433182b283d011282f9e8b030ab1de1e03760ca066eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"06355a84259f514dfb6f071acbbe0921638b9865f5b7c9fab28f9a549eb4a5a5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"8b613888e6e10176163ca900ebcafb1c718805376f972edf6951812c16078761"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"871408e5e13f8d75652aa71d6312bfe0849358584f0b82d4911526826d350313"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":201}}}],"partialFingerprints":{"codehealthFindingId/v1":"ffc9bd74aabe7a8f0b3a481f3238d72937510eff2ac2301bd8a3d263ec797702"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"b778a6fd6eaae35cd2baae720530f3e80e7b0c51b5c2ed9b7d380fa9770de321"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/i18n.js"},"region":{"startLine":273}}}],"partialFingerprints":{"codehealthFindingId/v1":"de13b41e85a48b97928d2d1f66681624464db8c30879217cb450e60fbc6a5f5b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":225}}}],"partialFingerprints":{"codehealthFindingId/v1":"b549bbd6e032e2c28c121484a215038623e8b16c3c0f7c499ecebe077af6982f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae9424f037d9414ab472c2107d0bcf83a88766ecc516423bf9edf11cf860bdb8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e0fd419a745aa4f9b0b77b3ce5a3de8d9ee7969ff3f8e7e6d70239bce95485f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"7c45d555da163dc00b55e92ccdf4001d1b2923c03b922b126270a932ee043e1d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":800}}}],"partialFingerprints":{"codehealthFindingId/v1":"6e06b06ef9dd44c629c0e1d47b81fec29aeb690cf456d93d497e77c8a36d9e50"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":977}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad273fdfb27e06535b68d81c4c6b9f8f2a121360c42f82e304ba51b8fbe6dfef"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1233}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbaad4b43725fe64f4ecaca957abffec200d6864ba85c4b59cb9bda6d195a317"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1235}}}],"partialFingerprints":{"codehealthFindingId/v1":"65f7803c121e353247b1e7a1dc0051c4d93bdc982f196f06b98c793c615e6b2c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1323}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a551ce687537f1a1d23f5565df257cccb7954f47dfd6004a40c79fe3e6ecc76"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":1615}}}],"partialFingerprints":{"codehealthFindingId/v1":"a075950f939824941257807ba3afa3a873f896bf84893cf4b0fb1f1b8574c96c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/knowledge.js"},"region":{"startLine":1414}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f171df00877e505e816a55f40a55f7011b58359ad9ce2d14372a514fa853057"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/mobile-ui.js"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ab7a5c9c52cdc7e591bb9be69141d858142bca402062d4ec3c0feefcc393fba"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/mobile-ui.js"},"region":{"startLine":722}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eabff58b30988e399b8796d653ef1c4ca552f44e8d516da376dbda2b306e05f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/mobile-ui.js"},"region":{"startLine":892}}}],"partialFingerprints":{"codehealthFindingId/v1":"5266bd346a23635145893312d206ed246ee302577174c5bd8046d133401ec54c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/mobile-ui.js"},"region":{"startLine":1219}}}],"partialFingerprints":{"codehealthFindingId/v1":"bec9fc74184e4e0b8063863dddcf9c884d199ebb2acad0cb8c9c0d38fd8ee07c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"12d16924d3d242b621dd6fc382efd38ac808f4993c84bbcd7d1e04d3ea96f46a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb4906f6a127c47f9112d7e35a5c737111269ae82b7a73f95d06fd578cc8bd88"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":853}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d7e75d5b26e6a648e15afbc6fe55fcc6c13861fab38595eb7ae3daf68c1f56c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2134}}}],"partialFingerprints":{"codehealthFindingId/v1":"81316e2eef66fe8ba35a319f221b285a42a5d4f7a75a713bedeaf5d41461d22f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":2489}}}],"partialFingerprints":{"codehealthFindingId/v1":"a08106e04a474cfe03dd1788504d927823b8e5c882354cc7efbb5bfe47b06b6f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":3455}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb74192c83f96d36caa2f5fe58088142bf0d779faab06578cb40d1a2313d0e85"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":3472}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7d059c96e202df2f929bdebd051813e64303296bbb44d99df7595f3c9f3fa71"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":3489}}}],"partialFingerprints":{"codehealthFindingId/v1":"28646d75d702a1594c38b956643a91e680dcc0f6b59958473f89ebd9ca39a7c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":4279}}}],"partialFingerprints":{"codehealthFindingId/v1":"20c172182ce21295efff28cc225cc73fe795fc746927e7210fb7435d69922e2f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5912}}}],"partialFingerprints":{"codehealthFindingId/v1":"92513728bd8ae5431ff340a0be2bdd49384bb4efa3cd1cba97140813591a312e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":6771}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e1b3a3f5fe8c57686c844b7654be8992fcf7b0918c0737870beb1c4de7779f4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":7298}}}],"partialFingerprints":{"codehealthFindingId/v1":"0882a77689cf7ae007baf7847ee56c4e0b317ffc0bc918956aba0447385bb63f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/notifications.js"},"region":{"startLine":74}}}],"partialFingerprints":{"codehealthFindingId/v1":"a4c51f669852c3af370c1b569f617151ddb273e7f7c8ee6e359c55ed249dc156"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/notifications.js"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"14422270e372e2d06fdfee37cad68083f78d7cb9265f964a8c946cfaa64174bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/notifications.js"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"b483af7e5a443aeb9d74cf50b9904751dee326acc6ad0c8b7faa9943e55952ec"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/notifications.js"},"region":{"startLine":178}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0fbe5d6623b001658242b0fc1f890ab490ba0c86a21d6a928ddcaa4e5e9af84"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":383}}}],"partialFingerprints":{"codehealthFindingId/v1":"f020802cfd70c4bc14817bdca51932589e8b30377a83d54175fca2852d3f8f29"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":456}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b9312dda97c3ed204795ca7b14d035791c520991ec5cf68a0c2103ebe442b6e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":519}}}],"partialFingerprints":{"codehealthFindingId/v1":"8750d0d88877fc1e93a879083c432fc74b39b03de5a43616c753913884548202"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":594}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd98622317a0e7e9fe3d0b3605a7d55a97c83b38589c152f57e1ac7e7b77c5c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":596}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c9af2a79aa24da80249bcb595adbd8f97a802d475f3d2e59944d4dfc330c092"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"198948e77aea33106ed8e25ff3d07f973cade51f3d8c204f410d14b703cd3d9b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":1148}}}],"partialFingerprints":{"codehealthFindingId/v1":"f81612f57b4cac6deaa15dbfbc99564b29b2c07572fd74a934210714326f2fd2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2625}}}],"partialFingerprints":{"codehealthFindingId/v1":"e509d5913650d93f0c55ef962c1e0a9527b0b474c9ec91390435616462e7c38b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":4058}}}],"partialFingerprints":{"codehealthFindingId/v1":"12902203b6067add80b4419853934bab930f75f317fb779cc46d4810ff1334a3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":4063}}}],"partialFingerprints":{"codehealthFindingId/v1":"07f2c2b03918f7eeddfeb745ebfc9a3d97f236658152e283ac2c7737ade2f7f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":9}}}],"partialFingerprints":{"codehealthFindingId/v1":"637e68514f7caaa1bf9cba7369b824c725ef7ef32840bfa4a26ca09b44306073"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b7738d6856e029d63ab1fbf37a72ce90f3c99aad2793398fb0332d7064061f0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/roles.js"},"region":{"startLine":1395}}}],"partialFingerprints":{"codehealthFindingId/v1":"aff41eee49cd2df3bfac622954e751e1e599245db0c4cd72c4e7bedd9cd7502f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":661}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cafbd0125e5a29a2d094fbaf8c4695bae6ff480e1ac94260e5e32a339f5e09f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":3095}}}],"partialFingerprints":{"codehealthFindingId/v1":"b0db4d01f0384161616bd3deea9d630b62b30a432b5c5d8576cbf48ac39f3016"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":4443}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff0871b10934aa486bff66e5146540e6143969fd185a232b47f46aeb9ad1a855"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":5077}}}],"partialFingerprints":{"codehealthFindingId/v1":"2381df37483c1cb741e6bda8aa67d9cbd575a20a0112e0e7889e57e93e23909e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/settings.js"},"region":{"startLine":5080}}}],"partialFingerprints":{"codehealthFindingId/v1":"944ebd3fac5bf584829ac4338ee2761cdb8017a169051f225c18f92b3a0770be"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/tasks.js"},"region":{"startLine":1861}}}],"partialFingerprints":{"codehealthFindingId/v1":"489636f10bc1f8aa6dd2c6953a85dd451a718a036da130e392793c9b39f3cfe9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a522c98d50630da847148e7881d70140e51634ef9cf1cda57db6fe19049f41d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"1999806d7f56f40f3061b9ac21ab311393187b286850546cb19aafc984868a66"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":140}}}],"partialFingerprints":{"codehealthFindingId/v1":"28d4e3aad54b812679a7653fff8b0d6f625aa76b11bfc1a68992f893e13a1cff"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":245}}}],"partialFingerprints":{"codehealthFindingId/v1":"cedb60594d6ec335dae43127a97d563311bed64bea504e4921f890b54f1f567b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"98a668cba54049b1aeb2e20e8d1bd7f259bf67d25282831db5e81710decbddbd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":283}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad57de7d62386c0d860e01be02bb2333481a8bbdeed039d08a7e2254c1f790a7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":311}}}],"partialFingerprints":{"codehealthFindingId/v1":"83e566a714ef050ad85b1fc6abdb271c27634e52930852efe62419401d5dceec"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":318}}}],"partialFingerprints":{"codehealthFindingId/v1":"74de111eadc83b84db3563f516cbde3dad5c4f3131a88a8eabd5f601034b4b54"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":371}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2912910e3cfeeefb50120b56b85881c218983c90b81e63c7094ded3430187e8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":483}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb0227b5c5ffa1542017978ceba8aabb91d4ec4c1b8d62aa48b298aa8442dd9b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":497}}}],"partialFingerprints":{"codehealthFindingId/v1":"fbb72281ef92ab6e53a9fd049e656e3e4b1b5d2f0a31cab85b58ac7bde142931"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ca0f909f138488c4950d54f5fbce847b876670c5581a95972f86fa16ec055a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/terminal.js"},"region":{"startLine":524}}}],"partialFingerprints":{"codehealthFindingId/v1":"15309b1b3a32f5ad65b01c466c1087ba86e2d465836860a686449a49498e7fad"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/theme.js"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"69bff7d22ecbe21008952f0736348f6a7a24d8060fbdeeee44d6e7093737e1b0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"f84bc267a7f0e2196d3ffb7c9f9630798144e5697ad308b786fb644d090fb077"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (e)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/vulnerability.js"},"region":{"startLine":2177}}}],"partialFingerprints":{"codehealthFindingId/v1":"19749f61c5a9f1ef8d091187b06a58a6c400046d29d35678a892cf67f1264474"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4bd3033d7e6a455897fcc05b077bbe488b50a8b8ce892c602ed07505f37f8e4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c9576e4110e473f625a9da9cad83b36ed055b23aa80e199b90ca6c9f28985e8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"dafdc97894a2c55137bb68ebd6df2c1ef3c1321b41a9309e0563743db5dd15db"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":258}}}],"partialFingerprints":{"codehealthFindingId/v1":"78829724871133cce091a9616ed7e8eaf993c50cfc5ed0442cdafab0ceacb326"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"c4cdc585be690c10670eadeb65f4e6a5ed36ee73dbadb339f431df596623ee75"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"5500094d4a06059ca572fcf8e4f7aa6a0e2d5e7d42f53ad7b314a23a30b19f78"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":340}}}],"partialFingerprints":{"codehealthFindingId/v1":"51f6af944b52d8bc3d221b060a3716dc51dbcddda01668379356abeab7693da1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":585}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0117c826f6892c1dff262a8b1105327a40b2e7e853c2c87874fcfca9993ee46"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":590}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f330568c85f92229224b05060a1a607d7524f1de6a859690388800d5ee6098"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":600}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f3e37ce83a9868c8962f8610d8c5ffc44fed26b06864fdea4b86fc5a951ff0f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d36953e3eef2cbc849846548d75a7926398d2cb9bc82af6a9bbcf0bb7d52cd0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":832}}}],"partialFingerprints":{"codehealthFindingId/v1":"5afe40b21a8b23a0b80836b9aff14d7f82b4218d0d0f3b51c9841028b9704012"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1068}}}],"partialFingerprints":{"codehealthFindingId/v1":"fe319f337813813c1bbd846bdf572b0961640a5819c412053ce9c4e17bb8f706"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1124}}}],"partialFingerprints":{"codehealthFindingId/v1":"22c91db70cfbe1e321bdec2dadd6e075384fbd91feb7509e6618b0cecad0736e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1131}}}],"partialFingerprints":{"codehealthFindingId/v1":"a6506afb42da6dc24669d336d619b081aa7561f89407bd8838bfeef40abbdce2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":1560}}}],"partialFingerprints":{"codehealthFindingId/v1":"191e7887573224067b1a9fc54b38fdf144f8f09c49c97aa738266d7fbcd53f2c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2286}}}],"partialFingerprints":{"codehealthFindingId/v1":"81ae86ca424dfc3e7bab173eddbf1a612d54a3f1a6a6fdf3f9743079d3257cb7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2380}}}],"partialFingerprints":{"codehealthFindingId/v1":"0305efbda89ec9e73fc93c7cfef698c00da06a83362760965aa2ab2f384f8577"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2657}}}],"partialFingerprints":{"codehealthFindingId/v1":"c28f443a69f959787d16afbcbe08fc9edd732431ae990681557a287e5c2dd298"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2660}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d587f4d45d092efde62989601cbfe1989fcd6dc516a9577b5e612f4cf98123e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":2702}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc00461aefb8af629700040258a848c03ad0f92c9ba39734cb55c5ef60e9202"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3089}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60b335daf2c80d76dcfe732981dfd9448aa93c5295610bce6da0909bafc67c4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3134}}}],"partialFingerprints":{"codehealthFindingId/v1":"9e4b125be52c1e841cf32769d87e738a7e823b7b2d8a8a212e2a730e849a79ee"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(function(){})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3338}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5b207480846395c7af4bc0d0263be97f740392ec6095e0eb031043fcfbe7be1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3449}}}],"partialFingerprints":{"codehealthFindingId/v1":"e047377a0b8c9625bce1462f78ba59981752f5ad0556361500e78f65d1a32f9e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3752}}}],"partialFingerprints":{"codehealthFindingId/v1":"1412ca5cd82a1240a79b223e5d086b2604f33bc8f03a303f473df274ed65a13c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3790}}}],"partialFingerprints":{"codehealthFindingId/v1":"7624a00b93a7a1154a651f1ed3e4e11e0802fa03c5c37dcd608afa6816337825"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":3868}}}],"partialFingerprints":{"codehealthFindingId/v1":"913474a595e8cf3dcf6ea99c2dceca5d91c9a678c269f7731fbb99266bcae06b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4021}}}],"partialFingerprints":{"codehealthFindingId/v1":"5c30acd8edf481aafef8179acbecc959fd92f968bc8478d322ab996ac4ad1ae7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4192}}}],"partialFingerprints":{"codehealthFindingId/v1":"6dc10d3a7bd812db7cffde4fa991591cb8e229300ed53b425c977926c3df18a0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/webshell.js"},"region":{"startLine":4198}}}],"partialFingerprints":{"codehealthFindingId/v1":"50b885456a14caf6c5f3dd07ed43f633af27e5183ea94a3c62d875023611ec93"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"17e18a7fc2693e0e6f11701f32dade4b09ed9b9629cf859941a51808dea3a52b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/workflows.js"},"region":{"startLine":2540}}}],"partialFingerprints":{"codehealthFindingId/v1":"14de9c96c4390e4970bc787a96bf2f09ab4ecb2a416fbb5af97d6f21d1226e3d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"runtime/pi/src/worker.ts"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"e147ad4272fce9cf930f4e831636ff4a52f523dc9bd51cbc408909fc3e634082"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/burp-suite/cyberstrikeai-burp-extension/src/main/java/burp/CyberStrikeAIClient.java"},"region":{"startLine":104}}}],"partialFingerprints":{"codehealthFindingId/v1":"4698e22c68e14e19b1bdddce779fe4c00e1c32acbff7ba4f123b864632864d5f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/popup/popup.js"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"97b01e32f93e9a4e6aa58ecef0f1ec9f6bcbf6c2717c17643a3b1637141a6892"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"006f6958aa7abb519d3d5e710be2559106f9dd762f8b3263d12199d6b0ddb14b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":231}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d452063c7d7bf487a53ec417a8fbfd5496109d918171cf372d4a22641cb481f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): An empty catch block silently discards the error \u2014 failures vanish with no log and no rethrow. Log it, handle it, or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"c94d26d8aa59c0d3a90757a659c30e9911fd989b64638cbd2d138f10dba3f8b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":670}}}],"partialFingerprints":{"codehealthFindingId/v1":"4a5d727e7f7b241f44989532825789870a086e2ee958b7c2cd5c46ef74c6236e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":676}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b4c225b31caf6739bc93b3a5324a7a74fa2d0c5a7505109a00305585833bdbc"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":1165}}}],"partialFingerprints":{"codehealthFindingId/v1":"120544c4c57691d1fc82da62c40ecfe0819c568b583d7684cd8c0a4f8338cc3d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (empty catch): \u0060.catch(() =\u003E {})\u0060 handles the rejection by doing nothing \u2014 the failure is discarded with no log and no rethrow, and the chain carries on as if the work succeeded. Log it through whatever this codebase already uses to report problems, hand it to a caller that can (\u0060next(error)\u0060, a returned rejection), or don\u0027t catch it."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/panel/panel.js"},"region":{"startLine":1206}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fa1169493e4ba3168d259b1c59deee27cff8353433f782775cc552d077d6d8a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060catch (_)\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, or keep only the failure you expect and rethrow the rest (\u0060catch (e) { if (!(e instanceof SyntaxError)) throw e; \u2026 }\u0060, or test \u0060e.name\u0060), because a JavaScript catch takes every exception, programming errors included."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"plugins/browser-extension/cyberstrikeai-browser-extension/lib/api.js"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"62ca63b4599f439df8f7107ec7ce0911a9e9a8062b9a09f4ca1001220981b31c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060except Exception\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"mcp-servers/pent_claude_agent/mcp_pent_claude_agent.py"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"2040bb5dc791743590844b1d7e2f2bd72c5a64c6933223a8a4fe7c6ef64fa7c4"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060raw, _ := json.Marshal(graph)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060raw\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060raw\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060raw\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/draft_generator.go"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"87abcf02812f20a9a2cf5396cdfeb68c97d01e661b90e569246a707eb81b4c98"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060toolJSON, _ := json.Marshal(req.AvailableTools)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060toolJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060toolJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060toolJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/draft_generator.go"},"region":{"startLine":271}}}],"partialFingerprints":{"codehealthFindingId/v1":"f49ef8ec399d089698b8736d81112f03021aa7ea1684bc2008d8e7237747bc63"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060graphRaw, _ := json.Marshal(result.Graph)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060graphRaw\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060graphRaw\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060graphRaw\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/draft_generator.go"},"region":{"startLine":335}}}],"partialFingerprints":{"codehealthFindingId/v1":"998ee27c3e982c3cdeb1d4bde0f4c079c59fea14788e3d64191ebaa32a8f1f51"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060raw, _ := json.Marshal(step[\u0022output\u0022])\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060raw\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060raw\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060raw\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/dry_run.go"},"region":{"startLine":163}}}],"partialFingerprints":{"codehealthFindingId/v1":"089ddb896516ac132a9edff8f23e0862dfc994697031629fc8b940eb9ceef333"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060f, _ := strconv.ParseFloat(n, 64)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060f\u0060 as if the call succeeded. When \u0060strconv.ParseFloat\u0060 fails, \u0060f\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060f\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/metrics.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"0dcbfbea8a80f43a49c661bbff1cc588cd8f1f2c1b5aba0ffa6080b29b177be8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060f, _ := strconv.ParseFloat(fmt.Sprint(v), 64)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060f\u0060 as if the call succeeded. When \u0060strconv.ParseFloat\u0060 fails, \u0060f\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060f\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/metrics.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"58be4381d6dfdffc005dd48ce71cdcaeacd43e61a32662fa807399804b443096"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060graphJSON, _ := json.Marshal(g)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060graphJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060graphJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060graphJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/native_runtime.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"e85e4cee784dacb91752b6607740fe4f61c3ef74dfc6883188aa60e5585b98e1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060payload, _ := json.Marshal(map[string]any{\u0022nodeId\u0022: id, \u0022label\u0022: label, \u0022prompt\u0022: prompt, \u0022checkpointId\u0022: runID, \u0022checkpointVersion\u0022: 1})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060payload\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060payload\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060payload\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/native_runtime.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"730cf01ad9758d510ceaff187a885d4193711217737d15af82bc5d6dbe4cd4d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060inputJSON, _ := json.Marshal(input)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060inputJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060inputJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060inputJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/node_exec.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3dd01c4c4ffb8e417dfb9e120c627f86264f0513b246651e8d7ef1681e521d0e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060outputJSON, _ := json.Marshal(result)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060outputJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060outputJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060outputJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/node_exec.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"b1ea5ff9c086f266eb025bcf67a844f62f54355316641bcf0343b9fe0c31d0cb"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060outputJSON, _ := json.Marshal(output)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060outputJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060outputJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060outputJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/resume.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ba47c5edc0b88348724f321aca38fc9542697de7d66e5b0896229e756528ba4"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060inputJSON, _ := json.Marshal(input)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060inputJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060inputJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060inputJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/runner.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"88f00204cca8739cfe6e71974fe273030231f51ab99ebbe919d1927dc4617630"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060partialJSON, _ := json.Marshal(partial)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060partialJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060partialJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060partialJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/runner.go"},"region":{"startLine":122}}}],"partialFingerprints":{"codehealthFindingId/v1":"4aa7ca6f72c003c88fad723650229c17d2cce4648a4f73b4dc8d5c06624d3a50"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060outputJSON, _ := json.Marshal(output)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060outputJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060outputJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060outputJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/workflow/runner.go"},"region":{"startLine":197}}}],"partialFingerprints":{"codehealthFindingId/v1":"3039a317abd527e342a370bb65ace09d1dd2be67a58e7fe6fa45cf994be7bcb0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/vision/path.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e65beb0d35690f6c6f6d179b9ca2f150b03a391bcf5b3a36ee91ff3d8312c12"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060subject, _ := gitCmd(ctx, repo, \u0022log\u0022, \u0022-1\u0022, \u0022--format=%s\u0022, ref)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060subject\u0060 as if the call succeeded. When \u0060gitCmd\u0060 fails, \u0060subject\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060subject\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/adopt.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"44d40ec54d99955f15956a7d745ec19b2bfa104ef64d5cf85d8beb5d8a2477de"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"61b2ebfcf4aaf970c23a405c9111a008e54661996aa8b7f10ea263f113327bce"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060restoreProtected(backupDir, kept)\u0060 returns an error, and the statement drops it: when \u0060restoreProtected\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := restoreProtected(backupDir, kept); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":280}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dda6ff9f2ae1715aa02463664745fb6f5b2bc55e2f23aa17a5c5419dd1e26f2"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060restoreProtected(backupDir, kept)\u0060 returns an error, and the statement drops it: when \u0060restoreProtected\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := restoreProtected(backupDir, kept); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":285}}}],"partialFingerprints":{"codehealthFindingId/v1":"61255cdd7bfbb2b44f12e175761b9803ccfd05f3c49479fa69c1bd97b9baa272"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060restoreProtected(backupDir, kept)\u0060 returns an error, and the statement drops it: when \u0060restoreProtected\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := restoreProtected(backupDir, kept); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7a5616c02954c3ae5312a441602db15ea33b7741e87b9e82f1c1d210acb1aa0"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060files, _ := gitRaw(ctx, root, \u0022diff\u0022, \u0022--name-only\u0022, \u0022-z\u0022, previousCommit\u002B\u0022..\u0022\u002BupdatedCommit)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060files\u0060 as if the call succeeded. When \u0060gitRaw\u0060 fails, \u0060files\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060files\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":334}}}],"partialFingerprints":{"codehealthFindingId/v1":"458eab86b2699b8590e52ef285505198a3c4eae110335a2cdd29af31fa0e5b00"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/apply.go"},"region":{"startLine":891}}}],"partialFingerprints":{"codehealthFindingId/v1":"7df107f8baaa9c69122dbe7c0f56cc23102d7f0015fef25af91dd939f290d341"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/build.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c890f6547741687ed6c2d818ca374b7bda60cb68cff30abc1f4f1f8f27644f3c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/build.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6fc2d76c591539db483bf708f41caea1dfb74697dcbb2c9b98dffea1da889c2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/build.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b56c80fd18a029d270aeb649227e8d97877e550db04cb9de27ad93de6d82ce"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/version.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a9322e4e4c4d6d033a07bcf8125317bad47da584e2f64a99a4e9303210c423e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/tooloutput/spill.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c7f59c12a4358f54c4b65c9ee315bd6af26d2a06210c40c369f95429f7ebb2"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/termout/startup.go"},"region":{"startLine":39}}}],"partialFingerprints":{"codehealthFindingId/v1":"4d05d63f3cc257c5234ed1d33b6340733f5904b8f95e90b41bdf71f624f4f049"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/termout/style.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f1c1b2381be92d0cd21bddbb607f7e7574dbd3aa061a68a5fab3f2708399643"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/category.go"},"region":{"startLine":195}}}],"partialFingerprints":{"codehealthFindingId/v1":"81aaafb0ca11f838915cc0b9bfb42c62209cb8b1d54d79f328f81f353d17e761"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/category.go"},"region":{"startLine":219}}}],"partialFingerprints":{"codehealthFindingId/v1":"9127d362db08b7f72e54d6ebb34be7eccdf0036a894bf5eab79551d09f7921ce"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060ok, _ := filepath.Match(p, e.Name())\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060ok\u0060 as if the call succeeded. When \u0060filepath.Match\u0060 fails, \u0060ok\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060ok\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/category.go"},"region":{"startLine":306}}}],"partialFingerprints":{"codehealthFindingId/v1":"00b03f8327af8b6ec21c1194baef71a2e4ea23412bf83a6909ab4461a747e3a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if infoErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/category.go"},"region":{"startLine":359}}}],"partialFingerprints":{"codehealthFindingId/v1":"c2459a7ef375015c2b97aaca0106c9646f2ba926ac9009bfd4a1d48e152c3fcf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/category.go"},"region":{"startLine":379}}}],"partialFingerprints":{"codehealthFindingId/v1":"9faf7cb422111403fb1fff54bb96e541cb5c9b5ca173ed0d701e8f1944413210"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/category.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c92367bd608149118b46b2289483bd5d59b7dcdba012cb781135e856bfafd8f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/category.go"},"region":{"startLine":415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e60eb9873a87599af8748d6f62c9baf53546002c837e2154e2ce699efe67adbb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/cleaner.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"4627ed9b6f3413a9f71c4666513d635226e41802bacbf977b814c84d5d981555"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := os.Stat(rep.Root); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/cleaner.go"},"region":{"startLine":247}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd7bb90c6a1e66ed5a750f1149f68a2fadef2e877b420ebe72cf65b603e4eb17"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/skillpackage/service.go"},"region":{"startLine":20}}}],"partialFingerprints":{"codehealthFindingId/v1":"bb7366e7edcde179d8959df404d74afd1875a3ce6b85cfaca687f1d3c0dba813"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/auth_manager.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"1752e86b7294660535835b35c58055c9a3eef277c5ced5df06c64250abc7ed00"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if readErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"59f42b1e82e2ec33ef01faa33809ada172e05414d4b82c3d3bd4b7a0ad667c4f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if readErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/executor.go"},"region":{"startLine":1373}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c7cf944430b177a1684b79d31daea0900a53e677efef22e300eebb2e5b979ba"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/rbac.go"},"region":{"startLine":111}}}],"partialFingerprints":{"codehealthFindingId/v1":"d43c899459b01a3729f33c20b5920aa877e8649d441b1995851ff9f697ca3b36"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/rbac.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"afa301f8989d0f37501883d72dac521c17085b8076f2601f55c20c68caac53da"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if readErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/shell_execute_stream.go"},"region":{"startLine":145}}}],"partialFingerprints":{"codehealthFindingId/v1":"013961241193431ac1f74d8f315047e4ae298205eafa9425ea32bc8ac572fa0c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/shell_noninteractive.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef5730acaa7503217a11479bafbdddc297388540480eccbbc5ce9500a3efd7a8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060bodyBytes, _ := json.Marshal(body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060bodyBytes\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060bodyBytes\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060bodyBytes\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/ding.go"},"region":{"startLine":133}}}],"partialFingerprints":{"codehealthFindingId/v1":"31e27a06cf958d27b6bf9ca70cfdbb46deef529bd6cb31de02db710787f52408"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060contentBytes, _ := json.Marshal(larkTextContent{Text: reply})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060contentBytes\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060contentBytes\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060contentBytes\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/lark.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff8c20dfca52d7ca9ea13baabe11f5a67797d7b1284079527bd9169da60a8a38"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060payload, _ := json.Marshal(map[string]interface{}{ \u0022touser\u0022: userID, \u0022msgtype\u0022: \u0022text\u0022, \u0022agentid\u0022: cfg.AgentID, \u0022text\u0022: map[string]string{\u0022content\u0022: message}, \u0022safe\u0022: 0, })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060payload\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060payload\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060payload\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/proactive.go"},"region":{"startLine":127}}}],"partialFingerprints":{"codehealthFindingId/v1":"a7d308c60aa4f3af28e7e5be33eb5d8b4e74100416f349ab4792627b178cff38"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060result, _ := io.ReadAll(sendResp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060result\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060result\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060result\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/proactive.go"},"region":{"startLine":141}}}],"partialFingerprints":{"codehealthFindingId/v1":"44280cf23b0c67db1acf46f8dad42180f908cd03195b440d02a68199efb22d2f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060content, _ := json.Marshal(larkTextContent{Text: message})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060content\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060content\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060content\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/proactive.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"07b5f955e2a5d5fc8ba6a166baf4007e4a66972fc76c8ee93099b1cb3f2e6ae5"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/telegram.go"},"region":{"startLine":194}}}],"partialFingerprints":{"codehealthFindingId/v1":"8fa626a06553de315f043890acffa30e85b8d9a04831c9e92d22aa64289e16e9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := json.Marshal(payload)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/telegram.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"9391a24956d092308aa68ad8bd13ac821f267885da6589b60099e4841feb3c76"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := strconv.Atoi(strings.TrimSpace(parts[i]))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/ilink/client.go"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"0ffd7c84018c1ca43894668476109a66be8f6ca886f6d7b97e5b16776d1de8bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := json.Marshal(map[string]interface{}{ \u0022local_token_list\u0022: localTokenList, })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/ilink/client.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1367d01ac8ab51625680a67aadffc6b6955c9a00eb2268e5424f32993964f7d"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := json.Marshal(map[string]interface{}{ \u0022get_updates_buf\u0022: getUpdatesBuf, \u0022base_info\u0022: c.buildBaseInfo(), })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/ilink/client.go"},"region":{"startLine":250}}}],"partialFingerprints":{"codehealthFindingId/v1":"1c4a3f9200b5b802244a21c9bb3e2192d3a344d25ea9fdcc0f66a4046f5535fd"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := json.Marshal(payload)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/robot/ilink/client.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"11b4b382b3f933453e1131e84be46690e74875b740552a8d2be2d2676cbe8546"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := database.ValidateFactKey(key); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_body_links.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"38d911c58b833195551d7cfd180f46e20f0889c71e541b5520753c1d1f6ff12c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := database.ValidateProjectFactEdgeType(edgeType); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_body_links.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c0c1acf21227f528f3751381cc50e667cc22d46d75e1c6cd138387d295e2261"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := database.ValidateProjectFactEdgeType(in.Type); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_body_links.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"5a3eba77111ac81961a1c02eddb7cdac96421badf26b7bf8c6e940388f8c496e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := database.ValidateFactKey(in.From); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_body_links.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"e91efd2f0c1de0fa7314ed285e2bdb28b0e5565d1983fb24e7e047f9a9a09ba0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := database.ValidateProjectFactEdgeType(in.Type); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_body_links.go"},"region":{"startLine":252}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0c8ff0a0e785600468b690fd8a7862795f6eb258cc68cffcc5d634848f4ffd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := database.ValidateFactKey(in.To); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_body_links.go"},"region":{"startLine":255}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc22e27a349c914e25f22ba9c8e7bde763027fcfcdbe9411b1e5a39f2edaf7b5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/fact_edges_apply.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"2310c36c600d09872f39336c1e4a88d541285dfc979430bdadc16c0cd940e77d"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.Marshal(v)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/resume.go"},"region":{"startLine":18}}}],"partialFingerprints":{"codehealthFindingId/v1":"25c5c1640313a82bc6602f6a2bed1af2cbe7178ede64bf9e1e90f9eb3d277946"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/resume.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d766c25fc94f372b4010e539212919ad06e8dbb33860ae054f6a41b9a0ebd57"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/workspace_inventory.go"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac8fe845bf04b5ac15336319bc4afa8e23c92131bdfabb52ad4619b6d54849da"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/workspace_inventory.go"},"region":{"startLine":77}}}],"partialFingerprints":{"codehealthFindingId/v1":"92cb98c17eb1b8397f55fe5079297acfd4b08d95468613fbf115d6328612a7b3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/workspace_inventory.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"d1ad0c2b33e213870ea2800dc11c35a4fec17f24f593d0bb70cdfd9bad5a127b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060spec, _ := json.Marshal(childSpec{Path: cmd.Path, Args: cmd.Args})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060spec\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060spec\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060spec\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/processguard/group_unix.go"},"region":{"startLine":64}}}],"partialFingerprints":{"codehealthFindingId/v1":"070a761df016a6ac6e6058cc014bf4409826fc19b7dbcbca3b32ba68cc183102"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060w.close()\u0060 returns an error, and the statement drops it: when \u0060w.close\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := w.close(); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/processguard/watchdog.go"},"region":{"startLine":98}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd03daed1dcb57c6c179249ba8858ea66d60c0cb5335ab0ee8ac4fd037e79ea3"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := io.ReadAll(io.LimitReader(res.Body, 16384))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/claude_native.go"},"region":{"startLine":167}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ff11dc3ea7d0735aba253be67d04374455e01a9964aa214548fd293fb0d3cc6"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := sonic.Unmarshal(raw, \u0026payload); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/native_reasoning_compat.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"853d8ab79ad6afd772e9dbffb076b7cdf73b0efe8d630aa6f17532002a0e5b61"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := sonic.Unmarshal(rawBody, \u0026payload); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/reasoning_payload.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7498f29114b4fe433bf3df42157e4f22bf725146107aff81522991ba32f4090"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := sonic.Unmarshal(rawBody, \u0026payload); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/reasoning_payload.go"},"region":{"startLine":40}}}],"partialFingerprints":{"codehealthFindingId/v1":"7275851e20ea906e6ff53ce17c23c664f8060be78f13dea4a52259a9e20b5d44"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := sonic.Unmarshal(rawBody, \u0026payload); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/reasoning_payload.go"},"region":{"startLine":58}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cea84cdb35243176065a904d65b008817b7da77fac8615c48de9b315643857b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := sonic.Unmarshal(rawBody, \u0026payload); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/reasoning_payload.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"a899398ffd1e6b25a635779de2024754635c89c7052172aa17971c97e20e95cb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := sonic.Unmarshal(body, \u0026parsed); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/openai/summarization_diag.go"},"region":{"startLine":97}}}],"partialFingerprints":{"codehealthFindingId/v1":"76e91eddce391703d0ed7796bfdbfb67cc46ac8b05af185c01d026b20bf43688"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := json.Marshal(view)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_local_tools.go"},"region":{"startLine":150}}}],"partialFingerprints":{"codehealthFindingId/v1":"410b48b7fb2c9dc5b08df2f4ef7c7befb15f3bcf9ccc0dd6418c140e565b85e8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := strconv.Atoi(strings.TrimSuffix(e.Name(), \u0022 \u0022)); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_plan_tools.go"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0f2b4d62dd1de523d509987a437195c093b7d44f93c997872120a7f40343756"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060a, _ := strconv.Atoi(fmt.Sprint(tasks[i][\u0022id\u0022]))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060a\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060a\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060a\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_plan_tools.go"},"region":{"startLine":71}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae67f5615d877eb012d987bc970ccf6fed68132a54d5b6715450c47aebc4993e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := strconv.Atoi(fmt.Sprint(tasks[j][\u0022id\u0022]))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_plan_tools.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7d1715e8498bff1c76bede45aac04756e1ca91fe775d6d918283342a8d924d8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060id, _ := strconv.Atoi(fmt.Sprint(task[\u0022id\u0022]))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060id\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060id\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060id\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_plan_tools.go"},"region":{"startLine":144}}}],"partialFingerprints":{"codehealthFindingId/v1":"57bf6741b0c4c72133e2f6a7f39d3ac414488393b5539761455f15f9308a77f3"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := strconv.Atoi(fmt.Sprint(task[\u0022id\u0022]))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_plan_tools.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"e86de7c8d9d3bc2a027247b32c47e22eca85c6fa3e21f2a5740c4bc11adde135"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.Marshal(call.Arguments)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_runner.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"a2344ea3ef93229a4c02820375bdcf21ddd9433e74f87d8c327988051cebcd67"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := json.Marshal(call.Arguments)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/pi_runner.go"},"region":{"startLine":373}}}],"partialFingerprints":{"codehealthFindingId/v1":"b7f40c8489dec59c9728a84b9b52c94e0f6f18bb37a5dbd892fa97a6adf8e355"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(traceJSON), \u0026arr); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/reasoning_trace.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"66458045e85b1e63c837ab11f7d7487efe95d055c98052ab702ee2d84ebb2159"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/tool_metadata.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"c27f76f97624886c22550cb12b80058d1260e9f3aebc61be5a45e555736ed7a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ = strconv.Atoi(strings.TrimSpace(s))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/modelmeta/context.go"},"region":{"startLine":489}}}],"partialFingerprints":{"codehealthFindingId/v1":"577958aea8e1e3d1351ce787a70493503d61086353dfafe22755691748da36a2"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.Marshal(v)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/client_sdk.go"},"region":{"startLine":336}}}],"partialFingerprints":{"codehealthFindingId/v1":"a16cb06a78e621c3fbbcaa761b98d7e7800946526aa4ff15c3538ed218ee191e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060f, _ := strconv.ParseFloat(strings.TrimSpace(v), 64)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060f\u0060 as if the call succeeded. When \u0060strconv.ParseFloat\u0060 fails, \u0060f\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060f\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/execution_control_tools.go"},"region":{"startLine":260}}}],"partialFingerprints":{"codehealthFindingId/v1":"ad9f757b5b0fd06e13828137217fe67b97d5b21b76e192e71472c35a5cf01c88"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060i, _ := v.Int64()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060i\u0060 as if the call succeeded. When \u0060v.Int64\u0060 fails, \u0060i\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060i\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/execution_control_tools.go"},"region":{"startLine":286}}}],"partialFingerprints":{"codehealthFindingId/v1":"2f0e436624d2695a19f2c92ebebbdda74b4eb4724aec1fc3d4a04b732740c5b7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060i, _ := strconv.Atoi(strings.TrimSpace(v))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060i\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060i\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060i\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/execution_control_tools.go"},"region":{"startLine":289}}}],"partialFingerprints":{"codehealthFindingId/v1":"5ca50fa5c73b28b5add99b3be5906beb7fb26937c2d7574af9cff8ca98d97c3c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060result, _ := json.Marshal(response)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060result\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060result\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060result\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":491}}}],"partialFingerprints":{"codehealthFindingId/v1":"42d0d325af9b0169d59614d9730dda0f8c46c8cedc3c021c456138bc5cbf4751"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060result, _ := json.Marshal(response)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060result\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060result\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060result\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":511}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c0418dd5b47d4f72bf58281209675486f1c85825b0426873ea72bfa301adf62"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060errorResult, _ := json.Marshal(CallToolResponse{ Content: []Content{ {Type: \u0022text\u0022, Text: errText}, }, IsError: true, })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060errorResult\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060errorResult\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060errorResult\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":686}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a9642d45001a1845ac6c54932964218b81b55d168fac7245570f2908d858ad"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060errorResult, _ := json.Marshal(CallToolResponse{ Content: finalResult.Content, IsError: true, Blocked: finalResult.Blocked, Meta: toolResultProtocolMeta(finalResult), })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060errorResult\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060errorResult\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060errorResult\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":705}}}],"partialFingerprints":{"codehealthFindingId/v1":"b46aedf1c84679d148a986726eeba9c7396e0c3dbe65a2a92a96a050014c21ed"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060resultJSON, _ := json.Marshal(CallToolResponse{ Content: finalResult.Content, IsError: false, })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060resultJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060resultJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060resultJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"34fab00a3648b632128dc91d5fc27ddda3b3342ac59fbc92840a064d665fc40b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060result, _ := json.Marshal(response)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060result\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060result\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060result\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":1421}}}],"partialFingerprints":{"codehealthFindingId/v1":"10df283e898be2ecc7d0dbc5636fbdc6ba2684c5b3e2ca2156719daa2dc5e9cc"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060result, _ := json.Marshal(response)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060result\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060result\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060result\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":1461}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6da1af21ed761026b609b59dce38e81d8e796224f574e9ea09bbc56564376e9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060result, _ := json.Marshal(response)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060result\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060result\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060result\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":1530}}}],"partialFingerprints":{"codehealthFindingId/v1":"1b82d61b9b924187aeb0a8549c3d8d0a2d698c5c5fabe683d012d3e64355e13c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060result, _ := json.Marshal(response)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060result\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060result\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060result\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":1570}}}],"partialFingerprints":{"codehealthFindingId/v1":"93f112b019adf40065d8894e733b00da0205f52cd128bbdb0e87279a48d6ed9b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060result, _ := json.Marshal(response)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060result\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060result\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060result\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/mcp/server.go"},"region":{"startLine":1653}}}],"partialFingerprints":{"codehealthFindingId/v1":"184f2dd819ffcd75ab36fdee1c108351825d3f1e9cbffa8686f2005ac577b362"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := io.ReadAll(io.LimitReader(res.Body, 4096))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/embedding_http.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"8dc19846e68d5552ba7f1f31fddecdd17104545ada43929e78ac04c821c6e18b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060isEmpty, _ := isEmptyDir(oldDir)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060isEmpty\u0060 as if the call succeeded. When \u0060isEmptyDir\u0060 fails, \u0060isEmpty\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060isEmpty\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/manager.go"},"region":{"startLine":660}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5789c0728f2d54bd19d362900940a38eab4f2a05d739c7206c170b70d06b974"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060isEmpty, _ := isEmptyDir(dir)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060isEmpty\u0060 as if the call succeeded. When \u0060isEmptyDir\u0060 fails, \u0060isEmpty\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060isEmpty\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/manager.go"},"region":{"startLine":715}}}],"partialFingerprints":{"codehealthFindingId/v1":"3095ed6f3a560331a276096f4d5e59a347fe8193af780b5dbdb5391f812f580b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060itemsJSON, _ := json.Marshal(retrievedItems)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060itemsJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060itemsJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060itemsJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/manager.go"},"region":{"startLine":745}}}],"partialFingerprints":{"codehealthFindingId/v1":"21334036e003f74cc10642fa4d4ca2aed43dff5607539677e0cae3d110108d85"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060respBody, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060respBody\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060respBody\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060respBody\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/rerank_http.go"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0789f329e1a04aca8ddfcb165c2cd950e50949f7286c5a14e1be4d9cecf7b29"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060respBody, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060respBody\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060respBody\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060respBody\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/rerank_http.go"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9a49eb8845e03f54a28e46c19f49df3322389740c2e80678a6166d10ecf09aa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/splitter.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"6769392580dae80710f1d13d0d76441d6d7aaa72c2ae730cf6eb27827f3f65d6"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060metadataJSON, _ := json.Marshal(map[string]interface{}{ \u0022_metadata\u0022: map[string]interface{}{ \u0022retrievedItemIDs\u0022: retrievedItemIDs, }, })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060metadataJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060metadataJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060metadataJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/tool.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"0d9cff632ce1dc295bd0a367f68df8ffe26026ca84225dfdad971d7862b26be9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060idsJSON, _ := json.Marshal(ids)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060idsJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060idsJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060idsJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/knowledge/tool.go"},"region":{"startLine":319}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a89c27cba64e35c68fd261ef3a240827e1a41e7d693eb65416837b23a294811"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":523}}}],"partialFingerprints":{"codehealthFindingId/v1":"19e43c071997ca14d4a57232324131129f9b6c1a066fb3aaeb5afd85d98743d8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060out, _ := filepath.Abs(dest)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060out\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060out\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060out\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":550}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1f438bf8b3a43fb069efaf8a57ba721c93f268699d34fe1c2cba3fb834f4ed4"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060absPath, _ := filepath.Abs(fullPath)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060absPath\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060absPath\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060absPath\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":623}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4109f07aee1b770ead20f44e96f4af5730bc3ed75af61da0ebe63d41e8a115"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":957}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebe67596871e324f79b174b30357fdc1e2d43fb8b38f05e56ca263b441b3fc05"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060payloadJSON, _ := json.Marshal(dataMap)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060payloadJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060payloadJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060payloadJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":1177}}}],"partialFingerprints":{"codehealthFindingId/v1":"b34103b09079dd8ca715b9e0321f364463140ed2deff6c99cd383f378ac62299"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(limitStr)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/agent.go"},"region":{"startLine":2014}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab38e354e323748af664caddee9ea8a01396e3a56baf9c452bb5fce92b98e74b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060page, _ := strconv.Atoi(c.DefaultQuery(\u0022page\u0022, \u00221\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060page\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060page\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060page\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/asset.go"},"region":{"startLine":135}}}],"partialFingerprints":{"codehealthFindingId/v1":"037e718f01c4d1be36da23ea8cf241e87a28fc5393f95f9c70aaa66740fd90e8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060pageSize, _ := strconv.Atoi(c.DefaultQuery(\u0022page_size\u0022, \u002220\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060pageSize\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060pageSize\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060pageSize\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/asset.go"},"region":{"startLine":136}}}],"partialFingerprints":{"codehealthFindingId/v1":"5062a642162bd181dbb6f42d0eb0923332929a7b29413d2c199cd04542781c48"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060updated, _ := h.db.GetAsset(primary.ID, writeAccess)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060updated\u0060 as if the call succeeded. When \u0060h.db.GetAsset\u0060 fails, \u0060updated\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060updated\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/asset.go"},"region":{"startLine":530}}}],"partialFingerprints":{"codehealthFindingId/v1":"c59f1d6c344fb68118ce22b8d415debaa9d9f432a568a2ddab0f2bba829d73a7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060raw, _ := json.Marshal(struct { Request ChatRequest Multi bool }{req, multi})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060raw\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060raw\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060raw\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/async_agent_runs.go"},"region":{"startLine":45}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d95f1c36914f5023dcbfd672c7683eb67bb95d8c85238f02dfd601966903468"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060h.tasks.FinishTaskRun(conversationID, taskRunID, finishStatus)\u0060 returns an error, and the statement drops it: when \u0060h.tasks.FinishTaskRun\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := h.tasks.FinishTaskRun(conversationID, taskRunID, finishStatus); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_queue_executor.go"},"region":{"startLine":181}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf102046debbcfdbfaa966b57f09352e03c81e5bb8cdcd21869eb50b1e583919"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_manager.go"},"region":{"startLine":313}}}],"partialFingerprints":{"codehealthFindingId/v1":"9ae6e6d490b6d7944f9b3f732912b9bf5a53d46381a42c5c20cc6cb0d6b3379f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060f, _ := strconv.ParseFloat(strings.TrimSpace(t), 64)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060f\u0060 as if the call succeeded. When \u0060strconv.ParseFloat\u0060 fails, \u0060f\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060f\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/batch_task_mcp.go"},"region":{"startLine":848}}}],"partialFingerprints":{"codehealthFindingId/v1":"2ab929dc661dd06ae08eb5e308e48289da2ac1917b487245093b785629a2dcea"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060cfgJSON, _ := json.Marshal(req.Config)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060cfgJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060cfgJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060cfgJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":205}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e5349da010ed87ffeaf996a993400e2334ea20596aedd96b5ae901cf5e110dd"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := json.Marshal(e)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/c2.go"},"region":{"startLine":992}}}],"partialFingerprints":{"codehealthFindingId/v1":"c86e3ecdad7d326147a8e6151a4f8622edc2f2bec56e268463a24680957d3572"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060rootAbs, _ := filepath.Abs(root)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060rootAbs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060rootAbs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060rootAbs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc6d8af13fcf17015caee931231db07c9f2a9477a9857755dd589f8df3bc39a7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":284}}}],"partialFingerprints":{"codehealthFindingId/v1":"73779e596344879fafc63c263c793e72951074daf5a09aea6a5fbcbb6180d401"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":300}}}],"partialFingerprints":{"codehealthFindingId/v1":"af63462945e1ec5d0fbf98b5e76f110c9405c82b968aa649d1cf98631a7054c0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":316}}}],"partialFingerprints":{"codehealthFindingId/v1":"daba21c394406e041c15797c5ead53fee9daccad077553e2a9822ec5d497774b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060absPath, _ := filepath.Abs(path)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060absPath\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060absPath\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060absPath\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":376}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b66d370a86feba3369ef0ca4c4784d232c769e905435e7ca8ecbcbe15629ca4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":478}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff2cb2be8dfe9b9e5d7ce6914b827029862f943ff3b776f5248e9c6d5a0b6026"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":507}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d73258900e3f2a87e0c42cb38cffc858a16dd467afbc2b2c7f2bc43c23e762e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060abs, _ := filepath.Abs(path)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060abs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060abs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060abs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":514}}}],"partialFingerprints":{"codehealthFindingId/v1":"53756d0c2c18342594bf5b4cfe1000a10b8135e5482c138930711de6ff9a0a20"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":554}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8ed096e5298775876920c12ccaa043dc9b98ed4e229287ef723d3869bc45e9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b5b6681ef26190db75e254f727b265f8d152677d456a66a9cc20eae96567075"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060abs, _ := filepath.Abs(path)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060abs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060abs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060abs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":586}}}],"partialFingerprints":{"codehealthFindingId/v1":"36f0676f79f740d1dd2ceaf97af01ae19f41f3dc584310100a82b3b3d9d02199"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":624}}}],"partialFingerprints":{"codehealthFindingId/v1":"290ceb19dd56a58b1bad62cb63d759af81345f7c88c7da75b8bdaf76b3393372"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":644}}}],"partialFingerprints":{"codehealthFindingId/v1":"29de96be30f8cf107c5707cbba2d3e0235008185f98a888f481b7f4b4f3abf4a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060abs, _ := filepath.Abs(path)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060abs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060abs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060abs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":651}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5075652b0bc4f25929f828a1010151390784580da3095b34748233b53a0ff11"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060rootAbs, _ := filepath.Abs(root)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060rootAbs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060rootAbs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060rootAbs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":685}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdcd3579c7da07fd6e550ea39d40f39adf5d3015e4f4772ad2f5a7cb5212a38c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060rootAbs, _ := filepath.Abs(root)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060rootAbs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060rootAbs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060rootAbs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":706}}}],"partialFingerprints":{"codehealthFindingId/v1":"57de7f0b74f6b2fa92f62704375791481863ee2d80c8310edea5f6e5cbfcc86f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060rootAbs, _ := filepath.Abs(root)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060rootAbs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060rootAbs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060rootAbs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":727}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0102c94fe37b4907c45bda624441cdc672c69d422da5b7dda091f47f5d66e75"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060manifestBytes, _ := json.MarshalIndent(manifest, \u0022\u0022, \u0022 \u0022)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060manifestBytes\u0060 as if the call succeeded. When \u0060json.MarshalIndent\u0060 fails, \u0060manifestBytes\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060manifestBytes\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"2a31bf28da530ad6b3e9d3b14da1294552dfd2cf170472a941d8b691063bec3f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":919}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c197602774f9a40745de7384f963f156e757496f3c96d39cff680ae0f72147d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":960}}}],"partialFingerprints":{"codehealthFindingId/v1":"a61cc82eda3f13ff50f4de3fb09c1d5d65ae42ddfc03fb6a15656fa287282128"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060relOut, _ := filepath.Rel(root, absNew)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060relOut\u0060 as if the call succeeded. When \u0060filepath.Rel\u0060 fails, \u0060relOut\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060relOut\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1270}}}],"partialFingerprints":{"codehealthFindingId/v1":"9c9e679b1560893f56c226e9ee51f6cb379490bdae7afb4f64bc4cf3b21ceb96"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060root, _ := h.absRoot()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060root\u0060 as if the call succeeded. When \u0060h.absRoot\u0060 fails, \u0060root\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060root\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1302}}}],"partialFingerprints":{"codehealthFindingId/v1":"611fe1821ff3920e163e5cb1bc18686e20135f772bcb37d04d1be00edd8f08c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060newAbs, _ = filepath.Abs(newAbs)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060newAbs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060newAbs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060newAbs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1303}}}],"partialFingerprints":{"codehealthFindingId/v1":"e57a6273da84dbd0520284d00ae6bc5c96982f9201612a20ed3c5e03f1ef8b74"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060newRel, _ := filepath.Rel(root, newAbs)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060newRel\u0060 as if the call succeeded. When \u0060filepath.Rel\u0060 fails, \u0060newRel\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060newRel\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1316}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c24101e6cbab3039c3d906f2e915ff8dd7666640fb4bed0057345d2f5ca794a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060rel, _ := filepath.Rel(root, fullPath)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060rel\u0060 as if the call succeeded. When \u0060filepath.Rel\u0060 fails, \u0060rel\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060rel\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1493}}}],"partialFingerprints":{"codehealthFindingId/v1":"76d27dd59bc4d5045f6671522b47f1ea2a2ce16086c0a391d7aa2d850e2fb2c5"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060absSaved, _ := filepath.Abs(fullPath)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060absSaved\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060absSaved\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060absSaved\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/chat_uploads.go"},"region":{"startLine":1494}}}],"partialFingerprints":{"codehealthFindingId/v1":"662a0f45c57b1989cfa9401bbac1542514dd3de54f1180a32fd0a0d515fd32f8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(limitStr)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/conversation.go"},"region":{"startLine":153}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c4e74058298dccea58acae7052481858e4e49a406e8b6cac7a1aaf8fb4485b7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060offset, _ := strconv.Atoi(offsetStr)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060offset\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060offset\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060offset\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/conversation.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"557ac1287b2947e9f4245b947dbe46845242cf653cf71ce0f1caaff30e42c5f5"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060offset, _ := strconv.Atoi(strings.TrimSpace(c.Query(\u0022offset\u0022)))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060offset\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060offset\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060offset\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/conversation.go"},"region":{"startLine":378}}}],"partialFingerprints":{"codehealthFindingId/v1":"1961a115c66d6464002e43c1a3a9b1c90191644f4c37af83f3a50ff4e7cda68d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(raw, \u0026obj); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"d18ee22ede447a4930a453f5c698c2dacc8154859d10c6bc2b71ed4d479957c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"52bdf46e3878bfc197dfa229dd270f2831d0fd3b4dfeb47eb30b083ad90f9319"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060detailData, _ := json.Marshal(map[string]string{\u0022reason\u0022: reason, \u0022status\u0022: eventType})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060detailData\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060detailData\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060detailData\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"72c992733efe03be1283a2b3231b103fc1766ebeca2a84ea2198990938c70c4c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060updated, _ := result.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060updated\u0060 as if the call succeeded. When \u0060result.RowsAffected\u0060 fails, \u0060updated\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060updated\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":232}}}],"partialFingerprints":{"codehealthFindingId/v1":"aa197d5afd01235b695e797c50ada17f6311a1693b078e4c46fe199e4a61491f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060tools, _ := json.Marshal(req.SensitiveTools)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060tools\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060tools\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060tools\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":508}}}],"partialFingerprints":{"codehealthFindingId/v1":"88d1882dad0a343c2d2e25dbfa4a8ce423bd6d62b7a7e131ed0744832a9b06dc"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060payloadRaw, _ := json.Marshal(payload)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060payloadRaw\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060payloadRaw\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060payloadRaw\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":645}}}],"partialFingerprints":{"codehealthFindingId/v1":"eeae57d09986478114e4d8c94140a6527868749d6e3ef297583bde048be54003"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060page, _ := strconv.Atoi(c.DefaultQuery(\u0022page\u0022, \u00221\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060page\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060page\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060page\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":818}}}],"partialFingerprints":{"codehealthFindingId/v1":"32802dd4a508bc5f28afeb148dd7dd621844cf10683160c6c156c9889f54ea98"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl.go"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"b62b2295b7d21d76d93bbfb33ce5e65743032d92c9ec316c0a3861d71d3e474d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_audit_backend.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"519571d88a923c49208ae852ad20a78ec3bab65a671d0110eff78df67fbf0fbf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_execution.go"},"region":{"startLine":118}}}],"partialFingerprints":{"codehealthFindingId/v1":"d25c5de0fc0b3b81b5a7616f0f27693421df0775835144de924c04ea63782246"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_execution.go"},"region":{"startLine":128}}}],"partialFingerprints":{"codehealthFindingId/v1":"023c796ff6aad092ffd838d4011539558547c34b81d45fada7e06ac4e327ce6e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026id, \u0026cid, \u0026messageID, \u0026mode, \u0026toolName, \u0026toolCallID, \u0026payload, \u0026rowStatus, \u0026reviewer, \u0026decision, \u0026comment, \u0026decidedBy, \u0026createdAt, \u0026decidedAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_logs.go"},"region":{"startLine":146}}}],"partialFingerprints":{"codehealthFindingId/v1":"09e94e89911d9c9258eea5307e00613fb18e86c99b716ce3fe216a72f86a23c6"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060page, _ := strconv.Atoi(c.DefaultQuery(\u0022page\u0022, \u00221\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060page\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060page\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060page\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_logs.go"},"region":{"startLine":164}}}],"partialFingerprints":{"codehealthFindingId/v1":"5cdad55ca60999e056a8551dc53be9be7a5a802359057b3a3d9a33ea55868a05"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026id, \u0026conversationID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_logs.go"},"region":{"startLine":314}}}],"partialFingerprints":{"codehealthFindingId/v1":"e6ac141d6b05e823a3c58c1d49f20674318eacab372c1c1b6cf1d5beb7492591"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := h.db.QueryRow(\u0060 \u0060, strings.TrimSpace(interruptID)).Scan(\u0026conversationID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_logs.go"},"region":{"startLine":326}}}],"partialFingerprints":{"codehealthFindingId/v1":"52edb976bf142a758e75106272980bad3f77f96fa9f14ecd462b84d7a21250b0"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.Marshal(ev)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":29}}}],"partialFingerprints":{"codehealthFindingId/v1":"5388fc47f8846ddac353a283337ca2824bcbbd12a69e89f4b94dadb8d31c5aec"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060db, _ := json.Marshal(done)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060db\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060db\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060db\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":32}}}],"partialFingerprints":{"codehealthFindingId/v1":"baeeab0ebc48dc44774fcca2528f896fc01118fc8fbaf284a725007e08b9bb2b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.Marshal(event)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8976062c8ff61339ec117fa0b83ad35d528e382073f810734c9abed1c091488"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060db, _ := json.Marshal(done)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060db\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060db\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060db\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":46}}}],"partialFingerprints":{"codehealthFindingId/v1":"be84bbfb5f32f0cebc7ef2e200f9e2e2a1b835794c0edf4d01f14cc44849b45e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060h.tasks.FinishTaskRun(conversationID, taskRunID, taskStatus)\u0060 returns an error, and the statement drops it: when \u0060h.tasks.FinishTaskRun\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := h.tasks.FinishTaskRun(conversationID, taskRunID, taskStatus); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/multi_agent.go"},"region":{"startLine":155}}}],"partialFingerprints":{"codehealthFindingId/v1":"d49a0bcfe4104398d90bbdc8bac3d942ee30a7c1e03a9e2337da27633e1a619b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026id, \u0026conversationID, \u0026toolName, \u0026createdSec); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/notification.go"},"region":{"startLine":234}}}],"partialFingerprints":{"codehealthFindingId/v1":"5988a214e31fca6bec8959010efe9ed46bf464fb88c2c204d11fc2695224cb8e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026id, \u0026title, \u0026severity, \u0026conversationID, \u0026createdSec); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/notification.go"},"region":{"startLine":293}}}],"partialFingerprints":{"codehealthFindingId/v1":"46fe1ab66e1913e91b015ee3959f54fe5a913d10cbf700b3faca5c80d7a9c283"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026id, \u0026toolName, \u0026startSec); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/notification.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"0922ad58767563f8c1851c36681095f2e49e68bcf102e9549507c7b84d739c2b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026id); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/notification.go"},"region":{"startLine":517}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a603543d0f395d62f06009d0ce56e6638d34cd49d8ae2fa72aae6682c650453"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(strings.TrimSpace(c.DefaultQuery(\u0022limit\u0022, \u002250\u0022)))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/notification.go"},"region":{"startLine":699}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf36eba1e3a209fdb15fe55e00107a15e8e4acbb1d74912dc85cbc9d7742519a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(strings.TrimSpace(c.DefaultQuery(\u0022fact_limit\u0022, \u00225\u0022)))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"d0fd3901b146e50bf411179dccd0ef68ba93351afe84c9200538b7183841d4c1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(c.DefaultQuery(\u0022limit\u0022, \u002250\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7e047bb1f41262ff24e3b72898d4434f54866b846fa18642fae80eedf665e33"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060offset, _ := strconv.Atoi(c.Query(\u0022offset\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060offset\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060offset\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060offset\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"af7270a937667da179032c52dcc2648bcf0f645897cd61ac5416a9f630ca00b0"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(c.DefaultQuery(\u0022limit\u0022, \u0022100\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"aaae1c933c1fab31536eaa0899ed8ed3210fd25d06e4eedd82594434e092681a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060offset, _ := strconv.Atoi(c.Query(\u0022offset\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060offset\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060offset\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060offset\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"8770ce26b07535b361a55e8f2b3c89a5f10963db369a5ef83589daf3450a5b0e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060total, _ := h.db.CountConversationsByProjectID(projectID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060total\u0060 as if the call succeeded. When \u0060h.db.CountConversationsByProjectID\u0060 fails, \u0060total\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060total\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":168}}}],"partialFingerprints":{"codehealthFindingId/v1":"5b1670e74c1ac73a2f02fb1c9bb35c0bf10359aae900c1d1112c97280ffa2b30"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060out, _ := h.db.ListOutgoingProjectFactEdges(projectID, f.FactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060out\u0060 as if the call succeeded. When \u0060h.db.ListOutgoingProjectFactEdges\u0060 fails, \u0060out\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060out\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"1a1de5be593732508e65e0a549a8bc0e65368330aa3489f194ac61e379d346fc"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060in, _ := h.db.ListIncomingProjectFactEdges(projectID, f.FactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060in\u0060 as if the call succeeded. When \u0060h.db.ListIncomingProjectFactEdges\u0060 fails, \u0060in\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060in\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":328}}}],"partialFingerprints":{"codehealthFindingId/v1":"792310f11f59a5df03473ff853a79fcd03226749cccab830b27cecd0e5eca905"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(c.DefaultQuery(\u0022limit\u0022, \u0022100\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":349}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a1b8b272b4452781ba48ada0b95418936bc55e6555b9da4700264638b5177b2"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060offset, _ := strconv.Atoi(c.Query(\u0022offset\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060offset\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060offset\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060offset\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":350}}}],"partialFingerprints":{"codehealthFindingId/v1":"276b5d1b108198a1925a7bec972108cace6dd5aeb55c683406d265799d2ff3b9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060created, _ = h.db.GetProjectFactByKey(projectID, created.FactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060created\u0060 as if the call succeeded. When \u0060h.db.GetProjectFactByKey\u0060 fails, \u0060created\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060created\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":460}}}],"partialFingerprints":{"codehealthFindingId/v1":"28697e949347be191b945c567daf203f1690c9bda5f03a2de64fa19ccf693687"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060updated, _ = h.db.GetProjectFactByKey(projectID, updated.FactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060updated\u0060 as if the call succeeded. When \u0060h.db.GetProjectFactByKey\u0060 fails, \u0060updated\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060updated\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":537}}}],"partialFingerprints":{"codehealthFindingId/v1":"b49701de2d0d3bdac42532cf99dcaebfc3d434693139d01e1afa0e77a80d3762"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060in, _ := h.db.ListIncomingProjectFactEdges(projectID, req.TargetFactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060in\u0060 as if the call succeeded. When \u0060h.db.ListIncomingProjectFactEdges\u0060 fails, \u0060in\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060in\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":631}}}],"partialFingerprints":{"codehealthFindingId/v1":"69d0c2257c769dc03a1878627f3f83e78fec6218b79a0b5d6ea88876bc822761"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060in, _ := h.db.ListIncomingProjectFactEdges(projectID, edge.TargetFactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060in\u0060 as if the call succeeded. When \u0060h.db.ListIncomingProjectFactEdges\u0060 fails, \u0060in\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060in\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project.go"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"650b74f7e83cf4d97621787dee9c68a7351e15220cd49c7fd2c5d89f91f9548d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project_context.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"65db57709deaa5fc983e58e6e8a12b91b605a2a0aafa4e8a4cda20ae99f991ac"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060keys, _ := h.db.ListRBACRolePermissionKeys(role.ID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060keys\u0060 as if the call succeeded. When \u0060h.db.ListRBACRolePermissionKeys\u0060 fails, \u0060keys\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060keys\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/rbac.go"},"region":{"startLine":68}}}],"partialFingerprints":{"codehealthFindingId/v1":"4596968e84f41a1fb87d3e40b05005a6ee22ec2b00e39b3c2738bc0b7d831060"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060keys, _ := h.db.ListRBACRolePermissionKeys(role.ID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060keys\u0060 as if the call succeeded. When \u0060h.db.ListRBACRolePermissionKeys\u0060 fails, \u0060keys\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060keys\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/rbac.go"},"region":{"startLine":87}}}],"partialFingerprints":{"codehealthFindingId/v1":"2efd789db0082578636cc1e95ae83709ae978e27220ce6380889fe60cc3ee8aa"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060roleIDs, _ := h.db.ListRBACUserRoleIDs(user.ID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060roleIDs\u0060 as if the call succeeded. When \u0060h.db.ListRBACUserRoleIDs\u0060 fails, \u0060roleIDs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060roleIDs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/rbac.go"},"region":{"startLine":236}}}],"partialFingerprints":{"codehealthFindingId/v1":"011518becc59a9ef0fb4f510ecbc047b815fd049de8eda5fe07c54596ed3802c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060updated, _ := h.db.GetRBACUserByID(id)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060updated\u0060 as if the call succeeded. When \u0060h.db.GetRBACUserByID\u0060 fails, \u0060updated\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060updated\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/rbac.go"},"region":{"startLine":337}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae77cd500cc880792c2ee7b4664efa44ca7babece4a574a22957ba7de19556da"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(c.DefaultQuery(\u0022limit\u0022, \u002250\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/rbac.go"},"region":{"startLine":418}}}],"partialFingerprints":{"codehealthFindingId/v1":"ee6127a4cb5c16ed70a771f20bce59948f54cf9acb8722691cce3ca6ed2ff8f8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060offset, _ := strconv.Atoi(c.DefaultQuery(\u0022offset\u0022, \u00220\u0022))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060offset\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060offset\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060offset\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/rbac.go"},"region":{"startLine":422}}}],"partialFingerprints":{"codehealthFindingId/v1":"bbc2af63f9894a79f442302825f5fef8aad33b6ad95c229ce4d81c1953671082"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":119}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0e41b9a66069015b40d6d7df3bd78cbb94f3125adb5df58a4dfe6a44b358ac"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab62713e16158135569e07c99eeb379beacce25f6f8bd1d16a75444f85027eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":607}}}],"partialFingerprints":{"codehealthFindingId/v1":"077e62cf4cfe807c1f9b5fc79c4227f09f37d575029dfbc34060b038b4da6144"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if accessErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"7143ba4c0d1d916e94be03b264cccc1719d6aa008a7b8a0875ee1d023c26f0aa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf6893b07d3a02f9ecb2fe4c6fc32d3e71bbfc1f9a0e62dc11904f4fba965556"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"af5c52a9060b1d000b2651ccc9e16e9f42fd714048f2640af9e7792ffd9593fa"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if accessErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d5fac991501fc337d46de6e74c49138920ef9c746c7e28f2ec99e026b253d5e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":730}}}],"partialFingerprints":{"codehealthFindingId/v1":"6c75a94b739c797017f1fcd3734e89cef86692ca5237bdd139b45416d0e04aeb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"38105b6ef9f3bf9dd91ae9c8bc55a17837bcf20f5d0e06be6c7d4b3dcb2899fe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":772}}}],"partialFingerprints":{"codehealthFindingId/v1":"d6a37bf374e0d5dd940711553acdc39867eae1eec028e1120e35f5b422be4bef"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060projectID, _ := h.db.GetConversationProjectID(conv.ID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060projectID\u0060 as if the call succeeded. When \u0060h.db.GetConversationProjectID\u0060 fails, \u0060projectID\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060projectID\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":778}}}],"partialFingerprints":{"codehealthFindingId/v1":"eae25150b09fcbc9c2b20d45f7a6251e93a456cfd54b990aba75b554e90719d7"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"98167b6c4ed239fad31aed31c9d639b26e9631043e4811db2e2dedbc297490d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"573ca8b236c69087bc46cfd78d3e71163dcc0f5476237eae6de31fadbcfa126d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if accessErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"03c3f1153ab6af16591fdfd71fa10442bdb2d5720f7f4f38cfdd46be054f69eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if accessErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1179}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c68b54038f0dc877bacba9a0550f985602c27e77132d6fa5e467e255f264c27"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := h.db.DeleteRobotIdentityBinding(platform, userID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1182}}}],"partialFingerprints":{"codehealthFindingId/v1":"ac70c7c78349cd35766d5316cb54dcc6efa77f0681b9616b3294253d20c4ee18"}},{"ruleId":"X3","level":"warning","message":{"text":"Lost error (reports an error that is nil on this path): \u0060if _, err := os.Stat(roleFileYml); err == nil\u0060 reports \u0060err\u0060 on the one path where it is nil, and the path where the call failed goes on without ever reading it: the comparison is inverted. The real failure is lost and a nil error (or a panic on \u0060err.Error()\u0060) is reported in its place. Test \u0060err != nil\u0060 here."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/role.go"},"region":{"startLine":308}}}],"partialFingerprints":{"codehealthFindingId/v1":"08c44a4e0426b9dadcefec4566a522f2b2a9a327f74f825947436d4a03658e01"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.Marshal(ev)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/single_agent.go"},"region":{"startLine":30}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9edc77a7bcfc77ee96ab775d6f50c5bca9a9189f573c0f1f83349216aad7a7a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060db, _ := json.Marshal(done)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060db\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060db\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060db\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/single_agent.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d32970cc745507b59370f47854d95e37351fdb095939363be141bc1d12415c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060h.tasks.FinishTaskRun(conversationID, taskRunID, taskStatus)\u0060 returns an error, and the statement drops it: when \u0060h.tasks.FinishTaskRun\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := h.tasks.FinishTaskRun(conversationID, taskRunID, taskStatus); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/single_agent.go"},"region":{"startLine":138}}}],"partialFingerprints":{"codehealthFindingId/v1":"a9652fee8e6c5910ad284733bbba7b4df23f04ae5f7a0abdb722b5085caaa47a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060cur, _ := os.Getwd()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060cur\u0060 as if the call succeeded. When \u0060os.Getwd\u0060 fails, \u0060cur\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060cur\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal.go"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"3026b2a330830bdc9309ffee4d1557ba93dbcfbf6179f83179702ee8158a77a1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060curAbs, _ := filepath.Abs(cur)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060curAbs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060curAbs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060curAbs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6db90214aadf413fc597897fd9b21bb866bfe985ee8c48c38e18c3c16b0ef1d"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060cur, _ := os.Getwd()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060cur\u0060 as if the call succeeded. When \u0060os.Getwd\u0060 fails, \u0060cur\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060cur\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal.go"},"region":{"startLine":229}}}],"partialFingerprints":{"codehealthFindingId/v1":"f29b463dbcd1c5d82c4792136f1fcb6d0a3c5695e7f2593a19c2b57859230063"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060curAbs, _ := filepath.Abs(cur)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060curAbs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060curAbs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060curAbs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"74ef0a6e3be8f0c80075551fbcebe3d0313bb94fa153fffb56f8be5573b00610"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := json.Marshal(ev)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal.go"},"region":{"startLine":251}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec2e5c0e38edadf7f709a773b1fb3791795fcafb023b0289b7f779ed4bb7003"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal_ws_unix.go"},"region":{"startLine":36}}}],"partialFingerprints":{"codehealthFindingId/v1":"ea0d6e0a0e8551d2fb2dc00fbfe9d81560fd2b326754e36475ac19bd5365189c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := exec.LookPath(shell); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal_ws_unix.go"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"a0ecca4b850e9d130dbc5b466816456002aed803a04d99658c6d43166748ac96"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal_ws_unix.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"4b743bf49fb36d324d3c89f4c799283e8a9e86a5cbbe0c0aaa56e08f1063050c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/terminal_ws_unix.go"},"region":{"startLine":69}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3da67019f97b67e37abd941ed954aa09e3ffd9d0c46eaceca9f8684c0a7214d"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060days, _ := strconv.Atoi(strings.TrimSpace(c.DefaultQuery(\u0022days\u0022, \u00227\u0022)))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060days\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060days\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060days\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/token_usage.go"},"region":{"startLine":48}}}],"partialFingerprints":{"codehealthFindingId/v1":"9fdd182bb105195885d11220d5d299265ca4643af0050287be80374a14b3f94a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(strings.TrimSpace(c.DefaultQuery(\u0022limit\u0022, \u002210\u0022)))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/token_usage.go"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"c73132d137d4c02a6a485d49a5255a1f615a2191181a375185868b571f2481ce"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := json.Marshal(h.toolGuard.Config())\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/tool_guard.go"},"region":{"startLine":33}}}],"partialFingerprints":{"codehealthFindingId/v1":"1feec41b5457e71c6a4daef561c8a86011624a7898f513e729f6075437407282"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060limit, _ := strconv.Atoi(limitStr)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060limit\u0060 as if the call succeeded. When \u0060strconv.Atoi\u0060 fails, \u0060limit\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060limit\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability.go"},"region":{"startLine":198}}}],"partialFingerprints":{"codehealthFindingId/v1":"066cb8a73dc4bab424293b3dbda22173b1307953ee8802254cb8c8f6a151e7e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060bindings, _ := h.db.ListRobotUserBindings(session.UserID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060bindings\u0060 as if the call succeeded. When \u0060h.db.ListRobotUserBindings\u0060 fails, \u0060bindings\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060bindings\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability_alert.go"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"263501fd3ffab92bf8e48e9ac4a6cd16fa1f3a9060b7b42e48f02cc933d338d9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability_alert.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"ed7195f7d873500856c56ff0c34add82e9299c03bf715a195771b44223dd9038"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability_alert.go"},"region":{"startLine":209}}}],"partialFingerprints":{"codehealthFindingId/v1":"050567090e1a20c710366016dce53f58135ba67aa438f217a4f5b33917cdec7a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060bindings, _ := h.db.ListRobotUserBindings(access.User.ID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060bindings\u0060 as if the call succeeded. When \u0060h.db.ListRobotUserBindings\u0060 fails, \u0060bindings\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060bindings\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability_alert.go"},"region":{"startLine":215}}}],"partialFingerprints":{"codehealthFindingId/v1":"390eec31c5e5dd2bf96d2a77950dc68fd013ac127aa557a0f2a9210d0c5e7eb5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell_probe.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a2fa8b96afff68c6ef4f54c6db5b548afe6d85b260267f5073e1353ad56b93d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell_probe.go"},"region":{"startLine":95}}}],"partialFingerprints":{"codehealthFindingId/v1":"b2c37673fe8840c4d0b3d45e0482b79d187e51703adf5027a3edb9115be904d0"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060raw, _ := io.ReadAll(resp.Body)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060raw\u0060 as if the call succeeded. When \u0060io.ReadAll\u0060 fails, \u0060raw\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060raw\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/webshell_probe.go"},"region":{"startLine":99}}}],"partialFingerprints":{"codehealthFindingId/v1":"7b8fcde159a4249dee43c316103d61cacfa4dddf553af6bc6750fa266f97a63c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060saved, _ := h.db.GetWorkflowDefinition(id)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060saved\u0060 as if the call succeeded. When \u0060h.db.GetWorkflowDefinition\u0060 fails, \u0060saved\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060saved\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow.go"},"region":{"startLine":294}}}],"partialFingerprints":{"codehealthFindingId/v1":"68d1611e904f0ab19282852421ec1577e3435b071920383131b8341158d47359"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (an error-returning call as a bare statement): \u0060h.tasks.FinishTaskRun(conversationID, taskRunID, taskStatus)\u0060 returns an error, and the statement drops it: when \u0060h.tasks.FinishTaskRun\u0060 fails nothing records it and the code after it runs as if it had succeeded. Check it (\u0060if err := h.tasks.FinishTaskRun(conversationID, taskRunID, taskStatus); err != nil { \u2026 }\u0060) and return or log it with what was being done, or assign it to \u0060_\u0060 with a comment saying why the failure cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_integration.go"},"region":{"startLine":228}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c723343d86ad48adaf613507a9ac96fbe659e4d005fb341c816140349a54875"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060content, graph, _, _ := workflowpkg.DocumentHashes(workflowPackageDocument(local))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060content\u0060 as if the call succeeded. When \u0060workflowpkg.DocumentHashes\u0060 fails, \u0060content\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060content\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_package.go"},"region":{"startLine":100}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b8235040d5dfa935cc0053ab4fa292d02adb50a48e327b291ec7269bc6ba79d"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060manifestJSON, _ := json.Marshal(inspected.Manifest)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060manifestJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060manifestJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060manifestJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_package.go"},"region":{"startLine":103}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7d3465a7549c9516d85a50c05112fd2a51d19324daa5957cc72f1548c2be954"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060inspectionJSON, _ := json.Marshal(summary)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060inspectionJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060inspectionJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060inspectionJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_package.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef417d178f24f0e2222859cf65a6f0597fe4cc31d616083698cd426b3e24c088"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060content, graph, _, _ := workflowpkg.DocumentHashes(workflowPackageDocument(local))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060content\u0060 as if the call succeeded. When \u0060workflowpkg.DocumentHashes\u0060 fails, \u0060content\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060content\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_package.go"},"region":{"startLine":112}}}],"partialFingerprints":{"codehealthFindingId/v1":"85d22eb071f49370b617a0da60a62088a67b59777236c7c48a1176f962305299"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060wf, _ := h.db.GetWorkflowDefinition(imp.ResultingWorkflowID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060wf\u0060 as if the call succeeded. When \u0060h.db.GetWorkflowDefinition\u0060 fails, \u0060wf\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060wf\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_package.go"},"region":{"startLine":180}}}],"partialFingerprints":{"codehealthFindingId/v1":"a5c4743fe80be3e25adcd7c58e3a88c3b8bdb79e4745b9177f4e55522276e1e1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060wf, _ := h.db.GetWorkflowDefinition(imp.ResultingWorkflowID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060wf\u0060 as if the call succeeded. When \u0060h.db.GetWorkflowDefinition\u0060 fails, \u0060wf\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060wf\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_package.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"3d6d97907b46e5efcd13ca0fd81cc96a4895757a1b824938346edf14b70fe42b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.Marshal(value)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_package.go"},"region":{"startLine":240}}}],"partialFingerprints":{"codehealthFindingId/v1":"8841d1c29bab47bd7f3c9b9cc6aa047d2ac7802bddc874746cc57812641a7bbc"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060content, graph, _, _ := workflowpkg.DocumentHashes(workflowPackageDocument(wf))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060content\u0060 as if the call succeeded. When \u0060workflowpkg.DocumentHashes\u0060 fails, \u0060content\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060content\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/workflow_package.go"},"region":{"startLine":315}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a9357ca9350b6be5b389f3e473499400240034cf4d9c792e08b06109b1b507a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060tagsJSON, _ := json.Marshal(asset.Tags)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060tagsJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060tagsJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060tagsJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"d8d62f7f8435255a7242fe52b2c00aa6c9764ff159c50d079fabe40703dfb0e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":608}}}],"partialFingerprints":{"codehealthFindingId/v1":"2be088b7fcce95c7e8d18e726f4cb5a2339ceae3fdeaf12b0943cf13d4b17129"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":639}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd6acf1daed1839b6b548894951fee9e22d3e20163708e693bf9152be1319d3c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060tags, _ := json.Marshal(a.Tags)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060tags\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060tags\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060tags\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":896}}}],"partialFingerprints":{"codehealthFindingId/v1":"e61348ed727cbc7326917c7be7600ff106fd7072b0a818130add10913a2d4569"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":905}}}],"partialFingerprints":{"codehealthFindingId/v1":"922957e50b8db3abb37b2e0aff43008a1cd31eacfc7bbb2df2a764824a79528b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060tagsJSON, _ := json.Marshal(merged)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060tagsJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060tagsJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060tagsJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":1040}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd251bb0c0ebf74a765ea472b625679b6ea5f396860a4b8f1c743f2266594eee"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060tagsJSON, _ := json.Marshal(primary.Tags)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060tagsJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060tagsJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060tagsJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":1133}}}],"partialFingerprints":{"codehealthFindingId/v1":"a42bcf258344705a8e4112718054ad45a929995b1c614c4ce12190ae3a6f1410"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060deleted, _ := result.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060deleted\u0060 as if the call succeeded. When \u0060result.RowsAffected\u0060 fails, \u0060deleted\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060deleted\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":1158}}}],"partialFingerprints":{"codehealthFindingId/v1":"29a4196ab236bcbe909569b1de4689ba3a4efb72d49f5bce9385b009fe0ea944"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060updated, _ := result.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060updated\u0060 as if the call succeeded. When \u0060result.RowsAffected\u0060 fails, \u0060updated\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060updated\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":1170}}}],"partialFingerprints":{"codehealthFindingId/v1":"499f6d3a24311ed856ceb7a11630657532be3ccf65a348960e8a4c789be65d4a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/asset.go"},"region":{"startLine":1234}}}],"partialFingerprints":{"codehealthFindingId/v1":"dff6da8b11d6ee6a76133b115b8e7c87cc984ff8ece9220f3e39145952ae58fe"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan( \u0026row.ID, \u0026row.CreatedAt, \u0026row.Level, \u0026row.Category, \u0026row.Action, \u0026row.Result, \u0026row.Actor, \u0026row.SessionHint, \u0026row.ClientIP, \u0026row.UserAgent, \u0026row.ResourceType, \u0026row.ResourceID, \u0026row.Message, \u0026detailJSON, ); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/audit.go"},"region":{"startLine":200}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fa366018535bdf0e46408dbfa8dab45eb2fcdbde99a9912ee1edc7a8506062b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":206}}}],"partialFingerprints":{"codehealthFindingId/v1":"59c76efe4e20600b9df6a3cbd53ff8bb05701775a22a73ad81e1138d229ebbcc"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":223}}}],"partialFingerprints":{"codehealthFindingId/v1":"16188f1322b9bf233ebf3fb10aae0989d9016a7a4f9464c3fd24f153b44cb171"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":369}}}],"partialFingerprints":{"codehealthFindingId/v1":"2470ba413604f8cccff3cdeceaafab3c871f42271f00e5779374860664bc79cb"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e67c9896f617f88bf850461cf45b87527102e0afd1858b3aaa550b8699243b7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"d08360b74eaf0aa5b95cfd1994ee68d8e0bf2b0b88ccdb7bbe6b9dd19d3e2125"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":485}}}],"partialFingerprints":{"codehealthFindingId/v1":"11ce44adffc0d9c9abdadfe5340e155a687d66fb061c00c64d70edf76ee7b664"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":756}}}],"partialFingerprints":{"codehealthFindingId/v1":"db0093723d08c71cadd30f898b56c2d692b6cf0c68624c685120eb70dfa9753d"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"47f99f20a4f666a8bcc5baf6d197c9bb078c39150a66025e77b6708c100bb7eb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026status, \u0026n); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1103}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f906501d3a4da9663f8a1b4958636e0b7bd365dfb56864d702839c700d074e6"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1341}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f447f5f5a7f380118c6942f17e1bc5ad5ae6140209c39a3b51a4b71dcda17ae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026f.ID, \u0026f.SessionID, \u0026f.TaskID, \u0026f.Direction, \u0026f.RemotePath, \u0026f.LocalPath, \u0026f.SizeBytes, \u0026f.SHA256, \u0026f.CreatedAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1446}}}],"partialFingerprints":{"codehealthFindingId/v1":"967123742dc65f8166af55ac8371f0beb34fba49ed636b1c210e89c2f7272a87"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026level, \u0026n); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1675}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c56375ea60ea788ace2484d6de06e27e2dd23de6cabf88bdab411b6abb44a41"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026e.ID, \u0026e.Level, \u0026e.Category, \u0026e.SessionID, \u0026e.TaskID, \u0026e.Message, \u0026dataJSON, \u0026e.CreatedAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1714}}}],"partialFingerprints":{"codehealthFindingId/v1":"ace1a187cb23ab438c34f9f8f0a5ebe1e85524bcd9ae27d81ac92c2e841d75c4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026e.ID, \u0026e.Level, \u0026e.Category, \u0026e.SessionID, \u0026e.TaskID, \u0026e.Message, \u0026dataJSON, \u0026e.CreatedAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1758}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ebe156976e7d9f8152554fb29da1d1934d7511b4e6086e405f160a321e77170"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060urisJSON, _ := json.Marshal(p.URIs)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060urisJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060urisJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060urisJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1843}}}],"partialFingerprints":{"codehealthFindingId/v1":"89de587c13005b32b66e16b2606c031d9e56a56446ff8a8a015fb1e4f98aa0a9"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060reqHdrJSON, _ := json.Marshal(p.RequestHeaders)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060reqHdrJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060reqHdrJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060reqHdrJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1844}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3bf7871be7b06a38e0b9d7269c211c3382da35a2d424ead5a9a659613ae20d5"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060resHdrJSON, _ := json.Marshal(p.ResponseHeaders)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060resHdrJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060resHdrJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060resHdrJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1845}}}],"partialFingerprints":{"codehealthFindingId/v1":"db5b845aa564f693757ace09a553fb3e69a63ad0d1c910b67c6f1ab3183edd0c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060urisJSON, _ := json.Marshal(p.URIs)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060urisJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060urisJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060urisJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1862}}}],"partialFingerprints":{"codehealthFindingId/v1":"45f5666ad6c457171ca1d5d5feeb7ac07bde6ded9da4b3b9a6ab29604be9ed4c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060reqHdrJSON, _ := json.Marshal(p.RequestHeaders)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060reqHdrJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060reqHdrJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060reqHdrJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1863}}}],"partialFingerprints":{"codehealthFindingId/v1":"7e64beed3cf231ad853b3ef431f9d57aee8e8ce617912077c809d371a63977b1"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060resHdrJSON, _ := json.Marshal(p.ResponseHeaders)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060resHdrJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060resHdrJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060resHdrJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1864}}}],"partialFingerprints":{"codehealthFindingId/v1":"9610c3acee7d065f5947855d97d4bee2923c2c63a4ca41fb4776a2df3ee500db"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1877}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2cd0332e75ad8c10c890fa212d17291c25e23e7c4dc3b60d3880d3e83eef04e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026p.ID, \u0026p.Name, \u0026p.UserAgent, \u0026urisJSON, \u0026reqHdrJSON, \u0026resHdrJSON, \u0026p.BodyTemplate, \u0026p.JitterMinMS, \u0026p.JitterMaxMS, \u0026p.CreatedAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1927}}}],"partialFingerprints":{"codehealthFindingId/v1":"354cb4c7da0a712f85cebee8ca0dad83d391ee28a413f25d78b7742415220d19"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2.go"},"region":{"startLine":1948}}}],"partialFingerprints":{"codehealthFindingId/v1":"6501eb2379783b6dfea3c598aad1f60ce5b70d8b101b7feda67388882be941bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := db.QueryRow(\u0060 \u0060, strings.TrimSpace(filename)).Scan(\u0026listenerID, \u0026ownerUserID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/c2_payload.go"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"f4521f1c16bddcd553db95e571f5d92083ac779e4f838732cdb0b8431edc831d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026item.ID, \u0026item.Title, \u0026updatedAt); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"100872ac15eb3259e7078e3e687593589d63891bd2a36dad3d4adabe259fed6b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060projectID, _ := db.GetConversationProjectID(id)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060projectID\u0060 as if the call succeeded. When \u0060db.GetConversationProjectID\u0060 fails, \u0060projectID\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060projectID\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":752}}}],"partialFingerprints":{"codehealthFindingId/v1":"f851ec80f93c52fd0855df43637de3ba444dc78552c55508157ff5792aedccba"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":863}}}],"partialFingerprints":{"codehealthFindingId/v1":"d7851b6c2cb2ea2758a603c232af4168a9b57343746701e9934ea6031e3a4d93"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026eventType, \u0026message); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1280}}}],"partialFingerprints":{"codehealthFindingId/v1":"1e94208ae16a321613dfbb28ffb96dc02802821a55666ab15eace0ac7486255a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(dataJSON), \u0026payload); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1554}}}],"partialFingerprints":{"codehealthFindingId/v1":"96fed4d3aecca81d9c9ea227d91565c067ac73b6556d8bc2ed1bb733d7f6a140"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(dataJSON), \u0026payload); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1647}}}],"partialFingerprints":{"codehealthFindingId/v1":"3be79d85f8c5dd33bac8cf92dde745664ab6b81f686378ce954948433835e363"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := db.QueryRow(\u0060 \u0060, execID).Scan(\u0026status); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/conversation.go"},"region":{"startLine":1703}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4eadf45a984a14566b494b6d70288400f057b03bd6c6fc20e1c495aeec941ef"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/hitl_logs.go"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a0c673a8ac669ea3afcab9ae86f2c5eb670443a77b89388b678d2995c58cf94"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/hitl_logs.go"},"region":{"startLine":56}}}],"partialFingerprints":{"codehealthFindingId/v1":"21f51e41d7fad652bbf7bd87ceb51cb552fabfb079ca84adf15b0df356124329"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/hitl_logs.go"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7b539ab3da634a3a9604a85e53bef226f5b135403fe58538b4c9ebf336b4090"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060i, _ := n.Int64()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060i\u0060 as if the call succeeded. When \u0060n.Int64\u0060 fails, \u0060i\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060i\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/model_token_usage.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"b6ea023586304bc4b16b43e514a3d57a7fd88a7d40d24ac39a9eb2068100d9c8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060i, _ := strconv.ParseInt(strings.TrimSpace(n), 10, 64)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060i\u0060 as if the call succeeded. When \u0060strconv.ParseInt\u0060 fails, \u0060i\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060i\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/model_token_usage.go"},"region":{"startLine":182}}}],"partialFingerprints":{"codehealthFindingId/v1":"51389fd8c13726d33ec27e3b61d058e3ab4324e3298f7bcba6fc0ab1ff49b410"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060i, _ := strconv.ParseInt(strings.TrimSpace(fmt.Sprint(v)), 10, 64)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060i\u0060 as if the call succeeded. When \u0060strconv.ParseInt\u0060 fails, \u0060i\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060i\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/model_token_usage.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"4be33dee23d49df67b47a4dece682d189a09ef556fd2e0f109965190273daf51"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := db.QueryRow(\u0060 \u0060, executionID).Scan(\u0026ownerUserID, \u0026conversationID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":611}}}],"partialFingerprints":{"codehealthFindingId/v1":"4038b1b3f9000125a948a2c879382406c6d11c87ca9e3c13b539661e242e879e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/monitor.go"},"region":{"startLine":702}}}],"partialFingerprints":{"codehealthFindingId/v1":"64a673ecb9551060e819f0ee0cfea8602bdcf173b97320172950be5926725279"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if infoErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/plantask.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"294485eb80ac12a75670db883e22de083184f2c261a3138a66a77cf5ba192643"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project.go"},"region":{"startLine":583}}}],"partialFingerprints":{"codehealthFindingId/v1":"c03a744b8869a4c3ec5b8ffa7fd1c84a8b4c9331acb74fef24f58147ac3e7119"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project_fact_edges.go"},"region":{"startLine":310}}}],"partialFingerprints":{"codehealthFindingId/v1":"01b3428bb80ebc198f5a8687f421680439cfe43f5e1be79c354cf5697b010d43"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060n, _ := res.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060n\u0060 as if the call succeeded. When \u0060res.RowsAffected\u0060 fails, \u0060n\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060n\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/project_fact_edges.go"},"region":{"startLine":327}}}],"partialFingerprints":{"codehealthFindingId/v1":"8a93f0aa34689f1f4a5d964363f05d5986883768642264ab27eff30dc06f4be8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := db.QueryRow(\u0060 \u0060, assetID).Scan(\u0026projectID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"f2a4220eb14ecfd1116043523181ab86e259c574a7ff4fda3ddf22de37e87fa9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := db.QueryRow(\u0060 \u0060, conversationID).Scan(\u0026projectID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":413}}}],"partialFingerprints":{"codehealthFindingId/v1":"f7e9dbcd33d08f181d1102cb7e36411d78fbf02aa9def97f9989ba220d17bdd3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":423}}}],"partialFingerprints":{"codehealthFindingId/v1":"7637f21edb6a0b16c15ce21ffb29a5a735888b8ce96a3d34d4a53f325d7f4641"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":438}}}],"partialFingerprints":{"codehealthFindingId/v1":"20a99202e2078e90d063d3cfb633f0099bf9e854bd74db7d1d70c6da650c856d"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":447}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a8fe76515d49ee117db220ef5aa2f100fea8dd1f35d9c55591f9d0448740279"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := db.QueryRow(\u0060 \u0060, resourceID).Scan(\u0026listenerID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":457}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a8833bcb7f63ecddd1ca2182fcfb70c3d851c75fdb56e8a75243973db2566f9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := db.QueryRow(\u0060 \u0060, resourceID).Scan(\u0026sessionID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":463}}}],"partialFingerprints":{"codehealthFindingId/v1":"3f5df333059c2d28b091019268e54d09a2918ab94b2fe905d7a4e76d4d5c40c3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := db.QueryRow(\u0060 \u0060, resourceID).Scan(\u0026sessionID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":469}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f48894814ffa415497064b1449881dfff4bbd09629a7720f91264b1e34af574"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := db.QueryRow(\u0060 \u0060, resourceID).Scan(\u0026sessionID, \u0026taskID); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":475}}}],"partialFingerprints":{"codehealthFindingId/v1":"af39e3ab7a0ece312014fb77549252ad5846e3baa18c647d36ecc74169ea33e3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := db.QueryRow(\u0060 \u0060\u002Btable\u002B\u0060 \u0060, strings.TrimSpace(resourceID)).Scan(\u0026owner); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"6abc81396ce2ba0e922238c2891451b8aef2564583eea677563cc200ffb9fd84"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := result.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060result.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/robot_identity.go"},"region":{"startLine":91}}}],"partialFingerprints":{"codehealthFindingId/v1":"c575ad59ffe32ca71bdb53799a319b8fc1a97f94d7467708a883fc3e313eadf2"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := result.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060result.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/robot_identity.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"9db6b40cb408dd984d75a846562d0d60cedd0fd35c21054ae1f119b70f6bf95e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, err := strconv.Unquote(text[matchIndex\u002Blen(\u0022 \u0022):]); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/tool_guard_migration.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ee17bd0b27cb02e5198a3df5d41ba81b34ba25224875cf642e0f70044035e9"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026severity, \u0026count); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability.go"},"region":{"startLine":658}}}],"partialFingerprints":{"codehealthFindingId/v1":"979c22ce3243d5df47533fe4ed13c5a332cf3ad6e99b1de84c855ffa10326d20"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026status, \u0026count); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability.go"},"region":{"startLine":678}}}],"partialFingerprints":{"codehealthFindingId/v1":"18c356d650a35b3e09b86e007c23db31a972ec509e062a71601c86ebe1004a3e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := rows.Scan(\u0026val); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability.go"},"region":{"startLine":703}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1d7a75b8e9f9b7190dbdaeb251cbaea19386c4dcd492fb73c0c65ee797851e7"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060data, _ := json.Marshal(targets)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060data\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060data\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060data\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability_workspace.go"},"region":{"startLine":101}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5b1dd44337221b8b903e6f2427a48159a422961b2a100919e99a3fddbb94154"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060rawIDs, _ := json.Marshal(ids)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060rawIDs\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060rawIDs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060rawIDs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability_workspace.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eea6f9da4c17ed0430a8bd1b5f30d219465a7bc0b7058ca13f96e1f1bd96cc4"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060raw, _ := json.Marshal([]string{id})\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060raw\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060raw\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060raw\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/vulnerability_workspace.go"},"region":{"startLine":312}}}],"partialFingerprints":{"codehealthFindingId/v1":"0c6c8a5389049013c4fa1ed3342c3366e150c28930d81fd24cebe197624a9543"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := result.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060result.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/webshell.go"},"region":{"startLine":159}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab45abc14e9530251171991e4001d1aa77b0d34853b2984e03e4f7ee6a96d96d"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060affected, _ := result.RowsAffected()\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060affected\u0060 as if the call succeeded. When \u0060result.RowsAffected\u0060 fails, \u0060affected\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060affected\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/webshell.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"d51566567caf27b2582d5391a77a6b0032b395e4f12d2f6a57348e2450dbb081"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060raw, _ := json.Marshal(pending)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060raw\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060raw\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060raw\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/workflow.go"},"region":{"startLine":420}}}],"partialFingerprints":{"codehealthFindingId/v1":"a1416fa22d97de62d0980d6c1d6179abb8014f5d6ed43861558657bd13c1a533"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060graph, _ := json.Marshal(g)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060graph\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060graph\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060graph\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/workflow_package.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"5eefcdbf982af7f355ace594e2d9c8292bc852480e0be0f9e6f4e2af3efce9bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.Marshal(payload)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/workflow_package.go"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"ecd81ce6bc30580315534e0651873ed037c55624361203a83e2a86166456379c"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"325053a5a2b52c7eeefebccdf4841045b4ceef9862b6afdf7bee44aa67a48b43"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.MarshalIndent(out, \u0022\u0022, \u0022 \u0022)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.MarshalIndent\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":2054}}}],"partialFingerprints":{"codehealthFindingId/v1":"244b8ac3af3f8af71db186fd8aa10e5fc98113f7b89bfdbcfd24261d2de04f93"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060serial, _ := rand.Int(rand.Reader, big.NewInt(1\u003C\u003C62))\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060serial\u0060 as if the call succeeded. When \u0060rand.Int\u0060 fails, \u0060serial\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060serial\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_http.go"},"region":{"startLine":539}}}],"partialFingerprints":{"codehealthFindingId/v1":"7dea6db7ba2603425f24c9bddf38543976336e0450eae6f289e9f51fb7b83aa4"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060host, _, _ := net.SplitHostPort(remote)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060host\u0060 as if the call succeeded. When \u0060net.SplitHostPort\u0060 fails, \u0060host\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060host\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_tcp.go"},"region":{"startLine":154}}}],"partialFingerprints":{"codehealthFindingId/v1":"ae251fa0330d2a391eb7ccd49ae7e690bf675e3e628a80d507b72162b48e52f4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_websocket.go"},"region":{"startLine":210}}}],"partialFingerprints":{"codehealthFindingId/v1":"bd915bceafc5ae7af42b44b3ca4c782af1f1c7b1bf25961736091b2da2907e06"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_websocket.go"},"region":{"startLine":270}}}],"partialFingerprints":{"codehealthFindingId/v1":"e887a6bdd2a2ffd411c98a700785914a91c32bf8013441b218f8b96b8f271862"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/listener_websocket.go"},"region":{"startLine":274}}}],"partialFingerprints":{"codehealthFindingId/v1":"10078a08accc92f0288ce1cb4cadc2fd6a7c17b1d51fd9ca41f92e70c999950f"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060activeTasks, _ := m.db.ListC2Tasks(database.ListC2TasksFilter{ SessionID: in.SessionID, Status: string(TaskQueued), })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060activeTasks\u0060 as if the call succeeded. When \u0060m.db.ListC2Tasks\u0060 fails, \u0060activeTasks\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060activeTasks\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/manager.go"},"region":{"startLine":534}}}],"partialFingerprints":{"codehealthFindingId/v1":"2835d6f0c0a017cef9665827e66fa332cb27c25967334843d066480628c6ab76"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060sentTasks, _ := m.db.ListC2Tasks(database.ListC2TasksFilter{ SessionID: in.SessionID, Status: string(TaskSent), })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060sentTasks\u0060 as if the call succeeded. When \u0060m.db.ListC2Tasks\u0060 fails, \u0060sentTasks\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060sentTasks\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/manager.go"},"region":{"startLine":538}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a6fa1d4734beb413f10f09c57bd59953ceab5f42d415dc90d356d7838d65d2c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060payloadBytes, _ := json.Marshal(in.Payload)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060payloadBytes\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060payloadBytes\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060payloadBytes\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/manager.go"},"region":{"startLine":581}}}],"partialFingerprints":{"codehealthFindingId/v1":"9754574f48620dc9771fe62866e0e737c58788d28219952cf3dca5084b1e9728"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060abs, _ := filepath.Abs(b.outputDir)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060abs\u0060 as if the call succeeded. When \u0060filepath.Abs\u0060 fails, \u0060abs\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060abs\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/payload_builder.go"},"region":{"startLine":266}}}],"partialFingerprints":{"codehealthFindingId/v1":"2d032116fd3107f12262a842131d087b37122e532a96fbeedabdf78cc22e9ee3"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/payload_builder.go"},"region":{"startLine":297}}}],"partialFingerprints":{"codehealthFindingId/v1":"286b539be07875dd5ef383b5f8f4732563b2984380157a7d8537ae5049fd5a21"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/payload_builder.go"},"region":{"startLine":305}}}],"partialFingerprints":{"codehealthFindingId/v1":"899c92159cd242f2d2bc5d64c17a17da06436ce29d7574fdae209c6481742143"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(opBytes, \u0026op); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdab89eb024c21d672900fd0d2b2005284059131b57bbb308c579e9f429f2568"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(rawCheck, \u0026req); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":125}}}],"partialFingerprints":{"codehealthFindingId/v1":"fa347b2201924bd1cfe5271f38e17e26f61aad4a4eefda8e36acf948ed979f2e"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060host, _, _ := net.SplitHostPort(conn.RemoteAddr().String())\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060host\u0060 as if the call succeeded. When \u0060net.SplitHostPort\u0060 fails, \u0060host\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060host\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":134}}}],"partialFingerprints":{"codehealthFindingId/v1":"35192a2c006c63930d12bdff36b31816c162db5189e30c8dccf7efd0802c7aae"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":179}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f03daec814a09e9e2de3ecf284dd53687885f3a18bb8b2a7094eb4c9439535e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal(raw, \u0026report); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":193}}}],"partialFingerprints":{"codehealthFindingId/v1":"03db7064f81722a3b2974847940f324b031f5a01b00c941313cfca349a289fcb"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := l.manager.IngestTaskResultFromListener(l.rec.ID, boundSessionID, report); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":199}}}],"partialFingerprints":{"codehealthFindingId/v1":"6a90233f651e9834d5b1907154258b0a7ea3dcfe4f301b7bc0573e48df14cf7b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"545f49c81718cc6b635b1997aee89dcb00dbec3d9944ee995e62e184f187147a"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":221}}}],"partialFingerprints":{"codehealthFindingId/v1":"9a1410add7570f16d9b5c9cd879b107a8af4c682aeaa0e91c3728c3a0528612e"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := os.MkdirAll(dir, 0o755); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":224}}}],"partialFingerprints":{"codehealthFindingId/v1":"c6503e6c6e5303889c71faeb7016be3de3e2d5187fd749488385d8f1ccb4ae20"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := os.WriteFile(dst, plainFile, 0o644); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"17baedb4b0e663c8c1222631762d658737b870525afa8c01c09853dd1ebaeea1"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":248}}}],"partialFingerprints":{"codehealthFindingId/v1":"a77538740292970c2091e791d4b3efd3f33bff770e13d947b4c264c9d17db452"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":256}}}],"partialFingerprints":{"codehealthFindingId/v1":"df2454bbdcfb8b7b28c1b720dbc13713d0e36d0d6a2546853275d55ddaf98d0f"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":268}}}],"partialFingerprints":{"codehealthFindingId/v1":"1638a3c81e3bb8c20172245e8d1e153a40ddff5333c07107367fe46557cf56d0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":272}}}],"partialFingerprints":{"codehealthFindingId/v1":"724f572af7117af4520238358d66c904539eb52d01d0c4ae91f00f03e648d07b"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := writeTCPBeaconFrame(\u0026writeMu, conn, enc); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/c2/tcp_beacon_server.go"},"region":{"startLine":276}}}],"partialFingerprints":{"codehealthFindingId/v1":"9df6b564041477f1b7c683e4a9e161b69e91abe0940f46302a9b7e26bd1b662a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060b, _ := json.Marshal(m)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060b\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060b\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060b\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/audit/sanitize.go"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"cabf0ee5f3693af4e225b97e9e1d23d2a8b4705ee5476825950d9e618fd3019a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060pdHasTools, _ := b.db.ConversationHasToolProcessDetails(conversationID)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060pdHasTools\u0060 as if the call succeeded. When \u0060b.db.ConversationHasToolProcessDetails\u0060 fails, \u0060pdHasTools\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060pdHasTools\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/builder.go"},"region":{"startLine":238}}}],"partialFingerprints":{"codehealthFindingId/v1":"6ec44959005dcf261f04db8039a0a3ac37458ba1ae69c695ad7d596fb38baac6"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060metadataJSON, _ := json.Marshal(node.Metadata)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060metadataJSON\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060metadataJSON\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060metadataJSON\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/builder.go"},"region":{"startLine":831}}}],"partialFingerprints":{"codehealthFindingId/v1":"c44844e74272bec023d9da7e39938d857c94c3f78ee2faaf1f663abeb991d68a"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060incoming, _ := db.ListIncomingProjectFactEdges(projectID, tgtKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060incoming\u0060 as if the call succeeded. When \u0060db.ListIncomingProjectFactEdges\u0060 fails, \u0060incoming\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060incoming\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/promote_project.go"},"region":{"startLine":102}}}],"partialFingerprints":{"codehealthFindingId/v1":"86b6dacc35c2f8a23e72ea28c48bf9e15cb9892b913e1e14b9151f208df0d32b"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060in, _ := db.ListIncomingProjectFactEdges(projectID, tgtKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060in\u0060 as if the call succeeded. When \u0060db.ListIncomingProjectFactEdges\u0060 fails, \u0060in\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060in\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/promote_project.go"},"region":{"startLine":109}}}],"partialFingerprints":{"codehealthFindingId/v1":"88813f63a028157685aae87687aab8b1e175d047d8b29484b2dad6ae7cb5a9bd"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060graph, _ := project.BuildProjectFactGraph(db, projectID, \u0022full\u0022, true)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060graph\u0060 as if the call succeeded. When \u0060project.BuildProjectFactGraph\u0060 fails, \u0060graph\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060graph\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/attackchain/promote_project.go"},"region":{"startLine":115}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ca404474185e4d003c7b09cada78af33558ccb55aa2c3966efec23d4fe02afb"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060parsed, _ := url.Parse(origin)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060parsed\u0060 as if the call succeeded. When \u0060url.Parse\u0060 fails, \u0060parsed\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060parsed\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/app.go"},"region":{"startLine":2310}}}],"partialFingerprints":{"codehealthFindingId/v1":"b31a27b60ddddc6a5d3d6dab02a3c79c970df9fad43fa334b936f95d94726f9c"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060payload, _ := json.Marshal(map[string]interface{}{ \u0022task_id\u0022: req.TaskID, \u0022session_id\u0022: req.SessionID, \u0022task_type\u0022: req.TaskType, \u0022payload\u0022: req.PayloadJSON, \u0022source\u0022: req.Source, \u0022reason\u0022: req.Reason, \u0022c2_operation\u0022: true, })\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060payload\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060payload\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060payload\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_hitl_bridge.go"},"region":{"startLine":60}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ea97494b11133eab26c3bbc57e2450c260632f6a7204801aeb2360071c88fe2"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060text, _ := json.Marshal(data)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060text\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060text\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060text\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_tools.go"},"region":{"startLine":44}}}],"partialFingerprints":{"codehealthFindingId/v1":"4137fd49085a88b67a73016ab132167468643f23dd5eff539d0d27d32aa6b3ec"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060cfgBytes, _ := json.Marshal(cfgRaw)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060cfgBytes\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060cfgBytes\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060cfgBytes\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_tools.go"},"region":{"startLine":116}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c609479f732f85c42bc8e53a4f0582d9ccce01507f5f8d1f8414fbaf272d5f8"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060cfgBytes, _ := json.Marshal(cfgRaw)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060cfgBytes\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060cfgBytes\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060cfgBytes\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/c2_tools.go"},"region":{"startLine":185}}}],"partialFingerprints":{"codehealthFindingId/v1":"471f2ad0e87b46471028418037451beb229461d4b38bbb3ff73463d23fca06cd"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/main_server_http_redirect.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd1a6686845c71c4a69395174f7918918012ea783869b069172bf6c4dd94d011"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060created, _ = db.GetProjectFactByKey(projectID, created.FactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060created\u0060 as if the call succeeded. When \u0060db.GetProjectFactByKey\u0060 fails, \u0060created\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060created\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/project_fact_tools.go"},"region":{"startLine":161}}}],"partialFingerprints":{"codehealthFindingId/v1":"c5ece44dd0548686a88768a198be335ff470bd341bb54fcc48ee7dec4f4b77f6"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060created, _ = db.GetProjectFactByKey(projectID, created.FactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060created\u0060 as if the call succeeded. When \u0060db.GetProjectFactByKey\u0060 fails, \u0060created\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060created\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/project_fact_tools.go"},"region":{"startLine":166}}}],"partialFingerprints":{"codehealthFindingId/v1":"2c8d70791e319f31f85140423d102e154f2a48bb72a4ddc75567590c22539061"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060in, _ := db.ListIncomingProjectFactEdges(projectID, created.FactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060in\u0060 as if the call succeeded. When \u0060db.ListIncomingProjectFactEdges\u0060 fails, \u0060in\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060in\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/project_fact_tools.go"},"region":{"startLine":169}}}],"partialFingerprints":{"codehealthFindingId/v1":"9828baf85f63832eb21a22491b59806fab34c6aab4fde4f723919560967bc909"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060in, _ := db.ListIncomingProjectFactEdges(projectID, f.FactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060in\u0060 as if the call succeeded. When \u0060db.ListIncomingProjectFactEdges\u0060 fails, \u0060in\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060in\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/project_fact_tools.go"},"region":{"startLine":220}}}],"partialFingerprints":{"codehealthFindingId/v1":"45872a56c8113649217a34164067a855691e895db54eada1e7c4e456f4de7748"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060out, _ := db.ListOutgoingProjectFactEdges(projectID, f.FactKey)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060out\u0060 as if the call succeeded. When \u0060db.ListOutgoingProjectFactEdges\u0060 fails, \u0060out\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060out\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/project_fact_tools.go"},"region":{"startLine":227}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c6a1bddd47e0887af8d4f5c76d507f16603e14489282e33b9e68a78ecb9645"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/update_restart_unix.go"},"region":{"startLine":79}}}],"partialFingerprints":{"codehealthFindingId/v1":"64731451b01bc215481f98f80534b69271e98324de3e1a69dadececea6d0c2ca"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/update_restart_unix.go"},"region":{"startLine":83}}}],"partialFingerprints":{"codehealthFindingId/v1":"0b12e8dcda5f94e6903d71c3b1026b2e2f0077258ef4367fdca9c5e08c1a69cf"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/update_restart_unix.go"},"region":{"startLine":88}}}],"partialFingerprints":{"codehealthFindingId/v1":"7d883315e4d16800d53c2b0e504a40245f90520780e3fa15aa42d6a4ea42fc38"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/vulnerability_tools.go"},"region":{"startLine":473}}}],"partialFingerprints":{"codehealthFindingId/v1":"92fdeff3cd557f3271b635f3a632238ac79ab906f7da364751dfcf9398f81326"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agents/markdown.go"},"region":{"startLine":107}}}],"partialFingerprints":{"codehealthFindingId/v1":"57f92d2d654899fc3a8754507168b149bd3ed72c6a765211623fcd5774114435"}},{"ruleId":"X3","level":"warning","message":{"text":"Discarded error (assigned to \u0060_\u0060, then its result used): \u0060body, _ := json.Marshal(call)\u0060 writes the call\u0027s error to \u0060_\u0060 and then uses \u0060body\u0060 as if the call succeeded. When \u0060json.Marshal\u0060 fails, \u0060body\u0060 is its zero value (nil for a pointer, a map or an interface), so the program panics later or goes on with a default it never chose, and nothing records why. Check the error before using \u0060body\u0060 (return it, wrapped with what was being done), or, if the failure genuinely cannot matter, say why in a comment on the line."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentruntime/pi.go"},"region":{"startLine":246}}}],"partialFingerprints":{"codehealthFindingId/v1":"2373512e4990878da95e6d58c7cbc9dabf8a52736c074401d23beff5220adef8"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if _, sourceErr := SourceFingerprint(root); sourceErr != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agentruntime/startup.go"},"region":{"startLine":22}}}],"partialFingerprints":{"codehealthFindingId/v1":"c1e0e90b2ee5eab9f24d0981ee65061ae24195e1521ff78b6c6e5ace1c3b72e5"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(strings.TrimSpace(traceInputJSON)), \u0026raw); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agent/agent_trace.go"},"region":{"startLine":16}}}],"partialFingerprints":{"codehealthFindingId/v1":"cdb2283d39b9456566313b9953033be8f801ac42028fd70325d7c557488807a0"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err := json.Unmarshal([]byte(traceInputJSON), \u0026arr); err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agent/agent_trace.go"},"region":{"startLine":202}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5a5f58dde245fc79cc2b0a9fc173fa5f15a46ce99e29ea88a2cb38b0bb8b2b4"}},{"ruleId":"X3","level":"warning","message":{"text":"Swallowed exception (caught, then discarded): \u0060if err != nil\u0060 takes every exception and records none of it \u2014 the body neither logs it, rethrows it, nor even names it, so the failure is discarded as completely as by an empty catch and only the substituted value survives. Log it through whatever this codebase already uses to report problems, narrow the catch to the exception this call can actually raise, or say in a comment on the catch why the failure genuinely cannot matter."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/agent/agent_trace.go"},"region":{"startLine":230}}}],"partialFingerprints":{"codehealthFindingId/v1":"c56b42ee5b4e58b13484b64c1b6f0314d17cc060de280ed43b4d7d629bdfa13e"}},{"ruleId":"X4","level":"note","message":{"text":"Interpolated log message defeats structured logging: \u0060Info\u0060 at line 170 is handed a message assembled at the call \u2014 \u0060fmt.Sprintf\u0060 with values, or a string concatenated with a value \u2014 so the logger receives one finished string: the values in it cannot be queried, filtered or aggregated as fields, and every occurrence reads as a different message. Pass a constant message and the values as attributes instead: \u0060slog.Info(\u0022order moved\u0022, \u0022order_id\u0022, orderID, \u0022status\u0022, status)\u0060 with log/slog, \u0060logger.Info(\u0022order moved\u0022, zap.String(\u0022order_id\u0022, orderID))\u0060 with zap, \u0060log.WithFields(log.Fields{\u0022order_id\u0022: orderID}).Info(\u0022order moved\u0022)\u0060 with logrus, or \u0060log.Info().Str(\u0022order_id\u0022, orderID).Msg(\u0022order moved\u0022)\u0060 with zerolog."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"cmd/server/main.go"},"region":{"startLine":170}}}],"partialFingerprints":{"codehealthFindingId/v1":"692fa41c18f47c36f2bf5fc4698aa77b6a82c717816cb336cbe24648065c0030"}},{"ruleId":"X5","level":"note","message":{"text":"Null assertions (\u0060!\u0060) override strict null checking: ~4.3 \u0060!\u0060 null assertions per 1k TypeScript source lines \u2014 2 assertion(s) across the 462 source line(s) of the 4 TypeScript file(s) read, which is the only code the operator asserts anything in (a \u0060!\u0060 in a \u0060.js\u0060 file is not this operator and was not counted, and one in a file whose null checking is off silences nothing). Densest: runtime/pi/src/worker.ts (2). Each one tells the compiler to trust the author about null, suppressing the very diagnostic \u0060strictNullChecks\u0060 exists to produce. Many are correct: each is a claim the checker could not verify, and it is wrong only where the value can in fact be missing, so review the densest places first."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"1d83a7c69636a6290f63000d5c19b2073be1fa772f51977532af9ca6f745fc2a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060portFromListenAddr\u0060 turns a non-nil \u0060err\u0060 into \u0060return 443\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/app/main_server_http_redirect.go"},"region":{"startLine":90}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a5877b49916c334e69b8dd678aece914f2252b363dd514da5d96447f42e9951"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060normalizedURLHost\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/config/config.go"},"region":{"startLine":908}}}],"partialFingerprints":{"codehealthFindingId/v1":"43a5b31d10507458549a3a8888730126e737f15489998d6060467c34344b9a00"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060GetResourceOwner\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/database/rbac.go"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"aad6f188afd901f8fa0cf1d782367fba8ea05a0ecd4336ec5399d5570a58c31f"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060messageFromRawObject\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/fofa.go"},"region":{"startLine":933}}}],"partialFingerprints":{"codehealthFindingId/v1":"3964ef759ef067d437c3e3b6e2c1923dcb0a1d9d0e3fbb7723f1c3941c433532"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060stringifyHitlJSON\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/hitl_audit_backend.go"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd00f9c23e7d597d21a65c423ec756048f1cf024f355475e4a36d2d03ab568cc"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060conversationProjectID\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/project_context.go"},"region":{"startLine":81}}}],"partialFingerprints":{"codehealthFindingId/v1":"e4a4c8b5423a5867c50d5c577d3e06a99d21048a9abef3005250091d22b5b2da"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmdProjects\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u5F53\u524D\u5E73\u53F0\u8D26\u53F7\u5C1A\u672A\u7ED1\u5B9A\u3002\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":576}}}],"partialFingerprints":{"codehealthFindingId/v1":"3c52ec7c9d51161b88df3e0df538d505f501152de96ad2a258c4767a5960494c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmdNewProject\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u5F53\u524D\u5E73\u53F0\u8D26\u53F7\u5C1A\u672A\u7ED1\u5B9A\u3002\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":633}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab2f55b514986e769cb49c44de7ff8e0d1c4b40407548bc754443742aed5c3c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmdUnbindProject\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u5F53\u524D\u5E73\u53F0\u8D26\u53F7\u5C1A\u672A\u7ED1\u5B9A\u3002\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":666}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cd565a6f08647a916f59420507204df2a656bb7caa0782fb7f0fc75cda263ff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmdList\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u5F53\u524D\u5E73\u53F0\u8D26\u53F7\u5C1A\u672A\u7ED1\u5B9A\u3002\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":690}}}],"partialFingerprints":{"codehealthFindingId/v1":"9d10585115314145ccf9f43d77d88a18db2b0fbeca75489397534ae2e8022c4b"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmdSwitch\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u5F53\u524D\u5E73\u53F0\u8D26\u53F7\u5C1A\u672A\u7ED1\u5B9A\u3002\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":717}}}],"partialFingerprints":{"codehealthFindingId/v1":"515f8a2c3aad88256e2e36618f53edb17faf3dd6d3e003e00a195ff71ccfa915"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmdStatus\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u5F53\u524D\u5E73\u53F0\u8D26\u53F7\u5C1A\u672A\u7ED1\u5B9A\u3002\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":765}}}],"partialFingerprints":{"codehealthFindingId/v1":"2966972ac5117be05cdd5859150742445cb5b0b3d6e2b9a70314acf9f11e34ba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmdDelete\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u5F53\u524D\u5E73\u53F0\u8D26\u53F7\u5C1A\u672A\u7ED1\u5B9A\u3002\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":999}}}],"partialFingerprints":{"codehealthFindingId/v1":"48ecb07eee416ad08aa7e992be9ec9aee1a2b610c34dbc849bb496e07ce64a9a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmdBindUser\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u7ED1\u5B9A\u5931\u8D25\uFF1A\u7ED1\u5B9A\u7801\u65E0\u6548\u3001\u5DF2\u4F7F\u7528\u6216\u5DF2\u8FC7\u671F\u3002\u8BF7\u5728\u7F51\u9875\u7AEF\u91CD\u65B0\u751F\u6210\u3002\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/robot.go"},"region":{"startLine":1140}}}],"partialFingerprints":{"codehealthFindingId/v1":"10effe2f26a114ded8e16dc48f4c8dc926decb0ae3d201711b915118c7cd4928"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060cmdVulnerabilityAlerts\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u8BFB\u53D6\u6F0F\u6D1E\u63D0\u9192\u8BBE\u7F6E\u5931\u8D25\uFF0C\u8BF7\u7A0D\u540E\u91CD\u8BD5\u3002\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/handler/vulnerability_alert.go"},"region":{"startLine":176}}}],"partialFingerprints":{"codehealthFindingId/v1":"f1436caacae6b1c957ce7f1d23f9f52a1071409628631dfae69fa1053b70c2f8"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060AggregatedReasoningFromTraceJSON\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/reasoning_trace.go"},"region":{"startLine":19}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d31bc8c3c7b870a78205dfb3152fe0bfd6e63806aeefb76162cc1e56ffe2b58"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060HitlRejectToolResult\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0060{\u0022selectedTools\u0022:[],\u0022_hitlRejected\u0022:true,\u0022reason\u0022:\u0022tool_search rejected by reviewer\u0022}\u0060\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/multiagent/tool_metadata.go"},"region":{"startLine":85}}}],"partialFingerprints":{"codehealthFindingId/v1":"599f534e13695cda14014f667511f6e5adf5b98a8230a23cacd2f4f1d4eaf7ff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060resumeFactBody\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/project/resume.go"},"region":{"startLine":114}}}],"partialFingerprints":{"codehealthFindingId/v1":"f34d241863b477d56a23f7e1e497886cd36d2fc9b341f69a1e112fcf745424ba"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060pruneEmptyDirs\u0060 turns a non-nil \u0060err\u0060 into \u0060return 0\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/category.go"},"region":{"startLine":396}}}],"partialFingerprints":{"codehealthFindingId/v1":"4ec857fc47d3fbd62870df4c9f3cfc499bc081201ec924ea2dec5906f6615351"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060rootOf\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/storage/cleaner.go"},"region":{"startLine":173}}}],"partialFingerprints":{"codehealthFindingId/v1":"5d7c4ac92ee6baff2b8438d396f37a7076193c795ddf99a8685189fe92767cd2"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060StampBinary\u0060 turns a non-nil \u0060err\u0060 into \u0060return BinaryStamp{}\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/binary.go"},"region":{"startLine":24}}}],"partialFingerprints":{"codehealthFindingId/v1":"5baf418d3683e72707b78ae2227ef03ef8db80eb9027e77fb58ea23b721bb9ca"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060binaryRevision\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/build.go"},"region":{"startLine":130}}}],"partialFingerprints":{"codehealthFindingId/v1":"7fa0479951246e4439ac07cff18289a736df81839a15dbab2694448e694cd349"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060installVersion\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/update/version.go"},"region":{"startLine":35}}}],"partialFingerprints":{"codehealthFindingId/v1":"e79102841fb5269f9d47d632196562d7c86b79bc9545dc5e8c21ebe6f1b3de16"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default on error: \u0060normalizeAbsPath\u0060 turns a non-nil \u0060err\u0060 into \u0060return \u0022\u0022\u0060 \u2014 a failure becomes a plausible value and a silent behavior change with no trail. Log the error or return it. 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 \u0060if\u0060 or in the doc comment, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/vision/path.go"},"region":{"startLine":65}}}],"partialFingerprints":{"codehealthFindingId/v1":"ef3a8b5cb580db7db8536ae81c73486a4a93e595e2738367319947e59d05099a"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getAssetPageSize\u0060 swallows every exception into \u0060return 20\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":"web/static/js/assets.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"686a48afb7a776787be2e3f8e976a2854078af70f528e378ae7268a5be9efd9c"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readAssetSavedViews\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/assets.js"},"region":{"startLine":657}}}],"partialFingerprints":{"codehealthFindingId/v1":"0a311e2693d648cc200e01e387f16ec66bce814f9bed87a1b548f290b7319a07"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060assetEditorNormalizeDomain\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":"web/static/js/assets.js"},"region":{"startLine":1388}}}],"partialFingerprints":{"codehealthFindingId/v1":"22afac151bd3688d6fee14bcc400cf44365b6c833a8b022725cf3d6676321520"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060auditTimezoneShortLabel\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":"web/static/js/audit.js"},"region":{"startLine":108}}}],"partialFingerprints":{"codehealthFindingId/v1":"fc7f72adc0ce671be68d36e9583a24184171a7db6b50af15e083871fd5b02635"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060activeC2ProjectId\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":"web/static/js/c2.js"},"region":{"startLine":55}}}],"partialFingerprints":{"codehealthFindingId/v1":"784973be2dcda13ce65a8183e0be1c58b051124eedc74c3b4ae2cee5a75ae6fa"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060c2ProjectNameMap\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":73}}}],"partialFingerprints":{"codehealthFindingId/v1":"c0358efeec3f91ba1ed949e840cd7ccf431df6dbcdd42d9c7a2b71be10598c44"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060formatTaskCommand\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":"web/static/js/c2.js"},"region":{"startLine":404}}}],"partialFingerprints":{"codehealthFindingId/v1":"f3ad564d3c97c741544f2faae683af50e29d44ad8fb645ca1fba3b990bcde8dd"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060C2.getListenerCallbackHost\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":"web/static/js/c2.js"},"region":{"startLine":987}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f6469e849d6c76344c1c22686d7b9c872f4b227806e90ef24121176589d4d51"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060C2.getListenerConfig\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/c2.js"},"region":{"startLine":997}}}],"partialFingerprints":{"codehealthFindingId/v1":"cac0f7d30521aa03a9853f126c096a50610e099d54fa32657209a3e6ba102eff"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060chatFilesFolderNameFromRow\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":"web/static/js/chat-files.js"},"region":{"startLine":1350}}}],"partialFingerprints":{"codehealthFindingId/v1":"43231f247bc142b65d34ee0857c5b416e6bc81cbf7d139f945f85fdc22faef29"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readConversationAgentModePreference\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":"web/static/js/chat.js"},"region":{"startLine":842}}}],"partialFingerprints":{"codehealthFindingId/v1":"96954c580c0ed0f2d2f913f6ed982cb52361b3bfd93161429c72ad9b6f7df454"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getPendingMcpExecutionCount\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it 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":"web/static/js/chat.js"},"region":{"startLine":4695}}}],"partialFingerprints":{"codehealthFindingId/v1":"07395a13f05db494e518c85c67edc6652aae563c93d3236877f678077cfe73a9"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getPendingToolExecutionSummaryCount\u0060 swallows every exception into \u0060return 0\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it 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":"web/static/js/chat.js"},"region":{"startLine":4709}}}],"partialFingerprints":{"codehealthFindingId/v1":"de4966d5a1884872740ec9ff5259275a720d2f614e7db04cbbc62eedd5adf1a3"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getConversationProjectFilter\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":"web/static/js/chat.js"},"region":{"startLine":9517}}}],"partialFingerprints":{"codehealthFindingId/v1":"53519f652707cd4b63c0881e0aeffba4522894f1782652de8e4f90d74212fc19"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readDashboardSeverityStatusFilterFromStorage\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":"web/static/js/dashboard.js"},"region":{"startLine":1771}}}],"partialFingerprints":{"codehealthFindingId/v1":"e27c83530f4e77ea5fb7af379b9e03301ed570611bec98fd37411f01aeade832"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060hitlParsePayloadObject\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/hitl.js"},"region":{"startLine":13}}}],"partialFingerprints":{"codehealthFindingId/v1":"72a35fd0c92c12422900f2ac0838728e4a301de4fecd91ceb87fb058fcc308ec"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060loadHiddenFieldsFromStorage\u0060 swallows every exception into \u0060return []\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/info-collect.js"},"region":{"startLine":217}}}],"partialFingerprints":{"codehealthFindingId/v1":"68ad644eb24a38e9fc48a9c8ea258e0b03b0c1b5da83d3ecba81967f5f67c6e6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060parseWorkflowHitlPendingJSON\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/monitor.js"},"region":{"startLine":5180}}}],"partialFingerprints":{"codehealthFindingId/v1":"5687c0965dcc0d129413fdedc4f372cd0d562c5f2c7c02a6262571b4dc5a6472"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060getActiveProjectId\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":"web/static/js/projects.js"},"region":{"startLine":374}}}],"partialFingerprints":{"codehealthFindingId/v1":"582bd8ad7b04aa71d3e2c04f10fb78af9d34434d64d1c4e31a0e9be30de53039"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readProjectFolderCompletionSeen\u0060 swallows every exception into \u0060return {}\u0060 \u2014 a data error becomes a silent behavior change with no trail. Log the failure or let it raise. If that constant is the correct answer rather than a stand-in for a value that could not be read, say so in a comment on the handler or in the docstring, and the row stops firing."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"web/static/js/projects.js"},"region":{"startLine":2612}}}],"partialFingerprints":{"codehealthFindingId/v1":"a854f30f595e83aa4b6107576b8a4e277bb6fa7eb14b623cda28f0bbe09807c6"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060aiChannelBaseURLHost\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":"web/static/js/settings.js"},"region":{"startLine":2566}}}],"partialFingerprints":{"codehealthFindingId/v1":"209830014c2c592a496d3f2433758366bec94e16b498bb5a891f6b450a5c3c55"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060readPreference\u0060 swallows every exception into \u0060return \u0027system\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":"web/static/js/theme.js"},"region":{"startLine":50}}}],"partialFingerprints":{"codehealthFindingId/v1":"3fdd168d55cec3065a0031b1fee126df33bbdd2d9aed853ca071a4bd0e46bb60"}},{"ruleId":"X7","level":"note","message":{"text":"Silent fallback default in catch: \u0060workflowPackageStorageGet\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":"web/static/js/workflows.js"},"region":{"startLine":2533}}}],"partialFingerprints":{"codehealthFindingId/v1":"86e8fdd1fb2b323532198d0a4f8771329b81b38b06585fce7f410d653764e216"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060strings.Contains(lower, \u00222\u003E/dev/null\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060strings.Contains(lower, \u00222\u003E/dev/null\u0022)\u0060 also satisfies \u0060strings.Contains(lower, \u0022\u003E/dev/null\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/shell_background_io.go"},"region":{"startLine":72}}}],"partialFingerprints":{"codehealthFindingId/v1":"7bc973823142d6bbeb68d59fe2f41f6d190f6f47c8c209d1b577a98c24804c9a"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060strings.Contains(lower, \u0022\u0026\u003E\u003E\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060strings.Contains(lower, \u0022\u0026\u003E\u003E\u0022)\u0060 also satisfies \u0060strings.Contains(lower, \u0022\u0026\u003E\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/shell_background_io.go"},"region":{"startLine":75}}}],"partialFingerprints":{"codehealthFindingId/v1":"cd8383382a86c07e7a211c2f5ebfd09567d1736251b5f53de3579df32210f12c"}},{"ruleId":"X9","level":"note","message":{"text":"Subsumed condition operand: \u0060strings.Contains(lower, \u00220\u003C/dev/null\u0022)\u0060 can never decide this \u0060||\u0060 \u2014 every value satisfying \u0060strings.Contains(lower, \u00220\u003C/dev/null\u0022)\u0060 also satisfies \u0060strings.Contains(lower, \u0022\u003C/dev/null\u0022)\u0060, so the \u0060||\u0060 chain is already decided by the latter. The expression is equivalent to the chain without it, which means it is wider than it reads. Delete the dead operand, or narrow the surviving one if IT is the accident."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"internal/security/shell_noninteractive.go"},"region":{"startLine":113}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd44482dd2dbde0f3b11bc762122cba2d510c7a94c7aba5646281b1ee538b555"}}],"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-1059","guid":"a2381a08-60f6-9554-a8b8-f3018cfaaca5","name":"Insufficient Technical Documentation","shortDescription":{"text":"Insufficient Technical Documentation"},"helpUri":"https://cwe.mitre.org/data/definitions/1059.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-200","guid":"b0ce3b1d-7a29-fe50-8aab-9aba899d2988","name":"Exposure of Sensitive Information to an Unauthorized Actor","shortDescription":{"text":"Exposure of Sensitive Information to an Unauthorized Actor"},"helpUri":"https://cwe.mitre.org/data/definitions/200.html"},{"id":"CWE-242","guid":"5c147e5c-be37-b051-9928-764ef5a8f3d3","name":"CWE-242","shortDescription":{"text":"CWE-242"},"helpUri":"https://cwe.mitre.org/data/definitions/242.html"},{"id":"CWE-248","guid":"64b58946-d244-a556-a48a-f82fcd4f4186","name":"Uncaught Exception","shortDescription":{"text":"Uncaught Exception"},"helpUri":"https://cwe.mitre.org/data/definitions/248.html"},{"id":"CWE-252","guid":"78915dc5-e486-f858-bc3c-aa570ad9010d","name":"Unchecked Return Value","shortDescription":{"text":"Unchecked Return Value"},"helpUri":"https://cwe.mitre.org/data/definitions/252.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-295","guid":"a706c4e2-1232-8859-ae2e-17aa2d41f8e2","name":"Improper Certificate Validation","shortDescription":{"text":"Improper Certificate Validation"},"helpUri":"https://cwe.mitre.org/data/definitions/295.html"},{"id":"CWE-319","guid":"7af97476-9f0d-4458-9163-3d2043918a1a","name":"Cleartext Transmission of Sensitive Information","shortDescription":{"text":"Cleartext Transmission of Sensitive Information"},"helpUri":"https://cwe.mitre.org/data/definitions/319.html"},{"id":"CWE-327","guid":"e51910ff-67b5-3c51-aa3d-92837d9eab90","name":"Use of a Broken or Risky Cryptographic Algorithm","shortDescription":{"text":"Use of a Broken or Risky Cryptographic Algorithm"},"helpUri":"https://cwe.mitre.org/data/definitions/327.html"},{"id":"CWE-328","guid":"f0ffc869-97c3-dc5c-8825-be1159f1fc5f","name":"Reversible One-Way Hash","shortDescription":{"text":"Reversible One-Way Hash"},"helpUri":"https://cwe.mitre.org/data/definitions/328.html"},{"id":"CWE-330","guid":"f811ddf9-2e54-865b-9c76-f97905849790","name":"Use of Insufficiently Random Values","shortDescription":{"text":"Use of Insufficiently Random Values"},"helpUri":"https://cwe.mitre.org/data/definitions/330.html"},{"id":"CWE-338","guid":"e89b7604-c3f7-8b53-bc8c-4d4718c28617","name":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)","shortDescription":{"text":"Use of Cryptographically Weak Pseudo-Random Number Generator(PRNG)"},"helpUri":"https://cwe.mitre.org/data/definitions/338.html"},{"id":"CWE-352","guid":"2afe7bdb-7330-195f-b3bf-8cf5b789b3ae","name":"Cross-Site Request Forgery (CSRF)","shortDescription":{"text":"Cross-Site Request Forgery (CSRF)"},"helpUri":"https://cwe.mitre.org/data/definitions/352.html"},{"id":"CWE-353","guid":"09d7e902-d4ee-f05d-ae6c-0a1554d0c18f","name":"Missing Support for Integrity Check","shortDescription":{"text":"Missing Support for Integrity Check"},"helpUri":"https://cwe.mitre.org/data/definitions/353.html"},{"id":"CWE-362","guid":"03d7a26a-06e8-e553-88a3-4b67b48b4a85","name":"Concurrent Execution using Shared Resource with Improper Synchronization (\u0027Race Condition\u0027)","shortDescription":{"text":"Concurrent Execution using Shared Resource with Improper Synchronization (\u0027Race Condition\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/362.html"},{"id":"CWE-391","guid":"d9ef5687-8d79-9b51-b509-b83411fbcdc3","name":"Unchecked Error Condition","shortDescription":{"text":"Unchecked Error Condition"},"helpUri":"https://cwe.mitre.org/data/definitions/391.html"},{"id":"CWE-400","guid":"ca529a89-676d-8857-aac1-84359c77bb6c","name":"CWE-400","shortDescription":{"text":"CWE-400"},"helpUri":"https://cwe.mitre.org/data/definitions/400.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-502","guid":"f7d3b296-aac0-5c5a-b706-e07faba26c36","name":"Deserialization of Untrusted Data","shortDescription":{"text":"Deserialization of Untrusted Data"},"helpUri":"https://cwe.mitre.org/data/definitions/502.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-567","guid":"589a5096-54af-2651-9204-ebd9e0bda8a5","name":"CWE-567","shortDescription":{"text":"CWE-567"},"helpUri":"https://cwe.mitre.org/data/definitions/567.html"},{"id":"CWE-703","guid":"fa730aa9-95e4-845e-83fa-8169f2cf339e","name":"Improper Check or Handling of Exceptional Conditions","shortDescription":{"text":"Improper Check or Handling of Exceptional Conditions"},"helpUri":"https://cwe.mitre.org/data/definitions/703.html"},{"id":"CWE-704","guid":"50bd74b4-a921-5159-8671-99fd7e78c810","name":"CWE-704","shortDescription":{"text":"CWE-704"},"helpUri":"https://cwe.mitre.org/data/definitions/704.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-918","guid":"2e9b9091-5a0f-dc57-b644-7ad04bd56e64","name":"Server-Side Request Forgery (SSRF)","shortDescription":{"text":"Server-Side Request Forgery (SSRF)"},"helpUri":"https://cwe.mitre.org/data/definitions/918.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"A01:2025","guid":"df693558-c822-0452-8f7b-4d53cb6bcc59","name":"Broken Access Control","shortDescription":{"text":"Broken Access Control"},"helpUri":"https://top10.owasp.org/2025/A01_2025-Broken_Access_Control/"},{"id":"A02:2025","guid":"668dee9e-41bc-6354-97d0-fdf8f40c50c1","name":"Security Misconfiguration","shortDescription":{"text":"Security Misconfiguration"},"helpUri":"https://top10.owasp.org/2025/A02_2025-Security_Misconfiguration/"},{"id":"A03:2025","guid":"168e227c-7735-2e57-bc6e-997affe644c5","name":"Software Supply Chain Failures","shortDescription":{"text":"Software Supply Chain Failures"},"helpUri":"https://top10.owasp.org/2025/A03_2025-Software_Supply_Chain_Failures/"},{"id":"A04:2025","guid":"6a9f5bfd-1a56-6453-beec-a7eff0ba3007","name":"Cryptographic Failures","shortDescription":{"text":"Cryptographic Failures"},"helpUri":"https://top10.owasp.org/2025/A04_2025-Cryptographic_Failures/"},{"id":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A06:2025","guid":"491554d7-b8e4-9652-91a9-53700dc92ece","name":"Insecure Design","shortDescription":{"text":"Insecure Design"},"helpUri":"https://top10.owasp.org/2025/A06_2025-Insecure_Design/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"},{"id":"A10:2025","guid":"9ca3ab55-ca61-fd5e-b9ab-3dad2efa59d0","name":"Mishandling of Exceptional Conditions","shortDescription":{"text":"Mishandling of Exceptional Conditions"},"helpUri":"https://top10.owasp.org/2025/A10_2025-Mishandling_of_Exceptional_Conditions/"}]},{"name":"OWASP Top 10 CI/CD Security Risks","guid":"3c9b2a6e-5d14-4f7b-8e02-6a1d9c4b7f35","organization":"OWASP Foundation","informationUri":"https://owasp.org/www-project-top-10-ci-cd-security-risks/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10 CI/CD Security Risks."},"taxa":[{"id":"CICD-SEC-3","guid":"458c83a6-ebf7-cf55-8cc3-b4d949bbf271","name":"Dependency Chain Abuse","shortDescription":{"text":"Dependency Chain Abuse"},"helpUri":"https://owasp.github.io/www-project-top-10-ci-cd-security-risks/CICD-SEC-03-Dependency-Chain-Abuse"}]}],"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":106,"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."]}]}