{"$schema":"https://json.schemastore.org/sarif-2.1.0.json","version":"2.1.0","runs":[{"tool":{"driver":{"name":"codehealth","informationUri":"https://codehealth.canine.dev","rules":[{"id":"D1","name":"Cyclomatic Complexity","shortDescription":{"text":"Cyclomatic Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D1"},{"id":"D2","name":"Cognitive Complexity","shortDescription":{"text":"Cognitive Complexity"},"helpUri":"https://codehealth.canine.dev/dimensions/D2"},{"id":"D3","name":"God Classes","shortDescription":{"text":"God Classes"},"helpUri":"https://codehealth.canine.dev/dimensions/D3"},{"id":"D4","name":"Code Duplication","shortDescription":{"text":"Code Duplication"},"helpUri":"https://codehealth.canine.dev/dimensions/D4"},{"id":"D6","name":"Cohesion (LCOM4)","shortDescription":{"text":"Cohesion (LCOM4)"},"helpUri":"https://codehealth.canine.dev/dimensions/D6"},{"id":"D10","name":"Test Quality","shortDescription":{"text":"Test Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D10"},{"id":"D12","name":"Dependency Hygiene","shortDescription":{"text":"Dependency Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/D12"},{"id":"D13","name":"Secret Scanning","shortDescription":{"text":"Secret Scanning"},"helpUri":"https://codehealth.canine.dev/dimensions/D13","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"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":"D19","name":"Documentation Quality","shortDescription":{"text":"Documentation Quality"},"helpUri":"https://codehealth.canine.dev/dimensions/D19"},{"id":"D24","name":"Comment Value","shortDescription":{"text":"Comment Value"},"helpUri":"https://codehealth.canine.dev/dimensions/D24"},{"id":"D27","name":"Navigability","shortDescription":{"text":"Navigability"},"helpUri":"https://codehealth.canine.dev/dimensions/D27"},{"id":"D28","name":"Secrets (history)","shortDescription":{"text":"Secrets (history)"},"helpUri":"https://codehealth.canine.dev/dimensions/D28","relationships":[{"target":{"id":"CWE-798","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-259","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A07:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-798","CWE-259"],"owasp":"A07:2025"}},{"id":"D29","name":"Static Analysis (SAST)","shortDescription":{"text":"Static Analysis (SAST)"},"helpUri":"https://codehealth.canine.dev/dimensions/D29","relationships":[{"target":{"id":"CWE-79","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-89","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-78","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-94","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-77","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A05:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-79","CWE-89","CWE-78","CWE-94","CWE-77"],"owasp":"A05:2025"}},{"id":"D30","name":"Dependency Vulnerabilities","shortDescription":{"text":"Dependency Vulnerabilities"},"helpUri":"https://codehealth.canine.dev/dimensions/D30","relationships":[{"target":{"id":"CWE-1395","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"CWE-937","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A03:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-1395","CWE-937"],"owasp":"A03:2025"}},{"id":"D34","name":"Knowledge Freshness","shortDescription":{"text":"Knowledge Freshness"},"helpUri":"https://codehealth.canine.dev/dimensions/D34"},{"id":"D35","name":"Change Coupling","shortDescription":{"text":"Change Coupling"},"helpUri":"https://codehealth.canine.dev/dimensions/D35"},{"id":"D43","name":"Malicious Dependencies","shortDescription":{"text":"Malicious Dependencies"},"helpUri":"https://codehealth.canine.dev/dimensions/D43","relationships":[{"target":{"id":"CWE-506","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},"kinds":["relevant"]},{"target":{"id":"A08:2025","toolComponent":{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61"}},"kinds":["relevant"]}],"properties":{"cwe":["CWE-506"],"owasp":"A08:2025"}},{"id":"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":"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":"AX3","name":"Project dependency cycles","shortDescription":{"text":"Project dependency cycles"},"helpUri":"https://codehealth.canine.dev/dimensions/AX3"},{"id":"AX4","name":"Dependency direction","shortDescription":{"text":"Dependency direction"},"helpUri":"https://codehealth.canine.dev/dimensions/AX4"},{"id":"ED5","name":"Idempotency","shortDescription":{"text":"Idempotency"},"helpUri":"https://codehealth.canine.dev/dimensions/ED5"},{"id":"GD1","name":"Unfinished \u0026 placeholder code","shortDescription":{"text":"Unfinished \u0026 placeholder code"},"helpUri":"https://codehealth.canine.dev/dimensions/GD1"},{"id":"IC1","name":"Incompleteness \u0026 stubs","shortDescription":{"text":"Incompleteness \u0026 stubs"},"helpUri":"https://codehealth.canine.dev/dimensions/IC1"},{"id":"M1","name":"Documentation (README)","shortDescription":{"text":"Documentation (README)"},"helpUri":"https://codehealth.canine.dev/dimensions/M1"},{"id":"M2","name":"Architecture documentation","shortDescription":{"text":"Architecture documentation"},"helpUri":"https://codehealth.canine.dev/dimensions/M2"},{"id":"M3","name":"Folder \u0026 project structure","shortDescription":{"text":"Folder \u0026 project structure"},"helpUri":"https://codehealth.canine.dev/dimensions/M3"},{"id":"P1","name":"CI/CD gates","shortDescription":{"text":"CI/CD gates"},"helpUri":"https://codehealth.canine.dev/dimensions/P1"},{"id":"P3","name":"Security \u0026 performance tooling","shortDescription":{"text":"Security \u0026 performance tooling"},"helpUri":"https://codehealth.canine.dev/dimensions/P3"},{"id":"P6","name":"Release Hygiene","shortDescription":{"text":"Release Hygiene"},"helpUri":"https://codehealth.canine.dev/dimensions/P6"},{"id":"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":"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":"X1","name":"Async correctness","shortDescription":{"text":"Async correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X1"},{"id":"X10","name":"Duplicated predicate","shortDescription":{"text":"Duplicated predicate"},"helpUri":"https://codehealth.canine.dev/dimensions/X10"},{"id":"X12","name":"Unreachable branch","shortDescription":{"text":"Unreachable branch"},"helpUri":"https://codehealth.canine.dev/dimensions/X12"},{"id":"X13","name":"Undrained process stream","shortDescription":{"text":"Undrained process stream"},"helpUri":"https://codehealth.canine.dev/dimensions/X13"},{"id":"X14","name":"Bypassable address classification","shortDescription":{"text":"Bypassable address classification"},"helpUri":"https://codehealth.canine.dev/dimensions/X14"},{"id":"X15","name":"Unvalidated length from an untrusted reader","shortDescription":{"text":"Unvalidated length from an untrusted reader"},"helpUri":"https://codehealth.canine.dev/dimensions/X15"},{"id":"X16","name":"Unfloored truncation loop","shortDescription":{"text":"Unfloored truncation loop"},"helpUri":"https://codehealth.canine.dev/dimensions/X16"},{"id":"X17","name":"Uncapped recursion over a caller-supplied document","shortDescription":{"text":"Uncapped recursion over a caller-supplied document"},"helpUri":"https://codehealth.canine.dev/dimensions/X17"},{"id":"X18","name":"Disposal-pattern correctness","shortDescription":{"text":"Disposal-pattern correctness"},"helpUri":"https://codehealth.canine.dev/dimensions/X18"},{"id":"X19","name":"Unrestored process-global state","shortDescription":{"text":"Unrestored process-global state"},"helpUri":"https://codehealth.canine.dev/dimensions/X19"},{"id":"X20","name":"Mistyped argument guard","shortDescription":{"text":"Mistyped argument guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X20"},{"id":"X21","name":"Side-effecting pattern guard","shortDescription":{"text":"Side-effecting pattern guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X21"},{"id":"X22","name":"Contradicted release guard","shortDescription":{"text":"Contradicted release guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X22"},{"id":"X23","name":"Unguarded diagnostic materialisation","shortDescription":{"text":"Unguarded diagnostic materialisation"},"helpUri":"https://codehealth.canine.dev/dimensions/X23"},{"id":"X24","name":"Document value interpolated into markup unescaped","shortDescription":{"text":"Document value interpolated into markup unescaped"},"helpUri":"https://codehealth.canine.dev/dimensions/X24"},{"id":"X25","name":"Inert configuration knob","shortDescription":{"text":"Inert configuration knob"},"helpUri":"https://codehealth.canine.dev/dimensions/X25"},{"id":"X26","name":"Unsynchronised callback handoff","shortDescription":{"text":"Unsynchronised callback handoff"},"helpUri":"https://codehealth.canine.dev/dimensions/X26"},{"id":"X27","name":"Collection changed while being enumerated","shortDescription":{"text":"Collection changed while being enumerated"},"helpUri":"https://codehealth.canine.dev/dimensions/X27"},{"id":"X28","name":"Index access outside its own emptiness guard","shortDescription":{"text":"Index access outside its own emptiness guard"},"helpUri":"https://codehealth.canine.dev/dimensions/X28"},{"id":"X29","name":"Per-element action decided by a fixed element","shortDescription":{"text":"Per-element action decided by a fixed element"},"helpUri":"https://codehealth.canine.dev/dimensions/X29"},{"id":"X3","name":"Exception handling","shortDescription":{"text":"Exception handling"},"helpUri":"https://codehealth.canine.dev/dimensions/X3"},{"id":"X30","name":"Support guard that admits what it rejects","shortDescription":{"text":"Support guard that admits what it rejects"},"helpUri":"https://codehealth.canine.dev/dimensions/X30"},{"id":"X32","name":"Type resolved by simple name across every loaded assembly","shortDescription":{"text":"Type resolved by simple name across every loaded assembly"},"helpUri":"https://codehealth.canine.dev/dimensions/X32"},{"id":"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":"(anonymous) (cyclomatic 73): (anonymous) has cyclomatic complexity 73 (threshold 15). Most of this is not in the body itself: 2 of the 73 points are its own statements and the rest belongs to 22 function items inside it that branch (markdownHere, makeStylesExplicit, getOperationalRange, \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":"src/common/markdown-here.js"},"region":{"startLine":38}}}],"partialFingerprints":{"codehealthFindingId/v1":"85fa1181309d0437087df344a1f7668223271224cdd9475a073aeafb7b790f42"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 60): (anonymous) has cyclomatic complexity 60 (threshold 15). Most of this is not in the body itself: 2 of the 60 points are its own statements and the rest belongs to 29 function items inside it that branch (showHTMLForgotToRenderPrompt::(anonymous)::keyboardCaptureHandler, probablyWritingMarkdown, setupForgotToRenderInterceptors::sendHotkeyKeydownListener, \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":"src/common/common-logic.js"},"region":{"startLine":14}}}],"partialFingerprints":{"codehealthFindingId/v1":"c12677002b09ec1f5d4da2ea96c5004f9cabf1dee345a953c2fefbdf755f9ac1"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::token (cyclomatic 51): (anonymous)::token 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":"src/common/marked.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"58a88ca56cf0746b4e1688183828216e5f74ac23e701432f2a458b65dda2fd8f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 44): (anonymous) has cyclomatic complexity 44 (threshold 15). Most of this is not in the body itself: 1 of the 44 points is its own statement and the rest belongs to 21 function items inside it that branch (a function literal at line 238, a function literal at line 53, a function literal at line 87, \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":"src/common/options-store.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"b8ec57b96fc632b1b401c6351d884a9ce704d6a00e2f6dd6da1dde636b90409d"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::output (cyclomatic 31): (anonymous)::output 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":"src/common/marked.js"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"38683d346080e6fce024e2aced2b4ccc81120b1e278a6715942fc7258250b006"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 24): (anonymous) has cyclomatic complexity 24 (threshold 15). Most of this is not in the body itself: 2 of the 24 points are its own statements and the rest belongs to 9 function items inside it that branch (excludeTagBlocks, _preprocess, convertHTMLtoMarkdown, \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":"src/common/mdh-html-to-text.js"},"region":{"startLine":11}}}],"partialFingerprints":{"codehealthFindingId/v1":"61152e5deaa64fab7f7f17ca1f81301c06f7a61b7405848dadb0b68e7d39b8b1"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::tok (cyclomatic 23): (anonymous)::tok has cyclomatic complexity 23 (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":"src/common/marked.js"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"341214a436c38d2f584f87708e099fa8d7412eb5881a3e2bcdcd65e3d313955f"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous)::utf8ArrToStr (cyclomatic 17): (anonymous)::utf8ArrToStr 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":"src/common/utils.js"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"7a2206aedfb3c296802f3cb0bcd4e9acd94f73ea29904bd84757c39b6588b0fe"}},{"ruleId":"D1","level":"warning","message":{"text":"(anonymous) (cyclomatic 16): (anonymous) has cyclomatic complexity 16 (threshold 15). Most of this is not in the body itself: 2 of the 16 points are its own statements and the rest belongs to 2 function items inside it that branch (htmlToText, decodeHtmlEntity). 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":"src/common/jsHtmlToText.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"de394daba80ee808454e289fbd796e80b7cf61e028151a508740491e4b76ff66"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::token (cognitive 114): (anonymous)::token has cognitive complexity 114 (threshold 15). Drivers by points: if/else 29 (69 pts), ternaries 6 (21 pts), loops 6 (16 pts), boolean chains 8 (nesting depth added 65). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/common/marked.js holds 4 of the 12 methods over the threshold \u2014 including the worst \u2014 and 151 of the 253 points over it (60%), 2.7\u00D7 the next-largest file (src/common/options-store.js at 56). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b2a4a120d6d3dcaba2cdd1640a2f8cff28e0b7bb7a6b0c36d4e417e610dfa7"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 71): (anonymous) has cognitive complexity 71 (threshold 15). Drivers by points: if/else 27 (35 pts), loops 13 (21 pts), boolean chains 9, error handling 2 (6 pts) (nesting depth added 20). None of this is in the body itself: all 71 points belong to 21 function items inside it that branch (a function literal at line 238, a function literal at line 87, a function literal at line 53, \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":"src/common/options-store.js"},"region":{"startLine":7}}}],"partialFingerprints":{"codehealthFindingId/v1":"8699f5a2cd897e011a957b468bbbf1667302f9080e50c800ec6eec101157b647"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::output (cognitive 56): (anonymous)::output has cognitive complexity 56 (threshold 15). Drivers by points: if/else 19 (39 pts), boolean chains 9, ternaries 2 (7 pts), loops 1 (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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/common/marked.js holds 4 of the 12 methods over the threshold \u2014 including the worst \u2014 and 151 of the 253 points over it (60%), 2.7\u00D7 the next-largest file (src/common/options-store.js at 56). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"453abf7aa75917fe1cf7b6415bce259715fdb75a864c35debae0370e486f574e"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::excludeTagBlocks (cognitive 34): (anonymous)::excludeTagBlocks has cognitive complexity 34 (threshold 15). Drivers by points: if/else 10 (19 pts), ternaries 3 (11 pts), boolean chains 3, 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":"src/common/mdh-html-to-text.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"6d4cc850c0d23b3a882f9fea94a93c4822aef4d64902814882a152474faf05eb"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::makeStylesExplicit (cognitive 23): (anonymous)::makeStylesExplicit has cognitive complexity 23 (threshold 15). Drivers by points: if/else 4 (13 pts), loops 3 (6 pts), boolean chains 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":"src/common/markdown-here.js"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"7f17656a2a9c2373191e64072cc410f265a58009774834041e15665db80f24dc"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::markdownHere (cognitive 23): (anonymous)::markdownHere has cognitive complexity 23 (threshold 15). Drivers by points: if/else 11 (18 pts), boolean chains 3, 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":"src/common/markdown-here.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"49af3bbaa911cf444b5f8fbfc022e25c894e62f075c530ee6e5d124e5fb2c947"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::tok (cognitive 22): (anonymous)::tok has cognitive complexity 22 (threshold 15). Drivers by points: loops 7 (15 pts), ternaries 2 (5 pts), boolean chains 1, match/switch 1 (nesting depth added 11). 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. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/common/marked.js holds 4 of the 12 methods over the threshold \u2014 including the worst \u2014 and 151 of the 253 points over it (60%), 2.7\u00D7 the next-largest file (src/common/options-store.js at 56). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"ab8f6ccf803c1d388c0bc90f319c55b6b61f83638e274feb8d9b8a4e32ba67a2"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous) (cognitive 19): (anonymous) has cognitive complexity 19 (threshold 15). Drivers by points: if/else 10 (11 pts), boolean chains 5, loops 2, 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 2 function items inside it that branch (htmlToText, decodeHtmlEntity). 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":"src/common/jsHtmlToText.js"},"region":{"startLine":23}}}],"partialFingerprints":{"codehealthFindingId/v1":"01abf8ed1d9f7a98dc790963dfaf4f4b190d89d1509465445c4990a1e7601423"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::marked (cognitive 19): (anonymous)::marked has cognitive complexity 19 (threshold 15). Drivers by points: if/else 6 (10 pts), boolean chains 4, error handling 2 (3 pts), loops 1 (2 pts) (nesting depth added 6). To reduce it, split the body into named stages: move each independent step or branch into its own named function so the body reads as a short sequence of named calls rather than one long body. This file is where this pass\u0027s cognitive complexity CONCENTRATES: src/common/marked.js holds 4 of the 12 methods over the threshold \u2014 including the worst \u2014 and 151 of the 253 points over it (60%), 2.7\u00D7 the next-largest file (src/common/options-store.js at 56). No single row can show this, because each is measured only against the threshold: reducing this one file moves this dimension further than any other file in the repository."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"e5c658ebcbb4abf6917bd0b1b6fc1c010f02230852ade131dfe7e3f50de7b381"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::strToUTF8Arr (cognitive 19): (anonymous)::strToUTF8Arr has cognitive complexity 19 (threshold 15). Drivers by points: ternaries 5 (10 pts), if/else 6 (7 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":"src/common/utils.js"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"2637d2a42872fb26e3d9c79f5a6df7a985c92bc16fe348ec311a48d989813f09"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::showHTMLForgotToRenderPrompt::(anonymous)::keyboardCaptureHandler (cognitive 17): (anonymous)::showHTMLForgotToRenderPrompt::(anonymous)::keyboardCaptureHandler has cognitive complexity 17 (threshold 15). Drivers by points: if/else 9 (14 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":"src/common/common-logic.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"e925a2b81ae22fb3a487020447437cb1754c5de00be89069902c5d639479da49"}},{"ruleId":"D2","level":"warning","message":{"text":"(anonymous)::utf8ArrToStr (cognitive 16): (anonymous)::utf8ArrToStr has cognitive complexity 16 (threshold 15). Drivers by points: ternaries 5 (10 pts), boolean chains 5, 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":"src/common/utils.js"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"56df808d5421205bfae6f4abab95a698d8405a9ce771d3515c8cab69498375b4"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: highlightjs/highlight.js: FileTooLong \u2014 22546 significant lines (blank, comment-only and punctuation-only lines excluded). The bar is 500 significant lines; this is 22046 over it, 45.09\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"fad24f54fc8542175891f1c2faaf87004134ffd34b584c5c458be9d366307317"}},{"ruleId":"D3","level":"warning","message":{"text":"FileTooLong: common/marked.js: FileTooLong \u2014 740 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 240 over it, 1.48\u00D7 the bar. To reduce it, split the file along the responsibilities already in it: move each cohesive group of declarations into its own sibling file in the same module or package, so no one file has to be read whole to change one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"291989d8df4743800c4cc89297ba1e3e9fd3f085db7557c1b66301ad709bf423"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should call callback after getting: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/test/options-store-test.js"},"region":{"startLine":31}}}],"partialFingerprints":{"codehealthFindingId/v1":"649642b4e6ab5ab0bb7813923f0884c5fa2b740a6542eb3d10655649429d304e"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should call callback after setting: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/test/options-store-test.js"},"region":{"startLine":37}}}],"partialFingerprints":{"codehealthFindingId/v1":"3a5da82cf19aff3e9622f00688f9b5737fd36b32ed31956835f59f17d379c1ac"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should call callback after removing: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/test/options-store-test.js"},"region":{"startLine":43}}}],"partialFingerprints":{"codehealthFindingId/v1":"1d5d48831857823aac3a93469ecc069d8b141ad81f2b8f9738ee27e9cdfacd73"}},{"ruleId":"D10","level":"warning","message":{"text":"No assertions: should not explode: This method\u0027s body runs code, and no assertion call was recognised in it. Recognised by name: Assert*, *Should*/ShouldBe*, Verify, Expect, Throws, Record, Received/DidNotReceive, MustHaveHappened/MustNotHaveHappened, EnsureSuccessStatusCode and *AndEnsure*, in the test body and in the helpers it calls in the test and test-support code (a helper there that throws when its check fails counts as an assertion) \u2014 so verification routed through a callback object whose members hold the assertions, or through a harness in production code that fails by throwing, is not visible to this check and is not counted here. Read it as \u0027no assertion this check knows how to see\u0027, and if that is right, add one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/test/utils-test.js"},"region":{"startLine":382}}}],"partialFingerprints":{"codehealthFindingId/v1":"b9c8c0bf65ed3d63f8aefb45e1cbe5cd3c409c2fd2de00da84a7d796292a12d0"}},{"ruleId":"D12","level":"warning","message":{"text":"Deprecated: glob: glob 7.2.3, declared in utils/package.json, is marked deprecated by its publisher: \u0022Old versions of glob are not supported, and contain widely publicized security vulnerabilities, which have been fixed in the current version. Please update. Support for old versions may be purchased (at exorbitant rates) by contacting [e-mail redacted]\u0022. Replace it with the package or version that message names, or record why this one must stay."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/package.json"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"08a2dc98cf26c9b6dc2055e67237bb92616803a4b7978705d2fc0972e0f74b42"}},{"ruleId":"D12","level":"note","message":{"text":"Deprecated: inflight: inflight 1.0.6 is resolved in utils/package-lock.json and is marked deprecated by its publisher: \u0022This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.\u0022. This repository does not declare it \u2014 a direct dependency pulls it in, so the move is to upgrade or replace that dependency."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/package-lock.json"},"region":{"startLine":441}}}],"partialFingerprints":{"codehealthFindingId/v1":"5360ccd36570f4aad66fdc611c0c5128a7ad8c364ad4e63b785d8f00056d9273"}},{"ruleId":"D12","level":"note","message":{"text":"Outdated (npm): glob: glob is pinned at 7.2.3; registry.npmjs.org publishes 14.0.6 as the latest release. Upgrading is a judgement call \u2014 read that package\u0027s changelog for what changed between the two \u2014 but a direct production dependency several releases behind is where security and compatibility debt accumulates silently."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/package.json"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"fd5c810adfc33c6cd0499b259e2d522d6c59813c8d48410fcf30ec82fb605e4e"}},{"ruleId":"D12","level":"warning","message":{"text":"Floating npm dependency: file: \u0060file\u0060 is declared as \u0060*\u0060 in utils/package.json, which names no releasable version: any published version satisfies it. A production dependency that cannot be resolved to one immutable release makes the build non-reproducible \u2014 two installs a day apart can ship different code \u2014 and leaves nothing for a vulnerability scanner to match against."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"8168def9dc00e9acd0f67058ead8ac306b5b5eb5cfaae708c436ba161ca89d00"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: 34 comments in this file only repeat the code they sit on (lines 23760, 23764, 23774, 23801, 23819, 23831, 23997, 24003, 24010, 24255, 24263, 24325, 24426, 24443, 24456, 24460, 24551, 24642, 24738, 24744, 24747, 24750, 24753, 24756, 24759, 24763, 24894, 24904, 24907, 24921, 24984, 25050, 25071, 25183), for example \u0022Base group name\u0022. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":23760}}}],"partialFingerprints":{"codehealthFindingId/v1":"aacfc79c2a979dcdc2670d9ca26811924dfee0e987e9fad617f119f70f2eb07a"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Create a style element\u0022 repeats the code it sits on: 3 of its 3 words (create, style, element) are already in \u0060styleElem = elem.ownerDocument.createElement(\u0027style\u0027);\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/markdown-here.js"},"region":{"startLine":235}}}],"partialFingerprints":{"codehealthFindingId/v1":"26310f4754e6103b40b831dad561fa3654bf366d27b6299313d7860a1115dbbd"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Rendering done. Call callback.\u0022 repeats the code it sits on: 3 of its 3 words (rendering, call, callback) are already in \u0060if (postRenderCallback) postRenderCallback();\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/options.js"},"region":{"startLine":295}}}],"partialFingerprints":{"codehealthFindingId/v1":"22b625115485646bc6faa06db7cfda2f00c5cde582fc11970b5944ac2b7ee3e0"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Get the default value.\u0022 repeats the code it sits on: 3 of its 3 words (get, default, value) are already in \u0060Utils.getLocalFile(\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/options.js"},"region":{"startLine":331}}}],"partialFingerprints":{"codehealthFindingId/v1":"8be707d245033bf0959fc281fa9c8913fb4588b3b7a5bab4728b9a27f484aec1"}},{"ruleId":"D24","level":"note","message":{"text":"redundant comment: \u0022Handle forgot-to-render checkbox changes\u0022 repeats the code it sits on: 4 of its 5 words (handle, forgot, render, changes) are already in \u0060async function handleForgotToRenderChange(event)\u0060. Delete it, or replace it with what the code cannot say (why it is done here, a constraint, or a consequence)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/options.js"},"region":{"startLine":458}}}],"partialFingerprints":{"codehealthFindingId/v1":"923b2d2a0bda5a7d185ad2bf7d891f3308ca9ce5f0a6888d05bf61b24e468937"}},{"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":"08d6c7f3bf0e3b4ee1fbe1a99b97c634f6690e579a68ee381233fd712b7593d4"},"taxa":[{"id":"CWE-1333","toolComponent":{"name":"CWE","guid":"c3a2b1d0-7f3e-4b2a-9c1d-5e6f7a8b9c0d"}},{"id":"A02: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":"78e34d180459a99946d43b22c44fd13b5066baecccc0ceae472ae4ba80fc69ed"},"properties":{"dependency":{"package":"brace-expansion","version":"2.0.1","advisory":"[GHSA redacted]","aliases":["[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]"],"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":"79eb20dfc1f91027abe644e0f1dc450c94cf8edfc4511f406aaf253fd651bda5"},"properties":{"dependency":{"package":"glob","version":"10.4.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"unknown"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"546deed26384e5be588a8066fd08cb0dbc41a4c690d100ffaea7eb9da0fd9753"},"properties":{"dependency":{"package":"minimatch","version":"9.0.5","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"481e8cb1cfc913e2dcc033b4850e3f3379fd46d53b7f992184018cf789488b39"},"properties":{"dependency":{"package":"brace-expansion","version":"1.1.11","advisory":"[GHSA redacted]","aliases":["[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]"],"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":"93ad4c1c630aa17316f85961263f4dd371789ecf9cb1e2977979008767efd24c"},"properties":{"dependency":{"package":"cross-spawn","version":"7.0.3","advisory":"[GHSA redacted]","aliases":["[CVE redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"5644cb85d6b0dee6a48dcdc46e723582ad9bf9454b51dd70023dd930e260ae70"},"properties":{"dependency":{"package":"lodash","version":"4.17.21","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"1c2723cfb2c456af823dfc1b1988a1bc030ffa3706e12bf44534aadfdaf0cb4d"},"properties":{"dependency":{"package":"minimatch","version":"3.1.2","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D30","level":"error","message":{"text":"A security finding was recorded here. Its details are withheld on the public artifact \u2014 ask the repository owner for the full report."},"partialFingerprints":{"codehealthFindingId/v1":"55d2f1296726a3a0d8cffbfe872ba44c72ada5ffe4aaeddc38a0591b8232d92c"},"properties":{"dependency":{"package":"minimatch","version":"5.1.6","advisory":"[GHSA redacted]","aliases":["[CVE redacted]","[CVE redacted]","[CVE redacted]","[GHSA redacted]","[GHSA redacted]"],"reachability":{"kind":"not-imported"}}}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"41ea7c824bcd2bfdea640fe401d511384dec3883e8cd9282beb47ab7b137610f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"9bb1f73c00f9f5894a03b0effc9a182ae9b58a129073ec54aeecfc07b05ebf86"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/markdown-here.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"87f13b711765807bd53c378c2ac01a9e5f4e1abbb1727ef8ac80e06c65dcd04f"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/utils.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bc27f3997640fc0c59eabb5fa23db1bf3557d4b045df309fbab3d11977c62fd2"}},{"ruleId":"D34","level":"error","message":{"text":"Orphaned knowledge: No living knowledge remains for this large file \u2014 its last meaningful change has decayed away; if it breaks, no one currently understands it. Schedule a read-through / add characterisation tests before it bites."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/common-logic.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"4e887de1736622d32ec78a67760aba3dcf18db529ae45d1aa10fe52299a7ca5c"}},{"ruleId":"D34","level":"note","message":{"text":"Further orphaned files (smaller): 8 smaller file(s) also have no living knowledge \u2014 folded into the freshness score and metrics rather than raised one row each \u2014 most significant first: src/common/options.js, src/common/mdh-html-to-text.js, src/common/options-store.js, src/chrome/backgroundscript.js, src/common/jsHtmlToText.js, utils/build.js, src/common/markdown-render.js, src/chrome/contentscript.js (13 orphaned of 13 analysed files in total, counted over production source files of roughly 2,400 bytes or more, excluding vendored, generated, example/demo and scaffolding-template trees and test files identified by path convention, largest first; 13 of the 16 production source files in this repository met that bar). Attach the read to the next change that touches one of them: have a second person review that change, and leave behind a short comment or test recording what the file is for, so the knowledge comes back at the cost of a change you were making anyway."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"ce861fd78f6935114d3a342cb90ad25870f984e1042954fcbbe27c0e23be3658"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/options.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcbe02bb846df49afde01a8ee355052f9f5bbc16dee8ac4cd49d1937f5c90148"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/mdh-html-to-text.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"d752dd8ca3a76125f4f9e1d9ce80ac1bbac84eaf1abf53184b47ac83ca3b9ed4"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/options-store.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99309bbed09a3b0d6136c73ddae853448a920eeb2e65e6e524660d0ad507e2ad"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chrome/backgroundscript.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"99fdb5fabdb397f32d5bb630ed5ec6b08c42935cfbd3ebbf6be3057c67ef0de0"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/jsHtmlToText.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"bcc949b326112f450d44d7b1d730a207069c37dbb49bd34dd1aacb02192d7fae"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"utils/build.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"c67e469c52cb15e490f8b3344e87356c6070b68b839bb5760cd366125dffbf6d"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/markdown-render.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3b69749c106ef3f9d3d21f6141f08f2632f4c3c0a6e26162bb97800a8628ef5"}},{"ruleId":"D34","level":"note","message":{"text":"Orphaned file: No one still active in this repository holds living knowledge of this file: everyone who made a meaningful change to it has gone quiet, or what the current team did to it (moves, reformatting, log-level or import edits, renames) never needed understanding it. If it breaks, no one currently understands it. Attach the read to the next change that touches it: have a second person review that change, and leave behind a short comment or test recording what the file is for."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chrome/contentscript.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff77ae56d0a8fdd2c4e7d06ac5fb1ecd2629afd973046fcafeff37dd2f35b5f1"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chrome/upgrade-notification-popup.html"},"region":{"startLine":62}}}],"partialFingerprints":{"codehealthFindingId/v1":"b723d48ad1bdcaacef8e778a3c8c0a78e11d3fb9d167fc445ca1f0491021e906"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/forgot-to-render-prompt.html"},"region":{"startLine":120}}}],"partialFingerprints":{"codehealthFindingId/v1":"9f51ef361c88298a0295b850f60f0211c1d4a99925eab92126d2d7308b52744b"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/options.html"},"region":{"startLine":325}}}],"partialFingerprints":{"codehealthFindingId/v1":"822b9f96c7e7103488dbfedbcbec4f9b75d07921c304eeca65e7be0322aef2bb"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/options.html"},"region":{"startLine":347}}}],"partialFingerprints":{"codehealthFindingId/v1":"68f61685a77096437eaaa5373dda27b1f4cf31826399957f96d8f9f5623c591c"}},{"ruleId":"AC1","level":"error","message":{"text":"\u003Cimg\u003E without a text alternative: An image with no alt (and no aria-label/aria-labelledby) is unreadable to assistive tech. Add alt \u2014 alt=\u0022\u0022 if it\u0027s purely decorative."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/options.html"},"region":{"startLine":640}}}],"partialFingerprints":{"codehealthFindingId/v1":"f6e0833228bbd1138b0497c9b79b08b2a48a3f3fce9b5185378bb735ac585ade"}},{"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":"src/common/options.html"},"region":{"startLine":431}}}],"partialFingerprints":{"codehealthFindingId/v1":"a76bdb981febb450d4b301024a4dad06304d536f142700449ddf6b9910b12edd"}},{"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":"src/common/options.html"},"region":{"startLine":445}}}],"partialFingerprints":{"codehealthFindingId/v1":"8598df8c5a7f2098466785392c9c2e5011a5fdbc79b8db4ba8ec287d4ac3d2d0"}},{"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":"src/common/options.html"},"region":{"startLine":449}}}],"partialFingerprints":{"codehealthFindingId/v1":"ec0e0fb236df2184ce8c0f6c2a24fab9cf052b7f12429c8aa530dbd15f123f86"}},{"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":"src/common/options.html"},"region":{"startLine":479}}}],"partialFingerprints":{"codehealthFindingId/v1":"1918455714d6d2b1fa9a704898900ba55a4aafda5aa39f4ebc29aae775915ff0"}},{"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":"src/common/options.html"},"region":{"startLine":480}}}],"partialFingerprints":{"codehealthFindingId/v1":"432959cbe3ec6ec91e02db4ad2a99f33dfef347f56c0f5fb4bed6ad5d981bc0e"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chrome/upgrade-notification-popup.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"89227d80928513aec5238ed84e521ce377e0a10dedd041d4c689c1cf5c9163f9"}},{"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":"src/chrome/upgrade-notification-popup.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"30663743d1b5b8a438f354ca2c8fe8aefc0bffaa83aa85027aa70b07ded35577"}},{"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":"src/chrome/upgrade-notification-popup.html"},"region":{"startLine":2}}}],"partialFingerprints":{"codehealthFindingId/v1":"41d4302d10350191d5e4d885b9e0c17ec077665e97f75a220a14537cadb9ae35"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Chtml\u003E without a lang: The page declares no language, so assistive tech can\u0027t pick the right pronunciation. Add lang (e.g. lang=\u0022en\u0022)."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/options-iframe.html"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"261a1adb9f80a3f6e6939f01e70fb170e2d6c744cb2fe9be3882b040d6738ee1"}},{"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":"src/common/options-iframe.html"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"0460f3d1767aa7a08777183d475bdb3f4ed7750f08d98aec62c4ef7b2b9f3e49"}},{"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":"src/common/options-iframe.html"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"32fd327d5b2e0299f30c0bbeff8b17c719d5eca7f0780f2b4e44fa14ec807b34"}},{"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":"src/common/options.html"},"region":{"startLine":8}}}],"partialFingerprints":{"codehealthFindingId/v1":"c57c00a16db8c7e9f7f482810aee88b314d2c0f38f0a9ace429250df372c3788"}},{"ruleId":"AC3","level":"error","message":{"text":"\u003Ciframe\u003E without a title: An iframe with no title (or an empty one) is announced only as \u0022frame\u0022. Add a non-empty title describing its content, or an aria-label."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/options.html"},"region":{"startLine":462}}}],"partialFingerprints":{"codehealthFindingId/v1":"405463f30f29a01c57745c1e88e617490f6ce6ef7ba1c1c12a8f3e3a2c38813d"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060.button\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":"src/common/options.html"},"region":{"startLine":139}}}],"partialFingerprints":{"codehealthFindingId/v1":"099496de828fad25e1d6d0896b22bd32881e345b3c358a9ca6b428e029bee5a6"}},{"ruleId":"AC6","level":"warning","message":{"text":"Focus outline removed in CSS without a :focus replacement: \u0060#css-syntax-select\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":"src/common/options.html"},"region":{"startLine":174}}}],"partialFingerprints":{"codehealthFindingId/v1":"e8fd746abb6c26da9345296d189d7ba53b5881df3eb404fd7dda3c2e9ae76715"}},{"ruleId":"AC6","level":"warning","message":{"text":"Low contrast colour pair in CSS (3.1:1): \u0060#mocha .test a.replay\u0060 sets color: #888 on background-color: #eee \u2014 3.1:1, below the 4.5:1 WCAG AA minimum for normal text. Darken or lighten one of them."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/test/mocha.css"},"region":{"startLine":152}}}],"partialFingerprints":{"codehealthFindingId/v1":"7571ba87d990630777db6e2922902c5af46244af8e16ed3ab5e5027c43b8e134"}},{"ruleId":"IC1","level":"warning","message":{"text":"Comparison is always false \u2014 nothing compares equal to NaN: \u0060===\u0060 against NaN is false for every value, including NaN itself. Use \u0060Number.isNaN(\u2026)\u0060 \u2014 the test that was intended."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/jsHtmlToText.js"},"region":{"startLine":124}}}],"partialFingerprints":{"codehealthFindingId/v1":"526a32dcb67297b7e94e14e1bf204e547c926f38fa78da3104fb8407eae0e050"}},{"ruleId":"M2","level":"note","message":{"text":"No ADRs: No Architecture Decision Records found \u2014 no conventional ADR directory, no numbered \u0060NNNN-title\u0060 documents in any markup this check reads, and nothing ADR-shaped by content. Design rationale recorded elsewhere (a design-notes tree, a mailing list, pull-request discussion) is not visible to this check and is not re-findable per decision, so a future maintainer cannot ask why one choice was made and get an answer."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"670b3d6e36a756d63097d0dfbf90afd5fc761308800b9354894a07c3f4e4aa14"}},{"ruleId":"M2","level":"note","message":{"text":"No architecture diagram/doc: No C4/Structurizr/PlantUML/Mermaid/Graphviz/D2 diagram, no drawn diagram named for the architecture, no file named \u0060architecture\u0060 or \u0060design\u0060 in any markup this check reads, and nothing in the README, docs or contributor guides that announces the shape \u2014 no \u0060## Architecture\u0060 heading, no \u0022architecture overview\u0022/\u0022high-level design\u0022 phrasing, no \u0022the architecture is \u2026\u0022 introduction, no guided code tour. A shape laid out in prose that never names itself as the architecture is not visible to this check, and neither is one kept outside the repository, so this row reports the absence of a re-findable shape document \u2014 not evidence that nobody wrote the shape down."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"0c190e7c159d1850ee706c3ac4486e151e8a4fe169de4bf61436b9f399654f06"}},{"ruleId":"P1","level":"warning","message":{"text":"No CI pipeline: No CI workflow found (.github/workflows, azure-pipelines.yml, .gitlab-ci.yml, \u2026) \u2014 changes aren\u0027t gated by an automated build/test."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"44f01af96e50474fba2df84d95ddf4f7e1d34c29c307830b9efc9057daa6b670"}},{"ruleId":"P3","level":"note","message":{"text":"No SAST: No static application security testing detected. For this repository\u0027s stack, add CodeQL\u0027s javascript-typescript pack, \u0060semgrep --config=p/javascript\u0060, or eslint-plugin-security \u2014 this repository has no CI pipeline yet, so run it locally to clear the existing findings, then make it a step of the first workflow you add so a regression fails the build. What was searched, so you can tell an absence from a miss: the 0 CI workflow file(s) in this repository, and the scanner and linter configuration checked in beside them. A scan that runs outside CI, one configured in your forge\u0027s web UI rather than in a committed file, or a tool whose name is none of those this check carries, is not seen \u2014 if that is your case the row is wrong, and saying so is more useful than adding a second scanner."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"6e54424179c892f03ef2fd003130ac4bd43f39bbf3b1ca0a0143e25acb80ec87"}},{"ruleId":"P3","level":"note","message":{"text":"No dependency-update automation: \u0060utils/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":"utils/package.json"},"region":{"startLine":5}}}],"partialFingerprints":{"codehealthFindingId/v1":"3ef4ef5cb00bcfc15c5df85996e749c38a7489bd21023274139da8d51ce67c38"}},{"ruleId":"R1","level":"warning","message":{"text":"Type Safety: 0 typed \u00B7 26 plain JS \u2014 the untyped files are src/chrome/backgroundscript.js, src/chrome/contentscript.js, src/chrome/upgrade-notification-popup.js, src/common/common-logic.js, src/common/content-permissions.js, src/common/jsHtmlToText.js (\u002B20 more)."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"d00ee7953f55325a823d27e5db9657c80ca9b9861c0c0abf8fe487cd3fa586d3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (539 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:26588 \u00B7 src/common/highlightjs/highlight.js:57685 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":26588}}}],"partialFingerprints":{"codehealthFindingId/v1":"f553f6a4aa17c05136cf23465e576e452bfc65460915665bf81ede10c9ec8689"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (133 lines \u00D7 4 locations): src/common/highlightjs/highlight.js:11512 \u00B7 src/common/highlightjs/highlight.js:28905 \u00B7 src/common/highlightjs/highlight.js:49440 \u00B7 src/common/highlightjs/highlight.js:54768 \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":"src/common/highlightjs/highlight.js"},"region":{"startLine":11512}}}],"partialFingerprints":{"codehealthFindingId/v1":"526d169e019a4fdd7dcd3d92f70f5a682b5d10e52a4945d27ce004a4c9159677"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (129 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:5155 \u00B7 src/common/highlightjs/highlight.js:10347 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":5155}}}],"partialFingerprints":{"codehealthFindingId/v1":"68405c373d93f9ade9c825b71e80f261f7d60946237beda709cf715e87b07f6e"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (121 lines \u00D7 4 locations): src/common/highlightjs/highlight.js:8900 \u00B7 src/common/highlightjs/highlight.js:26475 \u00B7 src/common/highlightjs/highlight.js:30194 \u00B7 src/common/highlightjs/highlight.js:57572 \u2014 all 4 copies are in the same file, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":8900}}}],"partialFingerprints":{"codehealthFindingId/v1":"456e47c7ec126be05dcbed5bbb9067de0c3bbda29a4b59888155486fac07962b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (93 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:4703 \u00B7 src/common/highlightjs/highlight.js:9895 \u2014 all 2 copies are in the same file, and the SHAPE of this repetition could not be determined. It is not a run of declarations, a listing, a declaration header, a type body or a slice through a construct \u2014 and it was not measured as a run of executable statements either, so this row cannot tell you whether a function can stand where these lines are. Read the two spans before acting, because the move is opposite in the two cases. Where they are statements, the ordinary answer holds: give the shared part one home and call it from each site. Where they turn out to be declarations, a literal\u0027s entries, or the cases of an enumeration, there is no call site to call anything from, and collapsing them would delete what each copy pins \u2014 a shared base type, a generated set, or one exported constant each site refers to is the move instead, and sometimes the honest answer is that there is nothing to extract at all. Reported because the copies drift apart the first time only one of them is edited, which is true whichever of those they are."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":4703}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ee6f8ae8af7e0880824c3dcf7c28f6b587f3a43a02562736fa2a5580409c4d9"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (78 lines \u00D7 4 locations): src/common/highlightjs/highlight.js:11401 \u00B7 src/common/highlightjs/highlight.js:28794 \u00B7 src/common/highlightjs/highlight.js:49329 \u00B7 src/common/highlightjs/highlight.js:54657 \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":"src/common/highlightjs/highlight.js"},"region":{"startLine":11401}}}],"partialFingerprints":{"codehealthFindingId/v1":"d5d2dd9c3e4e38c3484a24be15c5f486b900f446eb66389caa1346f5b5f177b7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (69 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:4880 \u00B7 src/common/highlightjs/highlight.js:10072 \u2014 all 2 copies are in the same file, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":4880}}}],"partialFingerprints":{"codehealthFindingId/v1":"caca052f55199b69cb15721e01bec70bb87b3d96456d1a077ba33b6685cc31a2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (67 lines \u00D7 4 locations): src/common/highlightjs/highlight.js:11664 \u00B7 src/common/highlightjs/highlight.js:29057 \u00B7 src/common/highlightjs/highlight.js:49592 \u00B7 src/common/highlightjs/highlight.js:54920 \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":"src/common/highlightjs/highlight.js"},"region":{"startLine":11664}}}],"partialFingerprints":{"codehealthFindingId/v1":"4f25cb45da861a87a7c08a38070ed752e26d188cc03c4d3550402feae206971c"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (51 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:4960 \u00B7 src/common/highlightjs/highlight.js:10152 \u2014 all 2 copies are in the same file, and what repeats is a LIST OF ENTRIES rather than behaviour \u2014 the same entries written out more than once. Extract them into one shared, exported constant and spread that constant into each site, rather than into a function the sites call: a list like this often lives in declarative metadata (a decorator\u0027s options object, a static configuration table) that a build step must be able to read statically, where a function call is not allowed. Adding an entry to one copy and not the other is the failure this prevents."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":4960}}}],"partialFingerprints":{"codehealthFindingId/v1":"097a758d37893d1f57c4d155ed86ee383624132b706d52506db169c81708e6bc"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (34 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:26461 \u00B7 src/common/highlightjs/highlight.js:57558 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":26461}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb4a223a8390454717f4a7a9bec8d63e2721c1245f59edb9478fb4370ec64a14"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (30 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:26162 \u00B7 src/common/highlightjs/highlight.js:27886 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":26162}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ea856d0c1794dd832844398f518ed44c8ba5423001afee0daf0a4ad95e75ee7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (28 lines \u00D7 3 locations): src/common/highlightjs/highlight.js:386 \u00B7 src/common/highlightjs/highlight.js:16124 \u00B7 src/common/highlightjs/highlight.js:55740 \u2014 all 3 copies are in the same file, so extract the block into one function there and call it from every one of those sites \u2014 resolving only two of them leaves the rest to drift apart the first time one is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":386}}}],"partialFingerprints":{"codehealthFindingId/v1":"6216863b672d9a6d41fe9b6c699c1d1656609843e8f98fafd2f63a08d02901b6"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (27 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:6477 \u00B7 src/common/highlightjs/highlight.js:61257 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":6477}}}],"partialFingerprints":{"codehealthFindingId/v1":"69aa9515cfc57e1c0d820951976c3d960e1d559f52150a2b5de05c31bd668ec0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (26 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:42200 \u00B7 src/common/highlightjs/highlight.js:50598 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":42200}}}],"partialFingerprints":{"codehealthFindingId/v1":"22966c4e0d1315b2e95a537f00ad7d0dbc090e35abfa0de9ad7f0974ed47ead1"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (24 lines \u00D7 2 locations): src/common/marked.js:203 \u00B7 src/common/marked.js:374 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":203}}}],"partialFingerprints":{"codehealthFindingId/v1":"5467bc264bb4b44007c85454ec39dd5814a4075fcd9a96dc08eeec023a99cfe0"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (21 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:38603 \u00B7 src/common/highlightjs/highlight.js:60038 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":38603}}}],"partialFingerprints":{"codehealthFindingId/v1":"edb31bf8c6fe481679bbef6b58b620fcbd9dbba898500a10a5aed0977bb684af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (20 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:41287 \u00B7 src/common/highlightjs/highlight.js:46235 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":41287}}}],"partialFingerprints":{"codehealthFindingId/v1":"044f41a30dbfaad7f6fe267e830431feaf4a26a110df89f4f9131a8e8fe76ef3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:13321 \u00B7 src/common/highlightjs/highlight.js:21891 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":13321}}}],"partialFingerprints":{"codehealthFindingId/v1":"600dbee9652742c292185479306feddd71d975d5daef4c7ce3294c0fc4fbb6cb"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (19 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:50137 \u00B7 src/common/highlightjs/highlight.js:55465 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":50137}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7f55ba721d94a27659897e946be95a5e4364fd834b6dceba6377cf71ef6b4ff"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (18 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:3235 \u00B7 src/common/highlightjs/highlight.js:44395 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":3235}}}],"partialFingerprints":{"codehealthFindingId/v1":"af69ebae31b900edf5a06ad0a55898a81aa460f12ca9b49b3816372551979ce3"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:13168 \u00B7 src/common/highlightjs/highlight.js:49240 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":13168}}}],"partialFingerprints":{"codehealthFindingId/v1":"941053c7f7ecea3f5f799a1eaa93abad6873cc70f79d9027c3ad78c11a8aa66d"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (17 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:30565 \u00B7 src/common/highlightjs/highlight.js:40044 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":30565}}}],"partialFingerprints":{"codehealthFindingId/v1":"68fd3e47260a1d3e80a5838dee8b437ee2dbb0d54201fc61856099115d21826f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 4 locations): src/common/highlightjs/highlight.js:13715 \u00B7 src/common/highlightjs/highlight.js:15510 \u00B7 src/common/highlightjs/highlight.js:41858 \u00B7 src/common/highlightjs/highlight.js:60730 \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":"src/common/highlightjs/highlight.js"},"region":{"startLine":13715}}}],"partialFingerprints":{"codehealthFindingId/v1":"00a75bf8187f8ffad01847d6c4992e056af459f883fda5255de086bb4f078f0b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): src/common/highlightjs/highlight.js:14479 \u00B7 src/common/highlightjs/highlight.js:21629 \u00B7 src/common/highlightjs/highlight.js:39703 \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":"src/common/highlightjs/highlight.js"},"region":{"startLine":14479}}}],"partialFingerprints":{"codehealthFindingId/v1":"16353299fce1b1a42550c2fa9d44c7e3d5e3b38ecedeb5c2ba16d7cf277881af"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:16093 \u00B7 src/common/highlightjs/highlight.js:17234 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":16093}}}],"partialFingerprints":{"codehealthFindingId/v1":"2b242c3af9f3e97f122c87b01e35a6b91ffe297f498d9c264fe26191ba2affe4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (16 lines \u00D7 3 locations): src/common/highlightjs/highlight.js:40419 \u00B7 src/common/highlightjs/highlight.js:47037 \u00B7 src/common/highlightjs/highlight.js:50271 \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":"src/common/highlightjs/highlight.js"},"region":{"startLine":40419}}}],"partialFingerprints":{"codehealthFindingId/v1":"9020e896d4d5c1d85a78bad26ce9289eec451bf520fe30ab61e3f7dd2edda92a"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:16919 \u00B7 src/common/highlightjs/highlight.js:39896 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":16919}}}],"partialFingerprints":{"codehealthFindingId/v1":"bf55848ff40d9925ecd04218529ebdacf259f2aa3c772089305c365fa2f08634"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (15 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:49037 \u00B7 src/common/highlightjs/highlight.js:56694 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":49037}}}],"partialFingerprints":{"codehealthFindingId/v1":"3cfd56e04505478ae500e5530d04ccbc2b71feba90d9676c5b8780c212af2438"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/common/common-logic.js:544 \u00B7 src/common/utils.js:702 \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":"src/common/common-logic.js"},"region":{"startLine":544}}}],"partialFingerprints":{"codehealthFindingId/v1":"2fecb5aba1504755426c454bad10bfacdcaa8589c827580cdf5b5ced4ca337ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 8 locations): src/common/highlightjs/highlight.js:6415 \u00B7 src/common/highlightjs/highlight.js:9715 \u00B7 src/common/highlightjs/highlight.js:12915 \u00B7 src/common/highlightjs/highlight.js:39510 \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":"src/common/highlightjs/highlight.js"},"region":{"startLine":6415}}}],"partialFingerprints":{"codehealthFindingId/v1":"e7b17fbb157f9fa74f08d71076012a0fcfd646480eaf764505e7875a836a6283"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (14 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:15550 \u00B7 src/common/highlightjs/highlight.js:22860 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":15550}}}],"partialFingerprints":{"codehealthFindingId/v1":"1efe55426348af2c35e5bb01ba36e01e96c8ac880ef5e70764e64a247f2685f4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 4 locations): src/common/highlightjs/highlight.js:10910 \u00B7 src/common/highlightjs/highlight.js:14291 \u00B7 src/common/highlightjs/highlight.js:17435 \u00B7 src/common/highlightjs/highlight.js:42974 \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":"src/common/highlightjs/highlight.js"},"region":{"startLine":10910}}}],"partialFingerprints":{"codehealthFindingId/v1":"4cfcfcac923df16371ec7dece163aa1d606287d0e675ecbdbe2b3f941f970e06"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:15426 \u00B7 src/common/highlightjs/highlight.js:44303 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":15426}}}],"partialFingerprints":{"codehealthFindingId/v1":"e9134c9bd3af13b7e8ab7739e6cf7f7a179d50bab7de27efe702ea4f110e577b"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (13 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:15523 \u00B7 src/common/highlightjs/highlight.js:22839 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":15523}}}],"partialFingerprints":{"codehealthFindingId/v1":"009754e3136ace619fcac6e44754d992902b43ee52fcabe8f329cefbf6c12559"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/chrome/contentscript.js:57 \u00B7 src/common/options.js:263 \u2014 the 2 copies are spread across 2 directories, so the shared home is a decision rather than an obvious spot: check first whether one of them already owns this behaviour, and otherwise put the extracted module somewhere all of the sites already reach rather than making one of them depend on another."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/chrome/contentscript.js"},"region":{"startLine":57}}}],"partialFingerprints":{"codehealthFindingId/v1":"c607873556a99f5db0398998719f8e85a3358953ffed3ae4aa4527ba8bef8df7"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (11 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:38728 \u00B7 src/common/highlightjs/highlight.js:39662 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":38728}}}],"partialFingerprints":{"codehealthFindingId/v1":"b5c39279dafdf0265e742ae9722b7a06cda08c418df94c41836d11fb08b82048"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/common/highlightjs/highlight.js:5697 \u00B7 src/common/highlightjs/highlight.js:14297 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":5697}}}],"partialFingerprints":{"codehealthFindingId/v1":"ff43df1858a6375b73e6626f131b47b95d631099584bfc7e798d0e9034b922ae"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (10 lines \u00D7 2 locations): src/common/jsHtmlToText.js:257 \u00B7 src/common/mdh-html-to-text.js:368 \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":"src/common/jsHtmlToText.js"},"region":{"startLine":257}}}],"partialFingerprints":{"codehealthFindingId/v1":"f0b25b0c88f8161cea34d6916cc32eb006e832076245380e927cc132c26747b2"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block with local edits (9 matched lines \u00D7 2 locations): src/common/markdown-here.js:635 \u00B7 src/common/markdown-render.js:108 \u2014 the two spans are one implementation copied and then locally edited \u2014 50 tokens are still identical, in the same order in both files, with only local edits between them. The copies have already begun to drift, which is this row\u0027s finding: an edit made to one and not the other changes behaviour silently. Diff the two spans first to learn what genuinely differs, then extract the shared core into one module both sites use, passing the differences in as parameters \u2014 or, if one copy exists only because the other could not be imported from its context, make one of them the single source the other is generated or re-exported from. If one copy is no longer reachable, delete it rather than letting it shadow the live one."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/markdown-here.js"},"region":{"startLine":635}}}],"partialFingerprints":{"codehealthFindingId/v1":"8ab100760ddc3d0d8104d4e5a5e1b71f9aa159eb72c4f226de8ee15a472b5658"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/common/marked.js:190 \u00B7 src/common/marked.js:244 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":190}}}],"partialFingerprints":{"codehealthFindingId/v1":"24d26bfec376eafe82172a09fedbfad63ee5d5b184ebb18e973eaf120f91f05f"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (9 lines \u00D7 2 locations): src/common/marked.js:253 \u00B7 src/common/marked.js:348 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":253}}}],"partialFingerprints":{"codehealthFindingId/v1":"04e6fceaddf6727facf9c28b5a8db83f3272b2fb069cf1e669081c16d1a036ab"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (7 lines \u00D7 2 locations): src/common/utils.js:637 \u00B7 src/common/utils.js:647 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/utils.js"},"region":{"startLine":637}}}],"partialFingerprints":{"codehealthFindingId/v1":"41a9280091a54e2a770b02004d4bc322699f303257c14ff70790785d9a86d166"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (6 lines \u00D7 2 locations): src/common/marked.js:650 \u00B7 src/common/marked.js:678 \u2014 all 2 copies are in the same file, and the CITED SPAN is not a self-contained block \u2014 it runs from inside one construct into the next (the tail of a branch plus the head of the following one, a run of switch arms, the end of a declaration plus the list that follows it) rather than covering a whole unit. So do not lift these lines literally: no call can be substituted for a half-open construct. Extract the enclosing repeated UNIT instead \u2014 the whole function, component or branch these lines sit in \u2014 and where the repetition IS the construct (a run of switch arms, a stack of near-identical declarations) replace it with one table or registry looked up by key rather than a helper each arm calls. The copies still drift apart the first time only one of them is edited, which is why this is reported."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":650}}}],"partialFingerprints":{"codehealthFindingId/v1":"61fa978d0a9c971975cea12b599de95c6bc437ee85dce7bb6e32da63848dc5a4"}},{"ruleId":"R10","level":"warning","message":{"text":"Duplicated block (5 lines \u00D7 2 locations): src/common/utils.js:652 \u00B7 src/common/utils.js:659 \u2014 both copies are in the same file, so extract the block into one function there and call it from each site \u2014 the copies drift apart the first time only one of them is edited."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/utils.js"},"region":{"startLine":652}}}],"partialFingerprints":{"codehealthFindingId/v1":"809ebaaaa55750cdcb96ea76f03d21ab242090669425e8878ddc4c4a14afba59"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function token (cyclomatic 51, cognitive 114): token has cyclomatic complexity 51 and cognitive complexity 114; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":149}}}],"partialFingerprints":{"codehealthFindingId/v1":"1ef0439a53793a6e1dae4b23b1d3fb6403c1c273a38bcf20305fac3f4e7ceefa"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function eq (cyclomatic 39, cognitive 53): eq has cyclomatic complexity 39 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":"src/common/test/underscore.js"},"region":{"startLine":825}}}],"partialFingerprints":{"codehealthFindingId/v1":"1f71a0fb281838489c69c2537b74b51250a3554d7369deb48bca9c736e02434e"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatValue (cyclomatic 33, cognitive 38): formatValue has cyclomatic complexity 33 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":"src/common/test/chai.js"},"region":{"startLine":3441}}}],"partialFingerprints":{"codehealthFindingId/v1":"94ecebfb219177542fe7cded72fdbc41c465e82ba439cc97f818a98f1656894a"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function output (cyclomatic 31, cognitive 56): output has cyclomatic complexity 31 and cognitive complexity 56; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":562}}}],"partialFingerprints":{"codehealthFindingId/v1":"7ab7bbd8ed2d6a2bb29a40837493a296284dda12997268b9dd3f71ee1497d7f9"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function assertThrows (cyclomatic 24, cognitive 29): assertThrows has cyclomatic complexity 24 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":"src/common/test/chai.js"},"region":{"startLine":1289}}}],"partialFingerprints":{"codehealthFindingId/v1":"7cea7084559a27c808c853015d0846d9db31379f0b53790ed0eaf6841c5f8767"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function tok (cyclomatic 23, cognitive 22): tok 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":"src/common/marked.js"},"region":{"startLine":983}}}],"partialFingerprints":{"codehealthFindingId/v1":"681f9f668fb0b43880b4c4335f575523bfec47a4c84d785b2869064b94c7c087"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function diff (cyclomatic 20, cognitive 31): diff 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":"src/common/test/mocha.js"},"region":{"startLine":105}}}],"partialFingerprints":{"codehealthFindingId/v1":"35c708fc4e911ed139214e55324ce53dd9b82589aae36cb549d55581fa96934b"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function objEquiv (cyclomatic 18, cognitive 24): objEquiv has cyclomatic complexity 18 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":"src/common/test/chai.js"},"region":{"startLine":2893}}}],"partialFingerprints":{"codehealthFindingId/v1":"4fd9b18583361a02709bb234f266b051b2b88e3e0686b80e3d829958628f5821"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function compileMode (cyclomatic 18, cognitive 23): compileMode 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":"src/common/highlightjs/highlight.js"},"region":{"startLine":1419}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3ed6e3ca2612001998a3f242f52016118f7efdbcbbd38155ebc3f05266c0e8c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function processLexeme (cyclomatic 18, cognitive 17): processLexeme 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":"src/common/highlightjs/highlight.js"},"region":{"startLine":2039}}}],"partialFingerprints":{"codehealthFindingId/v1":"d69b4f672d348ab574c059bdf55ea6e4e7efc21204eb60382cdffb86c2cbc81f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function doEndMatch (cyclomatic 17, cognitive 21): doEndMatch has cyclomatic complexity 17 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":"src/common/highlightjs/highlight.js"},"region":{"startLine":1980}}}],"partialFingerprints":{"codehealthFindingId/v1":"05e8c381de13ec8a43316bd628150e10cfc989b621e9f7f7bb897984ef3eb544"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function utf8ArrToStr (cyclomatic 17, cognitive 16): utf8ArrToStr 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":"src/common/utils.js"},"region":{"startLine":588}}}],"partialFingerprints":{"codehealthFindingId/v1":"646610943357d0b76890adb90bb37931a44d94d1aea79863d17d448e969ebc07"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function formatProperty (cyclomatic 15, cognitive 35): formatProperty has cyclomatic complexity 15 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":"src/common/test/chai.js"},"region":{"startLine":3598}}}],"partialFingerprints":{"codehealthFindingId/v1":"1438b094ac951256942f4d7ac1688882e7a7031ed08ae6da0c1af68d01bdab01"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function createPatch (cyclomatic 15, cognitive 34): createPatch has cyclomatic complexity 15 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":"src/common/test/mocha.js"},"region":{"startLine":237}}}],"partialFingerprints":{"codehealthFindingId/v1":"782e4481db11250f3e20e8585f074f30f6c658e74d0eaf4e18d51925070c7310"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function excludeTagBlocks (cyclomatic 14, cognitive 34): excludeTagBlocks has cyclomatic complexity 14 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":"src/common/mdh-html-to-text.js"},"region":{"startLine":207}}}],"partialFingerprints":{"codehealthFindingId/v1":"9b04ff54afd7f17fd8b15d2df3112b548e0764ad08d7f7b22c73c45f5661b15d"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function marked (cyclomatic 14, cognitive 19): marked 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":"src/common/marked.js"},"region":{"startLine":1154}}}],"partialFingerprints":{"codehealthFindingId/v1":"9700ef21ae527567e5caacc998c1c7d4437eba2217de84d867a2acd20f5a0475"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function markdownHere (cyclomatic 13, cognitive 23): markdownHere has cyclomatic complexity 13 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":"src/common/markdown-here.js"},"region":{"startLine":553}}}],"partialFingerprints":{"codehealthFindingId/v1":"4c6364587f9ffa792b7e44dd7676483953a409dae2ca8a8e1227e89ae08461d4"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function removeListener (cyclomatic 13, cognitive 22): removeListener has cyclomatic complexity 13 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":"src/common/test/mocha.js"},"region":{"startLine":425}}}],"partialFingerprints":{"codehealthFindingId/v1":"414fc8c0d80dd126dc458d98ff2463766465197e8ef83b2f0b213529b2a4f36f"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function strToUTF8Arr (cyclomatic 13, cognitive 19): strToUTF8Arr 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":"src/common/utils.js"},"region":{"startLine":615}}}],"partialFingerprints":{"codehealthFindingId/v1":"abd8dd60a76aee7830e736fd736c7355875ae77f798c80caad08680026868d36"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function makeStylesExplicit (cyclomatic 12, cognitive 23): makeStylesExplicit has cyclomatic complexity 12 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":"src/common/markdown-here.js"},"region":{"startLine":264}}}],"partialFingerprints":{"codehealthFindingId/v1":"e3dd24567158dea9cd68c99581acd515d274c6e00ba4d050b42041608b66c437"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function keyboardCaptureHandler (cyclomatic 12, cognitive 17): keyboardCaptureHandler has cyclomatic complexity 12 and cognitive complexity 17; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/common-logic.js"},"region":{"startLine":450}}}],"partialFingerprints":{"codehealthFindingId/v1":"c3034e9764c74aed3777ab029780893351186c0fe40ae17b99d742309e4a224c"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function (anonymous) (cyclomatic 12, cognitive 14): (anonymous) 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":"src/common/test/mocha.js"},"region":{"startLine":2336}}}],"partialFingerprints":{"codehealthFindingId/v1":"61d0fc1be31782ef73300caaffbcace0da4902f759743ab7348a935fb6e01207"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _highlight (cyclomatic 11, cognitive 19): _highlight has cyclomatic complexity 11 and cognitive complexity 19; this row is raised above a cyclomatic bar of 10. The two numbers answer different questions and the gap between them is what decides whether to act: cyclomatic counts the independent arms through the body, cognitive counts what it costs to hold them in your head, so nesting and mixed boolean chains raise it while a flat run of independent arms does not. Cognitive is at or above cyclomatic here, so the branching is nested or entangled rather than laid out side by side \u2014 extracting each decision into its own named function is the change that pays. Measured by this repository\u0027s own parse of the file, so a body assembled at runtime, or generated, is counted as written rather than as it executes."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":1746}}}],"partialFingerprints":{"codehealthFindingId/v1":"03d10815c00410c82019b7d3aa0d64eb8c12588a4dc05ccbc1e586bd67fdd845"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function _deepEqual (cyclomatic 11, cognitive 15): _deepEqual 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":"src/common/test/chai.js"},"region":{"startLine":2849}}}],"partialFingerprints":{"codehealthFindingId/v1":"889f81a4e473dfdc9151229854d2c51e914c4aa0d676c2d5d6b151135c618cb9"}},{"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":"src/common/test/mocha.js"},"region":{"startLine":3253}}}],"partialFingerprints":{"codehealthFindingId/v1":"398b410f1d6ec0b305db5c23d35f13039d050d461ef5e7c6c0c05d9d946a6d85"}},{"ruleId":"R2","level":"warning","message":{"text":"Complex function htmlToText (cyclomatic 11, cognitive 10): htmlToText 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":"src/common/jsHtmlToText.js"},"region":{"startLine":26}}}],"partialFingerprints":{"codehealthFindingId/v1":"98d6a04e396a5375ae8eb709d7b0b5b5473c5d301e67c715e0f77e3e97a97804"}},{"ruleId":"R3","level":"warning","message":{"text":"src/common/marked.js: 1079 lines of code: src/common/marked.js has 1079 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":"src/common/marked.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"eb252eeb605378f480b905b07f0f02d142b6df9e3f5d00ef3b97e3b14dcc5d1f"}},{"ruleId":"R3","level":"warning","message":{"text":"src/common/utils.js: 592 lines of code: src/common/utils.js has 592 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":"src/common/utils.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"245d48f5f4afd3171af2aba3de79b86c1fe5bc7c6bebcd53713339d8f3dfaeae"}},{"ruleId":"R3","level":"warning","message":{"text":"src/common/markdown-here.js: 521 lines of code: src/common/markdown-here.js has 521 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":"src/common/markdown-here.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"af17d5f2f7037b03dcee720a0d59c75149dd4617f6ab9ca43e189a36be0cc7aa"}},{"ruleId":"R3","level":"warning","message":{"text":"src/common/common-logic.js: 466 lines of code: src/common/common-logic.js has 466 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":"src/common/common-logic.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"f001f0d5cf628f0aec50d4f0a27753465f39dd75fa82fe06ded1f5acea067c78"}},{"ruleId":"R3","level":"warning","message":{"text":"src/common/options.js: 403 lines of code: src/common/options.js has 403 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":"src/common/options.js"},"region":{"startLine":1}}}],"partialFingerprints":{"codehealthFindingId/v1":"3bdb68ee0d3669df4f42a0aabdff5b532aba3329e9b2c152ef5c9dfbfac31b0e"}},{"ruleId":"R6","level":"warning","message":{"text":"No test, lint or typecheck script: test \u2717 \u00B7 lint \u2717 \u00B7 typecheck \u2717 \u2014 read from this repository\u0027s package.json scripts and corroborated against its CI workflows. A script counts when its name or command matches the step: \u0060test\u0060 for the suite, \u0060lint\u0060 or \u0060prettier\u0060 for linting, \u0060typecheck\u0060/\u0060type-check\u0060/\u0060tsc\u0060 for type checking. \u2717 therefore means no script or CI step under those names was found, NOT that the step is absent from your pipeline \u2014 a task invoked by a runner this check does not read, or named something else entirely, is not seen and is worth confirming before acting on a cross. A \u2713 means the wiring is DECLARED \u2014 a script or CI step under those names exists. It is not a statement that the step passes, or that it runs at all: nothing here installs a dependency or executes a suite."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"a9372ffc30204d52cc3368af49ceaa995574db973935e30b3946f83785dea15b"}},{"ruleId":"R7","level":"note","message":{"text":"Unused module-local declaration \u0027javascriptFileRegex\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":"utils/build.js"},"region":{"startLine":34}}}],"partialFingerprints":{"codehealthFindingId/v1":"79cee87bc102baba46c1765964822cc14eaafb91594c20c8d85179a7918cb542"}},{"ruleId":"R8","level":"warning","message":{"text":"Unused dependency \u0027glob\u0027: Declared in utils/package.json but never imported anywhere in that package or its workspace members \u2014 no static import reaches it. Usually that is dead weight and attack surface, but two shapes are indistinguishable from source and are NOT dead: an optional or native peer that another dependency loads dynamically at runtime, and a package a build, docs or test step installs and invokes separately. Confirm which of the three this is before removing it."},"locations":[],"partialFingerprints":{"codehealthFindingId/v1":"70383cf03107da7b95199f32558be143fecec5ce4ab29af9b166270952e6c145"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060result.value\u0060 is text this program did not author, and it is written into the text of an element through \u0060innerHTML\u0060 with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. Encode it for HTML at this site, render it through the framework\u0027s escaping output, or sanitise it if it must stay markup."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/highlightjs/highlight.js"},"region":{"startLine":2336}}}],"partialFingerprints":{"codehealthFindingId/v1":"0f60fbdddfb2cdfbea5a2ac49484e79fcdce03b10e7cef52f2b723d07fa5ce37"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060href\u0060 is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here \u2014 a \u0060javascript:\u0060 URL contains nothing it changes; allow only http(s) or a relative path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":894}}}],"partialFingerprints":{"codehealthFindingId/v1":"cf7d205a89de08d92052f4bcd41e49cd5af485371a5abbcf66f50e95d6d48c27"}},{"ruleId":"X24","level":"warning","message":{"text":"Untrusted text written into markup unescaped: \u0060href\u0060 is text this program did not author, and it is written into the start of a URL attribute, where it chooses the scheme through markup this function returns with nothing encoding it for that place. Whoever controls the value controls the markup: it can close the element or attribute it sits in and open a script of its own. HTML encoding does not help here \u2014 a \u0060javascript:\u0060 URL contains nothing it changes; allow only http(s) or a relative path."},"locations":[{"physicalLocation":{"artifactLocation":{"uri":"src/common/marked.js"},"region":{"startLine":903}}}],"partialFingerprints":{"codehealthFindingId/v1":"ccaa6b12439f574570f87660eb7e105d204e75714f8a57fa458cb66fe115f140"}},{"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":"src/common/options-store.js"},"region":{"startLine":158}}}],"partialFingerprints":{"codehealthFindingId/v1":"ebb46f9228ccd1ca88114db3c1b28c96b863ad49f728dba466dfc1f8382facf6"}},{"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":"src/chrome/backgroundscript.js"},"region":{"startLine":171}}}],"partialFingerprints":{"codehealthFindingId/v1":"b3c905d4ec80ca0683fcdf8d7a36ad2f15c2bb762079f22f54d2a59e0aae402f"}}],"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-1333","guid":"11a336ce-63de-c45c-845e-29ca1e8df13d","name":"CWE-1333","shortDescription":{"text":"CWE-1333"},"helpUri":"https://cwe.mitre.org/data/definitions/1333.html"},{"id":"CWE-1395","guid":"800e09e7-c11a-8654-9fa6-86f398995fed","name":"Dependency on Vulnerable Third-Party Component","shortDescription":{"text":"Dependency on Vulnerable Third-Party Component"},"helpUri":"https://cwe.mitre.org/data/definitions/1395.html"},{"id":"CWE-259","guid":"ae9ad959-fbb6-9d5e-892d-3dca66da0b69","name":"Use of Hard-coded Password","shortDescription":{"text":"Use of Hard-coded Password"},"helpUri":"https://cwe.mitre.org/data/definitions/259.html"},{"id":"CWE-506","guid":"401d6455-56e3-0552-9a39-f77461673e3f","name":"Embedded Malicious Code","shortDescription":{"text":"Embedded Malicious Code"},"helpUri":"https://cwe.mitre.org/data/definitions/506.html"},{"id":"CWE-77","guid":"332c8ade-6612-9f56-a06b-d8d90b1a8750","name":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in a Command (\u0027Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/77.html"},{"id":"CWE-78","guid":"2e31ceaf-c7ae-2e5e-9661-cfb1362789cf","name":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an OS Command (\u0027OS Command Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/78.html"},{"id":"CWE-79","guid":"fd45580b-e8c4-fc5e-8c2f-aa8fab0b4dbf","name":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)","shortDescription":{"text":"Improper Neutralization of Input During Web Page Generation (\u0027Cross-site Scripting\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/79.html"},{"id":"CWE-798","guid":"5e8f057d-fee3-995a-a0cb-9fc5b0d174d1","name":"Use of Hard-coded Credentials","shortDescription":{"text":"Use of Hard-coded Credentials"},"helpUri":"https://cwe.mitre.org/data/definitions/798.html"},{"id":"CWE-89","guid":"6d08fdad-37eb-c150-bbf0-d7d946863407","name":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)","shortDescription":{"text":"Improper Neutralization of Special Elements used in an SQL Command (\u0027SQL Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/89.html"},{"id":"CWE-937","guid":"16f316ae-415c-b354-a59b-1f7905f756e9","name":"Using Components with Known Vulnerabilities","shortDescription":{"text":"Using Components with Known Vulnerabilities"},"helpUri":"https://cwe.mitre.org/data/definitions/937.html"},{"id":"CWE-94","guid":"75e7f50c-6c2f-dd52-bf40-bf6c52b861fd","name":"Improper Control of Generation of Code (\u0027Code Injection\u0027)","shortDescription":{"text":"Improper Control of Generation of Code (\u0027Code Injection\u0027)"},"helpUri":"https://cwe.mitre.org/data/definitions/94.html"}]},{"name":"OWASP Top 10","guid":"7d1f0c2e-4b6a-4e39-9a51-0b2e8c3d5f61","version":"2025","organization":"OWASP Foundation","informationUri":"https://top10.owasp.org/2025/","isComprehensive":false,"shortDescription":{"text":"The OWASP Top 10:2025 web application security risks."},"taxa":[{"id":"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":"A05:2025","guid":"87e86033-3231-8458-8e4a-5cb82743553a","name":"Injection","shortDescription":{"text":"Injection"},"helpUri":"https://top10.owasp.org/2025/A05_2025-Injection/"},{"id":"A07:2025","guid":"334ddd78-539d-d35c-83dd-253647eb7eaf","name":"Authentication Failures","shortDescription":{"text":"Authentication Failures"},"helpUri":"https://top10.owasp.org/2025/A07_2025-Authentication_Failures/"},{"id":"A08:2025","guid":"84b0c297-710e-9a5f-9335-936ecb260c36","name":"Software or Data Integrity Failures","shortDescription":{"text":"Software or Data Integrity Failures"},"helpUri":"https://top10.owasp.org/2025/A08_2025-Software_or_Data_Integrity_Failures/"}]}],"properties":{"codehealthPublication":{"public":true,"notice":"This is the PUBLIC form of this artifact. Findings are listed in full, but the details of SECURITY findings \u2014 which rule fired, in which file, on which line, and how to fix it \u2014 are deliberately withheld, and any secret-scanner results are excluded entirely. Where detail is absent here it was REMOVED FOR PUBLICATION; it is not missing from the analysis. The complete artifact is available from the repository owner.","securityFindingsRedacted":9,"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."]}]}